Click to See Complete Forum and Search --> : Kernel Patching
Big_Jeff Stud
05-05-2001, 05:54 PM
How do you patch the kernel. I apparently need to use the Hedrick IDE patch in order to use my Promise Ultra100 controller. I'm running Caldera 2.4 and already have it up and running. I'm just using my onboard IDE controllers right now.
Any help is greatly appreciated
Thank you,
Jeff
Hey Jeff -
Ok its pretty simple to patch the kernel. D/L the patch, let's say to /tmp/dwn. Head over to your kernel source directory and issue the following command (as root):
linuxprompt:/usr/src/linux# zcat -c /tmp/dwn/patchname-VERSION.tar.gz | patch -p1
Thats it. The 'zcat' command does the uncompressing for you and the 'patch' command patches the kernel at level 1 (this basically tells patch to strip off the leading '/' and look for it's proper files in a certain dir, usually 'drivers/'). You can, of course gunzip the patch beforehand, or if you happen to have an uncompressed, untarred patch, run this:
linuxprompt:/usr/src/linux# patch -p1 < /tmp/dwn/patchname
..where you're redirecting the patchfile into the patch command. Once you've done this, doing a 'make menuconfig' (or your favorite version) will give you the newly patched option menus. Hope this helps. Good luck with the Promise 100.
Antho
05-05-2001, 10:24 PM
another way if you have several patches (like I did) just cp the patches to the top level of the source tree and run the patch script in the scripts directory, it does everything for you, no muss, no fuss.
Originally posted by Antho:
<STRONG>another way if you have several patches (like I did) just cp the patches to the top level of the source tree and run the patch script in the scripts directory, it does everything for you, no muss, no fuss.</STRONG>
Absolutely, wish I'd thought to mention this!