Home Download Debian

Upgrade Linux Kernel from source in Debian 6.0

After I have made a Kernel upgrade from backports repositories, I didn' like the testing Kernel. I needed the latest stable one. The only option available was to upgrade from the source.

Installing Linux Kernel from source

Installing dependencies:

apt-get install gcc
apt-get install libncurses5-dev

Download Linux Kernel

wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.5.2.tar.bz2

change the Kernel version accordingly to one that is the latest stable version

Move the source to /usr/src/

mv linux-3.5.2.tar.bz2 /usr/src/

cd /usr/src/

Untar it

tar -xvf linux-3.5.2.tar.bz2

cd linux-3.5.2

Compile it

make menuconfig


this will take a long time

make zImage

if it doesn't work, use make bzImage

Create Debian packages

make deb-pkg

after this, you should have some .deb packages in parent folder.

Install the linux image

cd ..
dpkg -i linux-image-3.5.2_3.5.2-3_i386.deb

Testing the new Kernel

Reboot the system. You should have 2 more entries in Grub2 startup menu. The first ones are the new kernel. After system startup check the kernel version:

uname -r

it should say 3.5.2. Your version may be different.

Resources: newbiedoc.sourceforge.net/system/kernel-pkg.html, Linux Kernel, www.asteriskguru.com, www.tux.org/~tbr/


Post a Comment