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 2
18 December 2010 @ 22:14 GMT
by Paul

Some time ago, I did a 'note to self' on how to compile a debian kernel. Here's an updated 'note to self'.

Assuming I have an old version of the kernel already installed:

cd /usr/src/linux/
make-kpkg clean

Configure the modules I need:

make menuconfig

Then compile the kernel and headers. I think it's wise to build the headers as well as the kernel itself to avoid problems later if I need to compile extra modules.

fakeroot make-kpkg --initrd --revision=custom.1.0 kernel_image kernel_headers

Replacing custom.1.0 with a string of my choice.

Now install:

dpkg -i ../linux-image-2.6.32-custom.1.0_i386.deb
dpkg -i ../linux-headers-2.6.32-custom.1.0_i386.deb

And reboot.

Tags: debian kernel



Leave a comment:

Are you human?