Alessandro Dotti Contra

Linux/Unix DevOps

Custom kernel (the Debian way)

This is just a check list to compile a custom debian kernel. More informations and better explanations can be found in the official debian FAQ.

Install the kernel-package package

$> apt-get install kernel-package

Unpack the kernel sources

$> tar jxvf kernel-source-2.4.27.tar.bz2

Configure the kernel

$> cd kernel-source-2.4.27/
$> make menuconfig


$> make-kpkg --revision 01 --append-to-version -adc kernel_image

Install your custom kernel

$> dpkg -i kernel-image-2.4.27-adc_01_i386.deb

Some notes about the options


Sets the revision number of the resulting debian package.


Sets the EXTRAVERSION variable in the kernel Makefile. It is useful to have a separate modules tree in /lib/modules for each kernel you want to use.