Gnuru.org
Productive Linux


Subscribe

 Subscribe via Feedburner in a reader

Enter your email address:

Delivered by FeedBurner


Login
Login:
Password:



Don't have an account?
Sign up to Gnuru.org
Forgot your password?

Compiling A Debian Kernel
11 December 2008 @ 12:58 GMT
by Paul

Note to self.

First get the source:

apt-get install linux-source-2.2.26

Unpack the source archive and create the symlink:

cd /usr/src/
tar jxf linux-source-2.2.26.tar.bz2
ln -s linux-source-2.2.26 linux
cd linux

Don't reconfigure manually, get your old config:

zcat /proc/config.gz > .config

Compile your version with the wonderful fakeroot command:

fakeroot make-kpkg --initrd --revision=anumber kernel_image

Install it:

sudo dkpg -i ../linux-image-2.6.26_anumber_i386.deb 

And reboot.

Tags: debian kernel


Ah, this doesn't work with a standard Debian kernel, at least not on the systems where I've tried it:

desktop:~$ zcat /proc/config.gz gzip: /proc/config.gz: No such file or directory desktop:~$ uname -a Linux desktop 2.6.26-1-686 #1 SMP Wed Nov 26 19:14:11 UTC 2008 i686 GNU/Linux desktop:~$ cat /etc/debian_version 5.0


Posted by lefty.crupps on 2008-12-12 17:17:44.

Stupid line-break-stealer ;)

Those command should have read thus:

desktop:~$ zcat /proc/config.gz gzip: /proc/config.gz: No such file or directory

desktop:~$ uname -a Linux desktop 2.6.26-1-686 #1 SMP Wed Nov 26 19:14:11 UTC 2008 i686 GNU/Linux

desktop:~$ cat /etc/debian_version 5.0


Posted by lefty.crupps on 2008-12-12 17:18:57.
Leave a comment:

Are you human?