Archive

Posts Tagged ‘kernel’

creating a kernel 2.6.30 deb file

June 16th, 2009 No comments

If you want to create your own debian style packaged kernel you can follow this guide.

First we open a shell and install the necessary packages to create kernels under ubuntu:

sudo apt-get install kernel-package build-essential libncurses5-dev bin86 subversion-tools

Get the newest vanilla kernel, best practice would be to put it into /usr/src.

cd /usr/src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.tar.bz2
tar xjvf linux-2.6.30.tar.bz2
cd linux-2.6.30

Now we can update the symlink:

rm -rf linux && ln -s /usr/src/linux-2.6.30 linux && cd /usr/src/linux

The we load the old configuration and then we launch the command line interface:

sudo cp /boot/config-$(uname -r) .config && yes "" | make oldconfig
cd /usr/src/linux-2.6.30
sudo make menuconfig

Now you can change what ever you want for you own custom kernel, after this we can clean the kernel and then we can trigger the creation of our new kernel:

sudo make-kpkg clean
sudo make-kpkg --revision eee701 kernel_image

If you want to know more about make-kpkg, have a look at this page. (German)
Some ubuntu specific information can be found here.

To install the kernel run:

sudo dpkg -i linux-image-2.6.30_eee701_i386.deb
Categories: Linux, Netbook, Ubuntu Tags: