LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-21-2005, 09:53 PM   #1
lmmix
Member
 
Registered: Feb 2005
Distribution: debian sid, blfs 6.0
Posts: 41

Rep: Reputation: 15
update to patch kernel source


Hi,

here is my situation ,

i downloaded kernel source from kernel.org
and compiled and using it.

debian:/usr/src# uname -a
Linux debian 2.6.11-rc4-bk8 #1 Mon Feb 21 17:34:39 XXX 2005 i686 GNU/Linux

Problem is, when i compile the kernel source, ALWAYS i have to remove the complete kernel source,
and re-extract the kernel source and patched new patch*.bz2.

rm -rf linux-2.6.11-rc4/ (bk8 patched directory and built)
tar jxf linux-2.6.11-rc4.tar.bz2
cd linux-2.6.11-rc4/
bzcat ../patch-2.6.11-rc4-bk9.bz2 | patch -p1

note that the directory is bk9 patched now.

linux-2.6.11-rc4 linux-2.6.11-rc4.tar.bz2 patch-2.6.11-rc4-bk8.bz2 patch-2.6.11-rc4-bk9.bz2

so,
Is there way to do not remove whole kernel source directory, just patch to patched directory??

just like this,
in the bk8 patched directory,
make mrproper
bzcat ../patch-2.6.11-rc4-bk9.bz2 | patch -p1

--
Thanks for reading.
 
Old 02-22-2005, 07:16 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
If the patch isn't an incremental one (like the ones for the vanilla tree) you need to move out the old patch first with patch -R -p1 < patchfile.


Håkan

Last edited by hw-tph; 02-22-2005 at 07:20 AM.
 
Old 02-23-2005, 11:40 PM   #3
lmmix
Member
 
Registered: Feb 2005
Distribution: debian sid, blfs 6.0
Posts: 41

Original Poster
Rep: Reputation: 15
bzcat ../patch-2.6.11-rc4-bk11.bz2 | patch -R -p1 (in bk10 patched directory)

...
patching file include/asm-x86_64/elf.h
patching file include/linux/compat.h
Unreversed patch detected! Ignore -R? [n] y
patching file include/linux/fb.h
patching file include/linux/fs.h
Unreversed patch detected! Ignore -R? [n] y
patching file include/linux/socket.h
patching file include/linux/sysctl.h
patching file include/linux/tcp.h
Unreversed patch detected! Ignore -R? [n] y
patching file include/net/dst.h
patching file include/net/tcp.h
Hunk #3 FAILED at 832.
Hunk #4 FAILED at 883.
Hunk #5 FAILED at 1071.
Hunk #7 FAILED at 1322.
Hunk #8 FAILED at 1648.
Hunk #9 FAILED at 1826.
Hunk #10 FAILED at 1885.
Hunk #11 FAILED at 1904.
8 out of 11 hunks FAILED -- saving rejects to file include/net/tcp.h.rej
patching file kernel/workqueue.c
patching file mm/filemap.c
patching file mm/memory.c
patching file net/core/dst.c
patching file net/core/pktgen.c
patching file net/ipv4/route.c
patching file net/ipv4/sysctl_net_ipv4.c
patching file net/ipv4/tcp.c
Unreversed patch detected! Ignore -R? [n] y
patching file net/ipv4/tcp_input.c
Hunk #2 FAILED at 118.
Hunk #3 FAILED at 204.
Hunk #4 FAILED at 439.
Hunk #5 FAILED at 832.
Hunk #6 FAILED at 866.
Hunk #7 FAILED at 877.
Hunk #8 FAILED at 900.
Hunk #9 FAILED at 997.
Hunk #10 FAILED at 1628.
...

and the result is failure.

...
include/net/tcp.h:1907: error: structure has no member named `ts_recent_stamp'
make[2]: *** [net/core/sock.o] Error 1
make[1]: *** [net/core] Error 2
make: *** [net] Error 2
...

so i have backed to the old method that i used to..
 
Old 02-24-2005, 02:33 AM   #4
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Very confusing what you are doing, but what you need to do is reverse the existing patch, then use the new patch... ie if you have a bk10 patched kernel, you have to first do a -R reverse with the bk10 patchfile, then you patch with bk11... okay?
 
Old 02-24-2005, 08:07 AM   #5
lmmix
Member
 
Registered: Feb 2005
Distribution: debian sid, blfs 6.0
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks, i got it.

you mean

bzcat ../patch-2.6.11-rc4-bk10.bz2 | patch -R -p1 (in bk10ed dir)
bzcat ../patch-2.6.11-rc4-bk11.bz2 | patch -p1

right?
 
Old 02-24-2005, 03:33 PM   #6
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Yep. that's it...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
patch of kernel source ? picticpic Mandriva 2 06-15-2005 03:17 PM
How to patch SuSE 9 kernel source? mllq Linux - Newbie 1 12-11-2003 01:10 AM
YaST Online Update + AMD kernel patch = kernel panic THX1138 Linux - General 3 10-26-2003 04:25 PM
Patch VS Full Source for kernel demmylls Linux - General 4 10-25-2003 10:16 AM
update kernel patch wysurya Linux - Software 1 08-29-2003 09:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration