Firebird News

Wednesday, December 03, 2008

Compiling 2.6.27.x Vanilla Final on Hardy/Intrepid - Ubuntu/Debian way

This article is about compiling a kernel on Ubuntu systems. It describes how to build a custom kernel using the latest unmodified kernel sources from www.kernel.org (vanilla kernel) so that you are independent from the kernels supplied by your distribution.

$ cd /usr/src
$ sudo wget --continue http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.9.tar.bz2
$ sudo tar jxvf linux-2.6.27.9.tar.bz2
$ cd linux-2.6.27.9

$ sudo cp /boot/config-`uname -r` ./.config
$ sudo make menuconfig

Disable xen
Processor Type and Features -> Paravirtualized Guest Support -> Xen

support otherwise you will get this error

$ sudo make-kpkg clean
$ sudo fakeroot make-kpkg --initrd --append-to-version=-vanillaice kernel_image kernel_headers
$ cd ..
$sudo dpkg -i linux-image-2.6.27.x-*
$sudo shutdown -r now

you can install the headers too from /usr/src/linux-headers-2.6.27.x-*
in my case i can show you how the packages are named
ls *.deb

No comments: