HOWTO: Upgrade Kernel

(1/3) > >>

uelsk8s:
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:

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:

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:

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:

installpkg broadcom-wl-5.10.27.6_2.6.27.29-i586-1vl60.tlz

4)run depmod to update the kernel module dependancies
Code:

root:$ depmod -aq 2.6.27.29
depmod 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:

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:

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:

rm /boot/vmlinuz /boot/System.map /boot/config
then simply reinstall the NEW kernel package and let it update the symlinks
Code:

installpkg kernel-2.6.27.29-i686-1vl60.tlz


stretchedthin:
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.

uelsk8s:
Quote from: stretchedthin on August 23, 2009, 05: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.

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

stretchedthin:
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?

uelsk8s:
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.

Navigation

[0] Message Index

[#] Next page