View Single Post
Old 21st April 2005, 18:27
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Lightbulb Compile Kernel 2.6 under Debian Sarge

This is a little bit different from compiling a kernel 2.6 on Debian Woody because Sarge uses grub as the boot loader (instead of lilo) and because module-init-tools, initrd-tools, procps are already installed. After all it's similar to This is how you do it:

apt-get install kernel-package libncurses5-dev fakeroot wget bzip2
cd /usr/src
tar xjf linux-
cd linux-
make menuconfig
It is normally a good idea to take the configuration of your existing (working!) kernel 2.6 as a starting point for the configuration of your new kernel. Usually the current kernel configuration is saved in a file under /boot, e.g. /boot/config-2.6.3. I will load this configuration and then do the changes I desire. If you do not have the config file of a working kernel 2.6 this one might help you:

make-kpkg clean
fakeroot make-kpkg --initrd --revision=custom.1.0 kernel_image
If the compilation stops with an error, run

make clean
and then re-run the previous commands starting with

make menuconfig
Go ahead with
cd ../
dpkg -i kernel-image-
This will install your new kernel (including a ramdisk) and also update grub. You can now reboot your system, and you should then have a new kernel. You can check that by running:
uname -a
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!


nginx-Webhosting: Timme Hosting | Follow me on:

Last edited by falko; 4th November 2005 at 12:07.
Reply With Quote
Sponsored Links