Updating kernel in Sabayon using Entropy


Switching your kernel using kernel-switcher is the easiest way, and actually recommended,as it also installs the right kernel modules/drivers. Check for more information on

Entropy:Using Kernel Switcher !

 

Stop.png
Kernel versions may vary!

 

Stop.png
Do not reboot until you have completed all the steps in this article!

This How-to helps you to update your kernel by using the Entropy package manager.

First of all you must update the Entropy package manager to the latest version to overcome other issues. Become root by using the su command:

 $ su

Press Enter, type the root password then press Enter again. Now you can update the package manager. First of all update the repositories:

 # equo update

If equo tells you there is a newer Entropy version available, you should install it:

 # equo install entropy

Sometimes you need to update configuration files too, so use the command:

 # equo conf update

and follow its instructions. Entropy is now up-to-date and we can move on to installing the latest kernel image:

 # equo install --ask linux-sabayon

The output should look something like this:

 # equo install --ask linux-sabayon
>>  @@ These are the chosen packages:
>>    # (1/1) [sabayonlinux.org] sys-kernel/linux-sabayon-2.6.36-r1
>>     Versions: Not installed / NoTag / NoRev ===> 2.6.36-r1 / NoTag / 0
>> 	Action:		 Install
>>  @@ Packages involved: 1
     Would you like to continue with dependencies calculation ? [Yes/No]  y

Let that install.

Once done, you need to select the kernel with eselect and install all kernel-related drivers that have been rebuilt to work with the new kernel. To show the list of kernels you can select, run:

 # eselect kernel list

The output would look like this:

 # eselect kernel list
Available kernel symlink targets:
  [1]   linux-2.6.35-sabayon
  [2]   linux-2.6.36-sabayon *

As you can see there are two kernel entries and we need to select the latest, which is number [2]. In the example above, the correct kernel is already selected (indicated by the *). Should you need to select a kernel, e.g. [2] run:

 # eselect kernel set 2

Now the kernel symlink is set to the new kernel and we can install the updated kernel drivers. We need to look for the drivers that are installed for the old kernel, so that we can install the appropriate versions for our new kernel.

One way is to search the installed packages for the old kernel version and redirect the output to a file which you can look into later to select the drivers you need.

# equo query installed 2.6.35-sabayon > kernel-upgrade.txt

Open another terminal and read the file:

 # less kernel-upgrade.txt

Look through the list and write down the packages that need to be installed for the new kernel. You can whittle down the number of installed packages in the search to just those that are specifically kernel-related by filtering using grep as follows:

# equo query installed 2.6.35-sabayon | grep '#'

For example:

# equo query installed 2.6.35-sabayon | grep '#'
>>      @@ Package: app-emulation/virtualbox-guest-additions-3.2.12#2.6.35-sabayon branch: 5, [__system__] 
>>      @@ Package: net-wireless/broadcom-sta-5.60.48.36-r1#2.6.35-sabayon branch: 5, [__system__] 
>>      @@ Package: net-wireless/ndiswrapper-1.56#2.6.35-sabayon branch: 5, [__system__] 
>>      @@ Package: x11-drivers/xf86-video-virtualbox-3.2.12#2.6.35-sabayon branch: 5, [__system__]

Equo is able to resolve the latest version of a specific kernel module on its own. The install line for the example above, should look something like this:

# equo install --ask virtualbox-guest-additions#2.6.36-sabayon broadcom-sta#2.6.36-sabayon ndiswrapper#2.6.36-sabayon xf86-video-virtualbox#2.6.36-sabayon

which is resolved by Equo to the following versions:

>>  @@ These are the chosen packages:
>>    # (1/4) [sabayonlinux.org] app-emulation/virtualbox-guest-additions-3.2.12#2.6.36-sabayon
>>     Versions: Not installed / NoTag / NoRev ===> 3.2.12 / 2.6.36-sabayon / 0
>> 	Action:		 Install
>>    # (2/4) [sabayonlinux.org] net-wireless/broadcom-sta-5.60.246.2-r1#2.6.36-sabayon
>>     Versions: Not installed / NoTag / NoRev ===> 5.60.246.2-r1 / 2.6.36-sabayon / 2
>> 	Action:		 Install
>>    # (3/4) [sabayonlinux.org] net-wireless/ndiswrapper-1.56#2.6.36-sabayon
>>     Versions: Not installed / NoTag / NoRev ===> 1.56 / 2.6.36-sabayon / 1
>> 	Action:		 Install
>>    # (4/4) [sabayonlinux.org] x11-drivers/xf86-video-virtualbox-3.2.12#2.6.36-sabayon
>>     Versions: Not installed / NoTag / NoRev ===> 3.2.12 / 2.6.36-sabayon / 0
>> 	Action:		 Install
>>  @@ Packages involved: 4
     Would you like to continue with dependencies calculation ? [Yes/No] y

Once that is finished, all drivers are updated for the latest kernel and you should be safe to reboot into the new kernel.


About pacesettergraam

A good and realistic person

Posted on January 10, 2013, in linux, Sabayon and tagged , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: