Firebird News

Tuesday, January 22, 2008

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
wget --continue http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.23.14.tar.bz2
tar jxvf linux-2.6.23.14.tar.bz2
ln -s linux-2.6.23.14 linux
cd linux
cp /boot/config-`uname -r` ./.config
make menuconfig
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
cd ..
dpkg -i linux-image-2.6.23.14-custom_2.6.23.14-custom-10.00.Custom_i386.deb
shutdown -r now

you can install the headers too from /usr/src/linux-headers-2.6.23.14-*
How To Compile A Kernel - The Ubuntu Way | HowtoForge - Linux Howtos and Tutorials

Blogged with Flock

3 comments:

demogun said...

hi. I think you missed a 'cd' command between these lines:

ln -s linux-2.6.23.14 linux
cp /boot/config-`uname -r` ./.config

Or not? cause i tried this way, and the .config copied to the /usr/src directory.

anyway, thx this post! useful

bye

demogun

mariuz said...

thanks is fixed now :)

mariuz said...

I have updated the guide and now i have posted another one for 2.6.26.x

See the front page