View Single Post
  #1  
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 http://www.howtoforge.com/howto_linu...compile_debian. This is how you do it:

Code:
apt-get install kernel-package libncurses5-dev fakeroot wget bzip2
cd /usr/src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.11.7.tar.bz2
tar xjf linux-2.6.11.7.tar.bz2
cd linux-2.6.11.7/
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: http://www.falkotimme.com/howtos/deb...config-2.6.8.1

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

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

Code:
make menuconfig
Go ahead with
Code:
cd ../
dpkg -i kernel-image-2.6.11.7_custom.1.0_i386.deb
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:
Code:
uname -a
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:

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