Firebird News

Friday, March 08, 2013

Compiling Linux Kernel 3.8.x Vanilla Final - Ubuntu/Debian way

Here is my guide on Compiling 3.8.x Vanilla Final - Ubuntu/Debian using the 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.
Install the Required packages for building it
 
apt-get install git-core kernel-package fakeroot build-essential ncurses-dev
Then download latest kernel version
cd /usr/src
sudo su 
wget --continue http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.8.x.tar.bz2
tar jxvf linux-3.8.*.tar.bz2
cd linux-3.8.*

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

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

support otherwise you will get this error
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-vanillaice kernel_image kernel_headers
cd ..
dpkg -i linux-image-3.8.*
dpkg -i linux-headers-3.8.*
sudo shutdown -r now

you can install the headers too from /usr/src/linux-headers-3.7.*-*
in my case i can show you how the packages are named
ls *.deb
linux-image-3.8.*-vanillaice_4.4.*-vanillaice-10.00.Custom_amd64.deb
linux-headers-3.8.*-vanillaice_4.4.*-vanillaice-10.00.Custom_amd64.deb

I also created a python script http://github.com/mariuz/kernelcompile

that can be used like this
git clone https://mariuz@github.com/mariuz/kernelcompile.git
cd kernelcompile
sudo ./kernel-compile.py