Kernel Compilation

LSeven

Junior Member
Sep 1, 2000
9
0
0
I desperately need for someone to help me compiling the lastest kernel for linux. For some reason the "vmlinuz" image is not linking to the new kernel that i have compiled. I have edit my "lilo.config" file to image=/boot/vmlinuz; I have been told that this will make linux automatically point to the lastest kernel been compiled. In the /boot dir i do not see the the kernel that i have just compiled e.g "vmlinuz-2.4.0," I am currently running Redhat7 under kernel vmlinuz-2.216enterprise.Text
 

Wizkid

Platinum Member
Oct 11, 1999
2,728
0
0
Did you run /sbin/lilo after you edited lilo.conf? You definitely have to do that :)
 

1KrazyFool

Senior member
Oct 10, 1999
323
0
0
Did you copy the new System.map and vmlinuz from the /usr/src/linux directory yet? They don't magically appear on their own in the /boot dir.
 

random

Senior member
Jan 19, 2000
592
0
0
i believe you can run "make install" on the newer kernel distributions (at least 2.4.0 tests because I saw a friend do it)
quick summary:

make xconfig (config menuconfig, etc)
make dep
make modules
make modules_install
make bzImage
cp System.map /boot/System.map-(insert your kernel version here)
cp arch/i386/boot/bzImage /boot/vmlinuz-(kernel version here)
(guessing here that this is x86)

optionally, make your ramdisk (mkinitrd)

add this entry to /etc/lilo.conf
I would be careful about overwriting the "latest" kernel without testing it first with a separate entry would be wise, in the off chance that either you are missing some drivers that you need to boot
and you may need to go back to the old one at some point.

/sbin/lilo
 

bubba

Golden Member
Oct 10, 1999
1,589
0
0

Or just type 'make dep; make clean; make bzlilo' and that will compile your kernel, clean out the object files, copy the new kernel to /vmlinuz and run lilo. All in one fell swoop!