skip to content

Upgrade Gentoo Kernel

This is a note for upgrading Gentoo kernel 2.6.19-gentoo-r5 to 2.6.24-gentoo-r3

  1. Reference http://www.gentoo.org/doc/en/kernel-upgrade.xml. Check if genkernel is installed. If not, install it
    # emerge -pv genkernel
  2. Install the latest gentoo-sources
    # emerge gentoo-sources
  3. 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
  4. Reference http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=7 to Compile and configure genkernel:
    #genkernel all
  5. 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
  6. 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-r3

    Please 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.

  7. Reboot the system

 

Comments

Bug

In the sixth step:
title=Gentoo Linux 2.6.24-r3 isn't it?

Fixed

Sorry for the confusion.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.
Powered by Drupal.