Compile kernel in Ubuntu

cd /usr/src
apt-get install linux-source

//or get the source code from kernel.org

tar xvfj linux-source-2.6.28.tar.bz2
ln -s linux-source-2.6.28 linux
cd linux
cp /boot/config-`uname -r` ./.config
make menuconfig

… do your stuff..
make-kpkg clean

make-kpkg –initrd –append-to-version=-mw4 kernel_image kernel-headers

cd ..

dpkg -i linux-image-2.6.28.9saygon4_2.6.28.9saygon-10.00.Custom_i386.deb
dpkg -i linux-headers-2.6.28.9saygon4_2.6.28.9saygon-10.00.Custom_i386.deb

  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: