LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do you patch a kernel? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-you-patch-a-kernel-38695/)

bluester 12-17-2002 06:47 PM

How do you patch a kernel?
 
I have Linux RedHat 8.0 kernel 2.418-18.8.0
I want to patch to 2.4.19.
I have downloaded the patch from kernel.org

I have tried reading the how-to's but they do not make much sense to me.
I have the kernel source loaded and (I think) the proper development utilities.
I am using a desktop manager....WindowMaker. Gnome and KDE are too bulky. I like making the menus the way I want them. ;-)

Any help would be appreciated.

If you can guide me to a step by step section on the web that would be great as well. :-)

lowlifeish 12-17-2002 07:02 PM

These are the steps I take to patch a kernel:

1) If your

iocain 12-17-2002 07:02 PM

You essentially just want to use the "patch" program at the command line.

If you have your 2.4.18 kernel in the /usr/src/linux/ directory, and you put the 2.4.19 patch in /usr/src/linux-patch-2.4.19 (after running "gunzip" on it -- I don't remember what the file is really called), you should be able to just "cd /usr/src/linux ; patch < ../linux-patch-2.4.19" and it should chug away, patching the sources for you!

Then you'll get to enjoy the process of building a custom kernel. Don't get too overwhelmed! Defaults are your friends. ;-)

Tinkster 12-17-2002 09:26 PM

Gidday!

I'd be cautious :}

MDK (as RH) are busy modifying the kernels in
their distro ... I wouldn't bet my life on patching
a MDK-kernel with a diff from kernel.org ;)

Cheers,
Tink


All times are GMT -5. The time now is 04:38 PM.