ndt-users - Re: Kernel Patching Error
Subject: ndt-users list created
List archive
- From: Clayton Keller <>
- To: Richard Carlson <>
- Cc:
- Subject: Re: Kernel Patching Error
- Date: Wed, 22 Aug 2007 13:45:22 -0500
Richard Carlson wrote:
Clayton;
This is the major problem with using a distribution specific kernel. The distribution vendors apply their own patches and this means that the Web100 patch doesn't find the right stuff. You have 2 options.
1) grab the latest kernel from the kernel.org site and apply the web100 patch to it (2.6.22 is the latest).
2) manually patch the failed files. The patch process will generate a .rej file if a patch fails. You can manually look at these files and see what happened. In some/most cases you can figure out what caused the failure and manually fix it. If not, then fall back to option 1.
Rich
At 10:16 AM 8/22/2007, Clayton Keller wrote:
I am attempting to patch a CentOS 5 kernel linux-2.6.18.i686.
When doing so I receive the following output:
# patch -p1 < /usr/src/web100/web100-2.6.18-2.5.12-200609221010.patch
patching file Makefile
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
patching file Documentation/web100/locking.txt
patching file Documentation/web100/proc_interface.txt
patching file Documentation/web100/sysctl.txt
patching file fs/proc/Makefile
patching file fs/proc/root.c
patching file fs/proc/web100.c
patching file include/linux/netlink.h
Hunk #2 FAILED at 22.
1 out of 2 hunks FAILED -- saving rejects to file include/linux/netlink.h.rej
patching file include/linux/proc_fs.h
patching file include/linux/sysctl.h
Hunk #1 FAILED at 411.
Hunk #2 succeeded at 1002 (offset 60 lines).
1 out of 2 hunks FAILED -- saving rejects to file include/linux/sysctl.h.rej
patching file include/linux/tcp.h
patching file include/net/tcp.h
Hunk #3 succeeded at 750 (offset 3 lines).
patching file include/net/web100.h
patching file include/net/web100_stats.h
patching file net/ipv4/Kconfig
Hunk #1 succeeded at 580 (offset 1 line).
patching file net/ipv4/Makefile
patching file net/ipv4/sysctl_net_ipv4.c
Hunk #1 FAILED at 697.
1 out of 1 hunk FAILED -- saving rejects to file net/ipv4/sysctl_net_ipv4.c.rej
patching file net/ipv4/tcp.c
patching file net/ipv4/tcp_cong.c
patching file net/ipv4/tcp_input.c
Hunk #22 succeeded at 3617 (offset 1 line).
Hunk #24 succeeded at 4298 with fuzz 2 (offset 1 line).
Hunk #25 succeeded at 4549 (offset 2 lines).
patching file net/ipv4/tcp_ipv4.c
Hunk #3 succeeded at 907 (offset 3 lines).
Hunk #5 succeeded at 1139 (offset 3 lines).
Hunk #7 succeeded at 1323 (offset 3 lines).
patching file net/ipv4/tcp_minisocks.c
patching file net/ipv4/tcp_output.c
Hunk #5 succeeded at 1010 (offset 2 lines).
Hunk #7 succeeded at 1041 (offset 2 lines).
Hunk #9 succeeded at 1327 (offset 2 lines).
Hunk #11 succeeded at 1387 (offset 2 lines).
Hunk #12 succeeded at 1419 (offset 1 line).
Hunk #13 succeeded at 1446 (offset 2 lines).
Hunk #14 succeeded at 1578 (offset 1 line).
Hunk #15 succeeded at 2178 (offset 2 lines).
Hunk #16 succeeded at 2215 (offset 1 line).
Hunk #17 succeeded at 2232 (offset 2 lines).
patching file net/ipv4/tcp_timer.c
patching file net/ipv4/web100_stats.c
patching file net/ipv6/tcp_ipv6.c
Hunk #1 succeeded at 294 (offset 2 lines).
Hunk #2 succeeded at 949 (offset 7 lines).
Hunk #3 FAILED at 1248.
Hunk #4 succeeded at 1259 (offset 3 lines).
Hunk #5 succeeded at 1406 (offset 7 lines).
Hunk #6 succeeded at 1418 (offset 3 lines).
1 out of 6 hunks FAILED -- saving rejects to file net/ipv6/tcp_ipv6.c.rej
It has been quite sometime since I have worked with the web100, and the first time trying to do this with a patched kernel and not that from kernel.org.
Any information regarding the failed patch attempt would be appreciated.
Clay
------------------------------------
Richard A. Carlson e-mail:
Network Engineer phone: (734) 352-7043
Internet2 fax: (734) 913-4255
1000 Oakbrook Dr; Suite 300
Ann Arbor, MI 48104
Thanks Richard,
I've gone with option 1 at this point...the patches are somewhat trivial to apply by hand.
We'll see how it goes.
Clay
- Kernel Patching Error, Clayton Keller, 08/22/2007
- Re: Kernel Patching Error, Richard Carlson, 08/22/2007
- Re: Kernel Patching Error, Clayton Keller, 08/22/2007
- Re: Kernel Patching Error, Richard Carlson, 08/22/2007
Archive powered by MHonArc 2.6.16.