HowTo: Compiling a Kernel on Debian
This howto goes over some simple steps at compiling a 2.6 Kernel on a Debian Machine
- apt-get install kernel-package ncurses-dev fakeroot wget bzip2
- cd /usr/src
- wget http://www.kernel.org/pub/linux/kernel/v2.6/lhttp://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.tar.bz2
- tar xjf linux-2.6.18.tar.bz2
- cd linux-2.6.18
- cp /boot/config-* /usr/src/
- this step copies your old configs to /usr/src so you can use them as a reference in compiling your new kernel. step 6 IS optional.
- cd /usr/src/linux-2.6.18; make menuconfig
- Select Load Alternate Configuration if you want to use the optional reference configs from step 6 - and enter the name/location of the reference config.
- Make any modifications to your kernel, such as architecture, filesystem, NIC, scsi drivers, so on.
- Exit and save your new kernel configuration.
- make-kpkg clean
- fakeroot make-kpkg –initrd –revision=custom.1.0 kernel_image
- if the compilationm stops run
- make clean
- make menuconfig
- re-inspect your loaded/chosen kernel options
- go back to step 11
- install your new kernel:
- dpkg -i kernel-image-2.6.18_custom.1.0_i386.deb
- reboot
- uname -a
- dada! Your new kernel should be here, if it isnt check lilo or grub!
Kernel Resources: