Archive for April, 2010

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

Leave a comment