Though there are several methods for upgrading and patching the Linux kernel, the complete technique for doing so is fragmented throughout the kernel documentation. This technical recipe provides a comprehensive and uniform solution, using the included
To successfully utilize this technique, you should always start with a base kernel, for example, kernel version 2.6.x, rather than the point release kernel, 2.6.x.y. For specifics on why this is the case, see
Documentation/applying-patches.txt under the kernel source folder. In this example, I use linux-2.6.20.tar.bz2 as the base kernel (extracted to
/usr/src/linux-2.6.20), and patch patch-18.104.22.168.tar.bz2 (placed under
/usr/src) to illustrate.
To upgrade from 2.6.20 to 22.214.171.124, simply type the following:
cd /usr/src/linux-2.6.20 scripts/patch-kernel . .. 126.96.36.199 cd .. mv linux-2.6.20 linux-188.8.131.52
If successful, your output will appear shortly:
Current kernel version is 2.6.20 (Homicidal Dwarf Hamster) Applying patch-184.108.40.206 (bzip2)... done.
For convenience, I also symbolically link
ln -s /usr/src/linux-220.127.116.11 /usr/src/linux
From here, you can proceed to compile the updated kernel source using the provided documentation.