Debian : compilation d'un kernel custom sous squeeze

Boris HUISGEN
|
Petit mémo sur la compilation d’un noyau custom sous Debian.
Installation des sources et des dépendances
# apt-get install linux-source-2.6.32
# apt-get install fakeroot bzip2 kernel-package libncurses-dev
# apt-get build-dep linux-source-2.6.32
# cd /usr/src/
# tar xjf linux-source-2.6.32.tar.bz2
# ln -s linux-source-2.6.32 linux
Configuration du noyau
# cd linux
# make clean && make mrproper
# cp /boot/config-`uname -r` .config
# make menuconfig
Compilation
# make-kpkg clean
# fakeroot make-kpkg --append-to-version "bhuisgen" --revision "1" --us --uc --initrd kernel_image kernel_headers
Installation
# cd /usr/src
# dpkg -i linux-image-2.6.32-bhuisgen_1_amd64.deb linux-headers-2.6.32-bhuisgen_1_amd64.deb