Compile and Install new Linux kernel
Get new kernel source from www.kernel.org (in this example we use the 2.6.11.4 kernel version) and unpack into /usr/src/linux...... directory
sudo su cd /usr/src wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.11.4.tar.bz2 bzip2 -d linux-2.6.11.4.tar.bz2 tar xvf linux-2.6.11.4.tar
Clean the new kernel version
chown -R root:root linux-2.6.11.4 cd linux-2.6.11.4 make mrproper cd ..
Copy old kernel configuration file (optional)
cp linux/.config linux-2.6.11.4 rm linux
Set linux link to new version
ln -s linux-2.6.11.4 linux
Stamp the kernel (optional, but highly recommended)
cd linux date '+js%m%d-%H%M' > localversion
Convert old configuration file (optional, only if you have an old configuration)
make oldconfig
If you want to make any changes to the kernel configuration
make menuconfig
Before you proceed, double-check that the LILO configuration includes at least one kernel version that is known to work. Check that this kernel does exist in the /boot directory, the required modules are in /lib/modules and that the entry in /etc/lilo.conf matches those locations and names. Proceed only if you have checked that you will be still be able to boot if the newly built kernel is not bootable.
Build the kernel & modules, install and add to LILO
make make modules_install make install lilo
There are no comments.