SU_PYROW

Compiling Kernel for Slackware

By: SU_PYROW

This was written by SU_PYROW to compile the kernel in one swift swoop.

tar xjf linux-2.6.31.tar.bz2

cd into dir.

make mrproper

if it dont work dont worry. newer kernels dont always have this as an option.

get old config or make a whole new one

REMEMBER TO INCLUDE FILESYSTEM TYPES OR IT WILL NOT BOOT!!! --- without a mkinitrd

make menuconfig

make

make modules_install

cp arch/i386/boot/bzImage /boot/2.6.31-kernel

cp System.map /boot/System.map-2.6.31

(it may be necessary to create the initrd)

mkinitrd /boot/initrd-2.6.31.img 2.6.31

The first argument is the name of the initrd image you are creating. The second argument is the kernel version string. (i.e. Version, Patchlevel, Sublevel and Extraversion, reflecting the name of the modules directory for that kernel in /lib/modules)

The command should complete silently, if successful.

add your new kernel to your boot loader's configuration. Be sure and preserve your existing kernel, as always.

vim /etc/lilo.conf

lilo

if errors; fix them.

reboot

after you rebooted; change the symlinks

rm /etc/rc.d/rc.modules

cp /etc/rc.d/rc.modules-(old) /etc/rc.d/rc.modules-2.6.31

ln -s /etc/rc.d/rc.modules-2.6.31 /etc/rc.d/rc.modules

depmod -ae

OR reboot again

ALL SET FINISHED.

This document was last modified on: 190624 19:52:54 UTC