1 - download new kernel http://www.linuxhq.com
2 - mv the kernel to /usr/src
3 - if there is an existing linux directory - (unpacking the new linux kernel goes to the linux directory)
if the existing linux directory is a link then rm linux
if the existing linux is not a link then mv linux to linuxX.x.x (where X is the version number)
4 - unpack the new kernel with:
tar zxvf linuxXXX.tar.gz -- if the file ends in tar.gz
5 - rename the new linux directory with mv linux linuxX.X.X (where X is the version number)
6 - make a symbolic link with ln -s linuxX.X.X linux
7 - cd linux to use the linux directory
8 - make mrproper
9 - make menuconfig (to configure the kernel - note that the newer kernel 2.3.x not all the previous options will appear unless you select the prompt for development and/or incomplete code/drivers in the code maturity section at the top of the menuconfig option.)
10 - make dep clean (clean is optional)
11 - make modules modules_install
12 - make bzImage ( kernel now is generally to large to use make zImage)
13 - Slackware - cp arch/i386/boot/bzImage /vmlinuxXXX (or whatever name you want)
13a) - For Redhat cp arch/i386/boot/bzImage /boot//vmlinuxXXX
also - cp System.map /boot/System.map-XXX (where XXX is version or whatever)
then link it to the Sytem.map with ln -s /boot/System.map-XXX Sytem.map
14 - Make sure /etc/lilo.conf can give you two or more optional boot up kernels..Keep the known working kernel as the first image in /etc/lilo.conf... Otherwise you may well end up booting from a flopply or CDROM if your new kernel crashes. In compiling new kernels the if in crashing is more a when it crashes. You can edit /etc/lilo.conf and have multiple kernels to select from for booting.
***Make sure there is a line towards the top with just prompt
***Having a delay nn or timeout nn line will cause lilo to wait nn tenths of second before loading the first image. This is normally just under the prompt line.
For Slackware -- these 3 lines for each kernel option
image = /vmlinuxXXX(or whatever name - must match the name in step 13)
root = /dev/hda1(or whatever the default was)
label = linuxXXX(or whatever reference name you want)
For Redhat -- these 3 lines for each kernel option
image = /boot/vmlinuxXXX (or whatever name - must match the name in step 13)
root = /dev/hda1(or whatever the default was)
label = linuxXXX (or whatever reference name you want)
15 - lilo - Rerun lilo to setup. Should get no errors. Will not ask any questions.
16 - shutdown -r now (time to try it out)
17 - Press the Tab key when you get the lilo prompt on rebooting.
select the kernel to boot and type it in..
18 - Does it work??? If not the way you want then go back to step 9.
If it crashes while booting then try booting on the old kernel...
Last modfied on Sunday, 21-May-2000 13:06:26 CDT
rddecker@lanranger.net