You need to start over.
cd to /boot and rename the files vmlinuz and Syste.map to vmliuz.old and System.map.old.
There should be a stanza in lilo.conf that looks like this.
image = vmliuz
root = /dev/hdax (x being the / partition)
label = linux
read-only
Add a stanza that looks like this.
image = vmlinuz.old
root = /dev/hdax
label = linux.old
read-only
Save the file and exit the editor.
There should be a symlink in
/usr/src for the current kernel called Linux. Rename that link Linux.old.
Unpack the kernel source and it will automatically build a new directory in /usr/src called Linux-2.4.22.
Make a new symlink to the new directory with this
ln -s /usr/src/linux-2.4.22 /usr/src/linux.
[b]cd to
/usr/src/linux
do
make mrproper &&
make clean &&
make menuconfig &&
make dep &&
make bzImage.
Get some Coffee.
Once the compile is done, do
make modules followed by
make modules_install
Now, copy the new kernel image to /boot with this.
cp arch/i386/boot/bzImage /boot/vmlinuz Copy the System.map file with
cp System.map /boot. Copy .config to /boot with
cp .config /boot/config
Re-install LILO with
/sbin/lilo -v and reboot.
LILO should come up with a menu and give you a choice of which version of the kernel you'd like to boot, either
linux or
linux.old. linux is using the new kernel and linux.old uses the old.