Build kernel and module packages

From wiki.network-crawler.de
Jump to: navigation, search

Prepare your debian like environment

apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential udev

Patch and Prepare your kernel:

make menuconfig

Now build your .deb file

make-kpkg clean
fakeroot make deb-pkg

Install the .deb file:

dpkg -i linux-2.6-xxx

Prepare your RAM disk (with your modules - startup image)

mkinitrd -o /boot/initrd.img-2.6.xxx 2.6.xxx

And finally prepare your new boot configuration

update-grub

vi /boot/grub/menu.lst