LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Kernel Patching (https://www.linuxquestions.org/questions/linux-general-1/kernel-patching-17759/)

jayakrishnan 04-05-2002 12:31 AM

Kernel Patching
 
Hi

How do you patch the linux kernel?

taz.devil 04-05-2002 12:44 AM

The easiest way for me to do it is to put the patch in your /usr/src directory then cd to your linux or linux-2.4.x (whatever yours is you are using) directory then do a patch command:

zcat ../patch-2.4.x.gz | patch -p1

You could also cd into the /usr/src/linux (as before) directory and type the full path to the patch if you don't wanna move it.

jtshaw 04-05-2002 08:23 AM

Also, if you have downloaded a patch that isn't zipped.. use cat instead of zcat.

John

Alinuxnoob 04-05-2002 08:44 AM

So after you do that do you have to recompile the kernel?

jtshaw 04-05-2002 10:12 AM

Yes. The kernel does have to be recompiled after you do this. Also, if the option you patched in adds configuration options you will have to run your favorite kernel config method and deal with the new options accordingly.


All times are GMT -5. The time now is 06:46 AM.