How do I recompile a kernel

zogg

Senior member
Dec 13, 1999
960
0
0
I am told I have to recompile a kernal in Slackware 7.1(linux).
because I have a problem with slackware trying to open a frame_buffer when it shouldnt.

How does one go about recompiling a kernel in slackware or any version of linux if you dont know slackware.


Thanks
zogg
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
cd /usr/src/linux
make mrproper
make menuconfig

Choose your options accordingly

make dep
make clean
make bzImage
make modules
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-<kernel version number (e.g. vmlinuz-2.2.17)>
cp System.map /boot/System.map-<kernel version number>

Use your favorite editor to edit the file /etc/lilo.conf, add the new kernel accordingly. Look at the file it's pretty self explanatory, but something like:

image=/boot/vmlinuz-2.2.17
root=/dev/hdxx (where xx is that proper parition number, use what the others are already pointing to there)
label=linux
read-only

Now, change the old kernel named linux to old.

Now, rerun LILO /sbin/lilo

Finally, reboot.

You might just looking at your current /etc/lilo.conf and seeing what kernels came pre-compiled. You may already have one that doesn't have the frame buffering stuff in it.
 

zogg

Senior member
Dec 13, 1999
960
0
0
Thanks damaged...
If this doesnt work i am going to give mandrake 7.2 beta a try.