Gentoo - Upgrading Kernel SourcesΒΆ


2005-02-19 01:24

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/

Go to source directory

cd /usr/src

Delete symlink pointing to linux

rm linux

Re-link to new kernel tree

ln -s 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.


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 & .config

cp /boot/

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