you need to do all of this in the source folder
Code:
make mrproper menuconfig
then you need to configure the kernel for your hardware. You can load your config file from your current kernel in the load config section in menuconfig if you want, it's probably in /boot, look for /boot/config-ide-2.4.18
after configuration
Code:
make dep clean bzImage modules modules_install
then you can put the kernel you made in /boot
Code:
cat arch/i386/boot/bzImage > /boot/vmlinuz-2.4.20
and the System map file
Code:
cp System.map /boot/System.map-2.4.20
the config file
Code:
cp .config /boot/config-2.4.20
ok now the initrd if you use one. If /etc/lilo.conf has no initrd in it then you don't need it. I have not seen it used on Slack. I'm adding it in case someone has a distro with mkinitrd
Code:
mkinitrd /boot/initrd-2.4.20.img 2.4.20
then it's a matter of duplicating the image section of your old kernel and change the image , initrd, and label names to match the new kernel in the file /etc/lilo.conf
then run