Kernel-Switcher .38 GCC

  • wolf
  • Tagged , ,
  • March 22, 2011
  • I use to think updating the kernel in Sabayon Linux was always a pain till I decided to change the kernel on my Ubuntu box.  I was having issues of system freezing up and others were reporting an upgrade to .36 kernel fixed it for them.  Well I thought instead of only going to .36, I would get .38 kernel instead.  I soon ran into an issue that .38 was not available via the package manager.  So after doing some googling and reading various things.  I discovered that people are installing newer kernels via several methods.  Some of these methods included very long walk throughs, some included running scripts and some involved doing it the old fashioned manual way.  I sat there thinking to myself wow, this is crazy.  I eventually ran across a site that had the .38 deb kernel and headers for download and I used dpkg -i to install them.  I’m a bit of an Ubuntu noob, but I could see where this would frustrate a lot of users.  I started to think how great Sabayon’s tool kernel-switcher is.  There is no reason to complain about how easy it is to upgrade to the latest kernel in Sabayon.

    Remember, doing regular upgrades will not pull the new kernel.  You need to invoke a kernel change.  We do this to prevent users from breaking their system and than screaming at us on the forums or in irc.  A new tool recently introduced into main line entropy called kernel-switcher will make your life easier for this job.

    # kernel-switcher –help for options

    So you want to upgrade to 2.6.38, simply issue:

    # kernel-switcher switch linux-sabayon-2.6.38

    and you will get something like this:

    # kernel-switcher switch linux-sabayon-2.6.38
    >>  @@ Calculating dependencies …
    >>  ## [U] [] sys-kernel/linux-firmwares-2.6.38|0   [2.6.37|0]
    >>  ## [N] [] sys-kernel/linux-sabayon-2.6.38|0
    >>  ## [N] [] net-wireless/broadcom-sta-|0
    >>  ## [N] [] x11-drivers/nvidia-drivers-260.19.29#2.6.38-sabayon|0

    Your mileage will vary pending on the modules/drivers you have installed.  After install, the grub2 gets updated.  Some users are reporting their graphics stuff aren’t working as well afterwards.  You need to make sure your using the proper driver and to do this:

    # eselect opengl list

    Available OpenGL implementations:

    [1]   nvidia *

    [2]   xorg-x11


    Notice my * is set to nvidia, if it’s not where it’s suppose to be, use the eselect opengl set # replace # with the number next to your driver and it will set the system up to use it.  Restart X and you should have all your eye-candy working well.  You can also check and make sure kernel is selected with eselect kernel list.


    # eselect kernel list

    Available kernel symlink targets:

    [1]   linux-2.6.37-sabayon

    [2]   linux-2.6.38-sabayon *

    Looking good as it’s set to .38.  If not, eselect kernel set # in the same manner as setting opengl.  Best thing, before reboot, check those two commands out and make sure they are set properly and than reboot to your new kernel.

    Another quick thing, Sabayon has migrated to GCC-4.5.2.  So upon install it’s good thing to check and make sure it’s set.

    # gcc-config -l

    [1] x86_64-pc-linux-gnu-4.4.5 *

    [2] x86_64-pc-linux-gnu-4.5.2

    So after install, my gcc is still at 4.4.5, time to switch it:

    # gcc-config x86_64-pc-linux-gnu-4.5.2

    and than we get

    * Switching native-compiler to x86_64-pc-linux-gnu-4.5.2 …>>> Regenerating /etc/…                                            [ ok ]
    * If you intend to use the gcc from the new profile in an already * running shell, please remember to do:
    *   # source /etc/profile

    So we run the command source /etc/profile and check again:

    # gcc-config -l

    [1] x86_64-pc-linux-gnu-4.4.5

    [2] x86_64-pc-linux-gnu-4.5.2 *

    Perfect, and what great tools to make it all so simple.  After big updates I always like to run equo deptest and equo libtest to make sure things are sane.  I guess using Sabayon can kinda make ya lazy, but at same time, you realize and appreciate how much time it can save you and makes your computing easier.  It’s not a perfect operating system, but #1 in my book.






    One thought on “Kernel-Switcher .38 GCC

    1. On several occasions when using kernel-switcher to upgrade or uninstall kernels the rootfs UUID got overwritten in grub.cfg so that the system was unable to boot.

      The testing environnement is a ext4 boot partition and btrfs root partition inside a virtualbox VM.

      Apparently btrfs is not well handled by the tool that is called by kernel-switcher to update grub.

      I m not sure if this the right place to post this however…

    Comments are closed.