[Klug-general] re-compiling the kernel

Paul Littlefield paul.littlefield at bigfoot.com
Wed Nov 16 09:59:29 GMT 2005


On Tuesday 15 Nov 2005 21:27, MacGyveR wrote:
> with 2.6 the preferred method is
>
> make mrproper


Yes, this is REALLY an important one. I have used this to fix quite a few 
oddities. It cleans out the kernel tree and starts afresh. Make sure you have 
a backup copy of the .config file (it should be in your /boot/ folder), then 
run the above command. Copy your backup .config to the /usr/src/linux folder, 
then...


> make config/menuconfig/xconfig


Change your kernel settings and save the new .config file as asked. Then...

> make
> make modules_install


Then...

(and this is for my Gentoo AMD64 box)

cp arch/x86_64/boot/bzImage /boot/kernel-<version>
cp System.map /boot/System.map-<version>
cp .config /boot/config-<version>

where <version> is like 2.6.13-gentoo-r3

Then, edit your boot loader config file with your favourite editor (nano 
-w /boot/grub/grub.conf) and add/check your entries. Save the file, (run LILO 
if you use that) then 'reboot'.

PS: At the moment, I am trying to get my Belkin UPS to talk with my Linux box 
via the Serial cable supplied. I have compiled 'Serial Port' suport into the 
kernel but it's still having none of it.

PPS: Have just spotted that you need to add 'Serial Port Discipline' to the 
kernel as well... off we go!

:-)

-- 
PAULLY
http://www.paully.co.uk



More information about the Kent mailing list