LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-27-2009, 02:00 PM   #1
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416

Rep: Reputation: 36
Some questions prior to updating the kernel


Hello. Believe it or not, I've never done a kernel update on Slackware (other than complete re-installs). I did a "slackpkg upgrade-all" today to see what was out of date and noticed a number of kernel related packages. Before I do the update, I want to make sure I don't break anything. Note, I'm running Slackware 12.2.

First, will doing the update of the kernel packages also update the running kernel? Will I need to re-run lilo to find the new one?

There are some packages I have installed that I know have kernel modules (eg. the ATI drivers for one). Am I correct that after I install the new kernel packages I will need to re-build any packages that built kernel modules?

I know some of the packages this applies to. How can I find out which ones I don't know about. I know about lsmod to see what modules are loaded. How do I find out what package is responsible for a module?

I hope my questions make sense.
 
Old 08-27-2009, 02:19 PM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
If you use slackpkg, it will offer to run lilo when it's finished updating. If you are running the generic kernel, you'll need to make a new initrd. Yes, you will need to rebuild any kernel modules you've installed. I had to do that for the atl2 module on my laptop.
 
Old 08-27-2009, 03:04 PM   #3
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
If you use slackpkg to upgrade the kernel make sure you check /etc/slackpkg/blacklist and verify that all the kernel lines are commented out with "#".

If you are using the generic kernel then check your /etc/lilo.conf and make sure "image = /boot/vmlinuz" or "image = /boot/vmlinuz-generic-smp-2.6.26.31-smp". vmlinuz is a symlink to the generic-smp kernel anyway.

If you are using the generic kernel then make sure you have your "mkinitrd..." command ready to go. "cd /boot" then run your command to create the new init tree. While still in /boot you could run "lilo" (again).

Before you reboot you could save the output from lsmod to a text file to compare later with the new kernel running. If your ATI driver was compiled before you'll need to get ready to do it again. Might as well boot init 3 and do it right away before trying to start X11.
 
Old 08-27-2009, 03:14 PM   #4
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Rep: Reputation: 41
Kernel upgrade is not as scary as it seems. I cannot remember the last time I had to do a full installation of slackware. I even do the upgrade remotely sometimes. The process I follow is:
1. go to runlevel 3 (This is only to remove my video driver. Not required on my servers)
2. remove nvidia driver (this is the only kernel specific module I have. You may have remove others)
3. upgrade all
4. upgrade config files if required
5. mkinitrd with new kernel
6. lilo
7. update inittab to runlevel 3
8. reboot
9. reinstall nvidia driver
10. telinit 4
11. set inittab back to runlevel 4

I don't know of an easy way to find kernel specific modules if you don't keep track of non-standard packages that you install. You can check if anything remains in /lib/modules for the old kernel after it is removed. It's not a big deal if you missed anything. You will realize when you try to use the app/driver, at which time you can recompile for the new kernel. I still forget to remove the nvidia driver from time to time (a mixture of late night and alcohol can cause that) and the cisco vpn before I discover vpnc.
 
Old 08-27-2009, 05:17 PM   #5
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416

Original Poster
Rep: Reputation: 36
Thanks. This is helpful so far. Guess I'll need to read the man page for mkinitrd. I know all of the non-standard packages installed. Most were from Slackbuilds. I still have to package files that I built. Will re-installing them be enough to re-compile the kernel modules (where needed) or do I need to re-build the install packages?

Besides my ATI drivers, I know there is a VirtualBox module, and modules from my compile of madwifi. I compiled madwifi because I have had trouble with compatibility on my card, but may see if that is still an issue.

There are some specific modules I'm curious about.

Code:
cpufreq_ondemand       10636  1
cpufreq_powersave       5632  0
acpi_cpufreq           10892  1
freq_table              7680  2 cpufreq_ondemand,acpi_cpufreq
I have the package cpufrequtils installed and suspect they may be from that rather than the standard acpi collection.

In any case, saving the output of lsmod before upgrade is a great idea.
 
Old 08-27-2009, 05:54 PM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
For the initrd, get and run Eric's script:

http://www.slackware.com/~alien/tool...d_generator.sh

Most of the SlackBuild stuff should still be OK. Yeah, you'll probably have to reinstall VirtualBox. Not really sure about anything else.
 
Old 08-27-2009, 06:13 PM   #7
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,376

Rep: Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756
Quote:
Before I do the update, I want to make sure I don't break anything. Note, I'm running Slackware 12.2.
Be aware that in going from Slackware 12.2 to -current you will upgrade glibc. This could affect the operation of any programs that you have compiled.
I would strongly recommend that you use slackpkg to do the update. Slackpkg is smart enough to order the update so that pkgtools ( and associated utilities) and glibc are upgraded before upgrading other packages.

A couple of gotchas with slackpkg:
1) It does not report on the appearance of *.new files under /usr. You will need to run 'find . "*.new" -print' from /usr to to pickup the new man.conf and vimrc.conf files.
2) It does not report on the new /etc/passwd, /etc/group, /etc/shadow, /etc/gshadow files. There have been some additions and alterations to these files which you will need to change manually.
 
Old 08-27-2009, 06:19 PM   #8
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
No, he hasn't upgraded to current, it's the 12.2 kernel update (to 2.6.27.31) he's referring to.
 
Old 08-27-2009, 06:26 PM   #9
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by allend View Post
Be aware that in going from Slackware 12.2 to -current you will upgrade glibc...
All good points but the OP never mentioned upgrading to from 12.2 to -current. There are recent kernel patches for 12.2 without upgrading to -current.
 
Old 08-27-2009, 08:11 PM   #10
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by Chuck56 View Post
All good points but the OP never mentioned upgrading to from 12.2 to -current. There are recent kernel patches for 12.2 without upgrading to -current.
Right, the upgrade would take me to 2.6.27.31 like brianL said.

It had not occurred to me until now that this wouldn't take me to -current. Now I'm curious how you get to current. Sounds like I'll be searching the forum.

Thanks for the replies. The Slackware community is amazing.
 
Old 08-27-2009, 08:38 PM   #11
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by statguy View Post
It had not occurred to me until now that this wouldn't take me to -current. Now I'm curious how you get to current. Sounds like I'll be searching the forum.
Found the necessary information on that one. The forum search is my friend.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Updating: a few questions Fill Linux - Kernel 4 02-16-2008 02:20 AM
Updating Slackware 11 - questions Bimbalhada Slackware 2 01-03-2007 02:41 PM
Updating Woody's Kernel Prior to Installation zoso Debian 2 01-15-2005 10:18 PM
Questions before updating to -28mdk kernel rps63ifid Mandriva 1 02-25-2004 10:35 AM
Questions prior to Install jupitercore Debian 3 12-10-2003 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration