LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   kernel patching (https://www.linuxquestions.org/questions/slackware-14/kernel-patching-139393/)

Protex 01-27-2004 07:05 PM

kernel patching
 
I'm trying to patch kernel 2.6.1 to 2.6.2-rc2, however it seems I suck at patching.

I have gotten a clean kernel and it is in the /usr/src/linux-2.6.1
I have the patch in /usr/src/patch-2.6.2-rc2.bz2

I've tried to patch it by:

bunzip2 -cd /usr/src/patch-2.6.2-rc2.bz2 | patch -p0

it then says:

can't find file to patch at line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
-----------------------------------------------
| diff -Nru a/CREDITS b/CREDITS
| --- a/CREDITS Sun Jan 25 18:31:55 2004
| +++ b/CREDITS Sun Jan 25 18:31:55 2004
-----------------------------------------------
File to Patch:

So I then type: /usr/src/linux-2.6.1
and it says:

Patch: **** file /usr/src/linux-2.6.1 is not a regular file can't patch


What exactly am i doing wrong?

jtshaw 01-27-2004 08:08 PM

Try patch -p1 < zcat /usr/src/patch-2.6.2-rc2.bz2

Protex 01-27-2004 08:29 PM

That didn't work at all maybe your syntax is wrong

jtshaw 01-27-2004 08:43 PM

I am sorry, your right, correct syntax is:

bzcat /usr/src/patch-2.6.2-rc2.bz2 | patch -p1

Protex 01-27-2004 08:57 PM

still asks me for which file to patch.

should i be patching linux-2.6.1.tar.bz2 instead of the extracted contents of the file which resides in /usr/src/linux-2.6.1/ ?

jtshaw 01-27-2004 09:09 PM

I am sorry, extract the kernel source. Then cd to the directory it created and type that command. I just did it to make sure it works and it did.

Protex 01-27-2004 09:43 PM

thanks, that worked great :)

I really appriciate it

~Sean


All times are GMT -5. The time now is 08:35 PM.