Wednesday, November 24, 2010

Compiling kernel from scratch.

The new "200 lines of code" that makes the system more responsive is finally out! It is included in Kernel 2.6.37-rc3. This guide will explain how to install it on your system!

If you have Ubuntu, you can download the Debian packages:

http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.37-rc3-natty/

First, download the latest patch and sources from kernel.org.

http://www.kernel.org/pub/linux/kernel/v2.6/testing/linux-2.6.37-rc3.tar.bz2
http://www.kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.37-rc3.bz2

#Extract and apply the patch:

tar xvf linux-2.6.37-rc3.tar.bz2
mv patch-2.6.37-rc3.bz2 linux-2.6.37-rc3/
cd linux-2.6.37-rc3
bunzip2 -d patch-2.6.37-rc3.bz2 | patch -p1

#Start the build process:

make clean
make menuconfig
make -j3 all
make -j3 modules_install

#Install and update GRUB:
make install
mkinitramfs -k 2.6.37-rc3 -o /boot/initrd.img-2.6.37-rc3
update-grub

No comments:

Post a Comment