Friday, March 4, 2011

compile kernel with broken make-kpkg

apt-get install fakeroot build-essential crash kexec-tools makedumpfile kernel-wedge
apt-get build-dep linux
apt-get install git-core libncurses5 libncurses5-dev libelf-dev asciidoc binutils-dev

export CONCURRENCY_LEVEL=ncpu+1
make menuconfig
make-kpkg --initrd --append-to-version=**** kernel-image kernel-headers
... this will fail ...

make -j (ncpu+1)
make modules
make modules_install
make install

cd /boot
mkinitramfs -o initrd.img-2.6.25 2.6.25

# update-grub
use startup manager
apt-get install startupmanager

# vi /boot/grub/menu.lst
title Debian GNU/Linux, kernel 2.6.25 Default
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hdb1 ro
initrd /boot/initrd.img-2.6.25
savedefault
boot