This is a note for upgrading Gentoo kernel 2.6.19-gentoo-r5 to 2.6.24-gentoo-r3
- Reference http://www.gentoo.org/doc/en/kernel-upgrade.xml. Check if genkernel is installed. If not, install it
# emerge -pv genkernel - Install the latest gentoo-sources
# emerge gentoo-sources - Switch to the new kernel link
# eselect kernel list
Available kernel symlink targets:
[1] linux-2.6.19-gentoo-r5 *
[2] linux-2.6.24-gentoo-r3
# eselect kernel set 2 - Reference http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=7 to Compile and configure genkernel:
#genkernel all - Check the created kernel image name and initrd
# ls /boot/kernel* /boot/initramfs*
We will need to know the image name and initrd in order to configure the grub.conf - Configure the grub.conf. Reference: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10
# vi /boot/grub/grub.conf
Add the following lines to the top of the list:title=Gentoo Linux 2.6.19-gentoo-r3
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.24-gentoo-r3 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev
initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r3Please pay attention to set the correct real_root to where your /root is.
If you have SCSI devices, you should add doscsi as kernel option.
- Reboot the system
Comments
Bug
Tue, 07/29/2008 - 21:38 — AnonymousIn the sixth step:
title=Gentoo Linux 2.6.24-r3 isn't it?
Fixed
Tue, 07/29/2008 - 23:38 — voyageurSorry for the confusion.
Post new comment