Gentoo – Upgrading Kernel Sources
Gentoo Linux 2.6.X
How To – Upgrading Kernel Sources
//Copy current configuration file to new kernel source
# cp /usr/src/linux/.config /usr/src/linux-2.x.xxx/.config
//Go to source directory
# cd /usr/src
//Delete symlink pointing to linux
# rm linux
//Re-link to new kernel tree
# ln -s linux-2.x.xxx linux
//Go to linux directory
# cd /usr/src/linux
//Attempt to preserve existing kernel config in new new config
# make oldconfig
//Set kernel options
# make menuconfig
//Compile the kernel
# make && make modules_install
//The kernel has now been compiled
//Now the new kernel needs to be copied to the boot partition.
//Mount the boot partition if not already done.
# mount/boot
//Rename old kernel if required.
# mv /boot/bzImage /boot/bzImage.old
//Copy across new kernel
# cp arch/i386/boot/bzImage /boot/kernel-2.6.X-gentoo-X
//Copy a backup of system.map & .config
# cp System.map /boot/System.map-2.6.X-gentoo-X
# cp .config /boot/config-2.6.X-gentoo-X
//One the new kernel is in place the boot loader needs to be updated.
# nano -w /boot/grub/grub.conf



















