VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: HOWTO: Upgrade Kernel  (Read 14461 times)

uelsk8s

  • Administrator
  • Vectorian
  • *****
  • Posts: 2504
HOWTO: Upgrade Kernel
« on: August 23, 2009, 09:52:49 am »

1)download the kernel packages and then install them.
kernel packages are stored in the repo, but NOT accessible from slapt-get or gslapt
you can manually download the 6.0 kernel packages from here: http://vectorlinux.osuosl.org/veclinux-6.0/kernels/

You will need the kernel and kernel-module packages, the kernel-src package is optional and only needed to build kernel and drivers

NOTE: All the following commands need to be ran as root
Code: [Select]
installpkg kernel-2.6.27.29-i686-1vl60.tlz
installpkg kernel-modules-2.6.27.29-i686-1vl60.tlz
installpkg kernel-src-2.6.27.29-i686-1vl60.tlz

2)update your bootloader to add the new kernel, this can be done easily with vliloconf
Code: [Select]
vliloconf
3)install any extra driver packages needed by your system, these can be found by searching for the old kernel version in /var/log/packages
Code: [Select]
ls /var/log/packages/*$(uname -r)*all kernel driver packages should be stored in the repo
you can download the 6.0 kernel driver packages from here: http://vectorlinux.osuosl.org/veclinux-6.0/kernels/drivers/
make sure to get the package that matches the kernel version you are installing
broadcom-wl-5.10.27.6_2.6.27.29-i586-1vl60.tlz
install any extra needed driver packages
Code: [Select]
installpkg broadcom-wl-5.10.27.6_2.6.27.29-i586-1vl60.tlz
4)run depmod to update the kernel module dependancies
Code: [Select]
root:$ depmod -aq 2.6.27.29depmod needs to be ran with the new kernels version as an argument or ran under the kernel you want the modules updated for.

5)reboot into the new kernel and verify that it is working correctly
run "depmod -aq" and reboot if not ran in lest step
This would include making sure your video driver was working and that you compiled a driver for the running kernel if needed.
running the command "vxconf" as root will update the nvidia driver module
Code: [Select]
vxconf
6)*OPTIONAL remove old kernel and driver packages with removepkg
be careful not to remove the kernel-headers package even if it looks like an old version
Code: [Select]
removepkg kernel-2.6.27.12
7)If you removed the old kernel you should upload your symlinks in /boot
first remove the old ones
Code: [Select]
rm /boot/vmlinuz /boot/System.map /boot/configthen simply reinstall the NEW kernel package and let it update the symlinks
Code: [Select]
installpkg kernel-2.6.27.29-i686-1vl60.tlz

Logged

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: HOWTO: Upgrade Kernel
« Reply #1 on: August 23, 2009, 06:28:48 pm »

Hi. Uelsk8s

Great tutorial.
Only thing I can not find a 2.6.27.29 version of the alsa-driver where indicated in the tutorial...
http://vectorlinux.osuosl.org/veclinux-6.0/kernels/drivers/

I'm not sure if I should even attempt to complete the kernel upgrade without it.  Ah, what the hell, I'll give it a try in a virtual machine, let you know what happens.
Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee

uelsk8s

  • Administrator
  • Vectorian
  • *****
  • Posts: 2504
Re: HOWTO: Upgrade Kernel
« Reply #2 on: August 23, 2009, 07:27:55 pm »

Hi. Uelsk8s

Great tutorial.
Only thing I can not find a 2.6.27.29 version of the alsa-driver where indicated in the tutorial...
http://vectorlinux.osuosl.org/veclinux-6.0/kernels/drivers/

I'm not sure if I should even attempt to complete the kernel upgrade without it.  Ah, what the hell, I'll give it a try in a virtual machine, let you know what happens.
The alsa drivers are built into the kernel-modules package for the 2.6.27.29 kernel
Logged

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: HOWTO: Upgrade Kernel
« Reply #3 on: August 23, 2009, 07:56:31 pm »

Quote
The alsa drivers are built into the kernel-modules package for the 2.6.27.29 kernel

Thanks.  I completed the kernel upgrade, and your right everything went fine.
I also noticed a version 2.6.28.4.  this seems a little further along, but I avoided it because I could find no drivers for it.  I imagine the alsa driver is built into it as well.  Was I right to avoid this one or are the other drivers built in as well?
Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee

uelsk8s

  • Administrator
  • Vectorian
  • *****
  • Posts: 2504
Re: HOWTO: Upgrade Kernel
« Reply #4 on: August 23, 2009, 08:01:37 pm »

you were right to avoid it.
it has the vulnerability that our 2.6.27.29 was patched against, and it is not as new as 2.6.27.29 even though it is obviously a later kernel version release.
Logged

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: HOWTO: Upgrade Kernel
« Reply #5 on: August 23, 2009, 09:10:32 pm »

Uelsk8s,  I'm making a screencast of my experience with your tutorial.  I'll be the first to admit that your tutorial is straightforward, basic and easy.  But some newer users might be nervous to try and a screencast may just show how easy it really is.  OK, if I post a link to it here?
Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee

uelsk8s

  • Administrator
  • Vectorian
  • *****
  • Posts: 2504
Re: HOWTO: Upgrade Kernel
« Reply #6 on: August 23, 2009, 10:38:57 pm »

Uelsk8s,  I'm making a screencast of my experience with your tutorial.  I'll be the first to admit that your tutorial is straightforward, basic and easy.  But some newer users might be nervous to try and a screencast may just show how easy it really is.  OK, if I post a link to it here?
Please DO.
I appreciate all the work you put into the screencast's and think that they are great.

Uel
Logged

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: HOWTO: Upgrade Kernel
« Reply #7 on: August 23, 2009, 11:31:14 pm »

Right back at you, as far as work and appreciation goes. 
Here is is...uelsk8's Upgrade Linux Kernel tutorial as a screencast.
Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee

danthemannewtolinux

  • Vectorite
  • ***
  • Posts: 107
Re: HOWTO: Upgrade Kernel
« Reply #8 on: March 09, 2012, 02:31:12 pm »

Thanks for this, it was really easy to do as long as you follow the instructions step by step, i'm now updated to the latest kernel 3.2.9!! ;D
Logged

dynosis

  • Member
  • *
  • Posts: 1
Re: HOWTO: Upgrade Kernel
« Reply #9 on: April 11, 2012, 02:57:41 pm »

hi very good tut. but i am stuck on grub 2. vectorlinux uses grub2 but after updating kernel to 3.3.1 all is well, it won't "update grub" command.
please help. thanks
Logged

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: HOWTO: Upgrade Kernel
« Reply #10 on: June 28, 2012, 01:26:39 pm »

I've upgraded the video I had made for upgrading  the kernel in vectorlinux.
You can see the new one here.
Upgrading the Kernel in Vectorlinux

It will also be posted to opensourcebistro.com/blog1. Which is accessable by the video tutorial link on the desktop.
Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee