After seeing a lot of people wondering, here is a short description of steps needed to patch a kernel source tree.
Note that these instructions are valid for a 'VANILLA' kernel, i mean a plain kernel source downloaded from www.kernel.org or one of the mirror. I cannot give instructions for 'Vendor' kernels such as RH, Mandrake or SuSE. Why ?
1) Cause i don't use them
2) Cause it has proven difficult to find out the exact patches appplied by the vendors.
So, first download a kernel source from www.kernel.org or a mirror. The latest is 2.4.20.
Once the file linux-2.4.20.tar.gz is on your hdd, put it anywhere ( your home dir is fine ), and untar/decompress it with
$ tar -xvzf linux-2.4.20.tar.gz
( or tar -xvjf linux-2.4.20.tar.bz2 if ya download the bzip2 file )
==> This will last for a while, and produce lots of output, showing you what is getting de compressed and where. The whole decompressed source is 274 megs or so, so plan some space.
Then go and download the patches you need. www.google.com/linux , enter kernel patches as a search string, you will found a lot. The patches can be anything from .patch, to .txt to .diff extensions. Note that a lot of them are compressed, like "patch.kernel-2.4.20.diff.gz "
In this case you have to :
$ gzip -d patch.kernel-2.4.20.diff.gz
$
Now the patch will have lost his .gz extension.
Next we are gonna apply the patch:
$ pwd
/home/user
$ ls
linux-2.4.20 linux-2.4.20.tar.gz patch.kernel-2.4.20.diff
$ cd linux-2.4.20
$ patch -p1 < ../patch.kernel-2.4.20.diff
( lots of output, watch out for :
Hunk Succeed
IF ya have a lot of Hunk Failed at blAHBLAH...that doesn't look too good. Once patch is successfull, apply the others ( if so ), then make xconfig and you will see the new options of your patches ( acpi, Preemptive Kernel, Lock Break for the preemptive kernel, ACPI options, ACPI suspend etc ......).
Not that this guide doesn't dispense getting a kernel compile How to from www.tldp.org
Hope that helps and clear things...


Note that these instructions are valid for a 'VANILLA' kernel, i mean a plain kernel source downloaded from www.kernel.org or one of the mirror. I cannot give instructions for 'Vendor' kernels such as RH, Mandrake or SuSE. Why ?
1) Cause i don't use them
2) Cause it has proven difficult to find out the exact patches appplied by the vendors.
So, first download a kernel source from www.kernel.org or a mirror. The latest is 2.4.20.
Once the file linux-2.4.20.tar.gz is on your hdd, put it anywhere ( your home dir is fine ), and untar/decompress it with
$ tar -xvzf linux-2.4.20.tar.gz
( or tar -xvjf linux-2.4.20.tar.bz2 if ya download the bzip2 file )
==> This will last for a while, and produce lots of output, showing you what is getting de compressed and where. The whole decompressed source is 274 megs or so, so plan some space.
Then go and download the patches you need. www.google.com/linux , enter kernel patches as a search string, you will found a lot. The patches can be anything from .patch, to .txt to .diff extensions. Note that a lot of them are compressed, like "patch.kernel-2.4.20.diff.gz "
In this case you have to :
$ gzip -d patch.kernel-2.4.20.diff.gz
$
Now the patch will have lost his .gz extension.
Next we are gonna apply the patch:
$ pwd
/home/user
$ ls
linux-2.4.20 linux-2.4.20.tar.gz patch.kernel-2.4.20.diff
$ cd linux-2.4.20
$ patch -p1 < ../patch.kernel-2.4.20.diff
( lots of output, watch out for :
Hunk Succeed
IF ya have a lot of Hunk Failed at blAHBLAH...that doesn't look too good. Once patch is successfull, apply the others ( if so ), then make xconfig and you will see the new options of your patches ( acpi, Preemptive Kernel, Lock Break for the preemptive kernel, ACPI options, ACPI suspend etc ......).Not that this guide doesn't dispense getting a kernel compile How to from www.tldp.org
Hope that helps and clear things...






