Gentoo Kernel Upgrade
From KdjWiki
This applies once you have emerged a new version of your kernel sources. In this example I am assuming the old kernel was linux-2.6.14-gentoo-r2 and the new kernel version is linux-2.6.14-gentoo-r5. I am also assuming you use grub as your boot manager.
Pre-Steps
Go to your source folder:
$ cd /usr/src
Make sure you use the old/current configuration:
$ sudo cp linux/.config linux-2.6.14-gentoo-r5/
Link the new source tree to the generic linux folder (assuming the new kernel version was linux-2.6.14-gentoo-r5):
$ sudo rm linux $ sudo ln -sf linux-2.6.14-gentoo-r5 linux
Upgrade the configuration:
$ cd linux $ sudo make oldconfig
Backup current kernel:
$ sudo mount /boot $ cd /boot $ sudo cp kernel-linux-2.6.14-gentoo-r2 kernel-working ...
And add to grub:
$ cd grub $ sudo nano -w grub.conf
xxxxx xxxxx
Manual
To upgrade your kernel manually, you should perform run the following:
$ sudo make $ sudo make modules_install
And then install the kernel:
$ sudo cp arch/i386/bzImage /boot ...