LinuxQuestions.org
Visit Jeremy's Blog.
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 11-22-2005, 06:10 PM   #1
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0
Posts: 3,475

Rep: Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530
Updating to 10.2 and effects on kernels


I soon expect to update my Slackware 10.1/KDE 3.3.2 box to 10.2/3.4.3. A year ago I somehow magically managed to recompile the 2.4.28 kernel to provide some minor adjustments for my first box. Of course, when I update to 10.2, kernel 2.4.31 will be installed.

Back when I was toying for those few days I developed a habit of being careful about maintaining my GRUB menu.lst such that if a recompiling effort failed I could easily revert to a previous working kernel menu option.

But I never had two different kernel versions installed and this is new territory for me.

When I update to 10.2 will the sym link from /usr/src/linux be automatically modified from /usr/src/linux-2.4.28 to /usr/src/linux-2.4.31? If so, then how does that affect the currently installed 2.4.28 kernel I recompiled and installed?

What precautions do I need take to preserve my 2.4.28 recompiling before I begin trying to learn more about recompiling with the 2.4.31 kernel?

If I recompile the 2.4.31 kernel and update the module dependencies, and my effort fails, will my previous 2.4.28 dependencies remain untouched and usable?

I already maintain copies of my kernel, system.map and config file in my /boot partition and identified by a unique name such that any recompiling effort does not easily overwrite those files. I'm not sure how the kernel knows where to look for the modules, is that defined in the system.map or config file?

Anyway, like many of my questions, I'm once again looking for the big picture and the general concepts involved. Thanks again.
 
Old 11-22-2005, 07:34 PM   #2
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 13.37
Posts: 535

Rep: Reputation: 36
Re: Updating to 10.2 and effects on kernels

Quote:
When I update to 10.2 will the sym link from /usr/src/linux be automatically modified from /usr/src/linux-2.4.28 to /usr/src/linux-2.4.31? If so, then how does that affect the currently installed 2.4.28 kernel I recompiled and installed?
That link only affects the source, and will only be changed if you install another Kernel Source package. The link is really only a short-cut to the latest source you have loaded and isn't actually used when you compile a kernel, because you should already be inside that directory. As it's only a link to a directory, it won't affect your current kernel at all.
Quote:
What precautions do I need take to preserve my 2.4.28 recompiling before I begin trying to learn more about recompiling with the 2.4.31 kernel?
Copy the .config file out of the kernel-2.4.28 directory. That way you can use it as a base for configuring under 2.4.31, using make oldconfig (I think). Unless you plan on compiling another kernel under 2.4.28, then you don't need to "force" the upgrade to leave your old source tree.
Quote:
If I recompile the 2.4.31 kernel and update the module dependencies, and my effort fails, will my previous 2.4.28 dependencies remain untouched and usable?
If you only recompile, yes. But be careful upgrading the kernel-modules and kernel when you upgrade. You'll have to install those, not upgrade, or else it'll remove the old ones.
Quote:
I already maintain copies of my kernel, system.map and config file in my /boot partition and identified by a unique name such that any recompiling effort does not easily overwrite those files. I'm not sure how the kernel knows where to look for the modules, is that defined in the system.map or config file?
The lilo, or grub (I'm assuming) configuration files tell it where the kernels reside, and what they're called. The modules are in /lib/modules/<kernel version>

Cheers,
Eddie
 
Old 11-23-2005, 05:29 PM   #3
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0
Posts: 3,475

Original Poster
Rep: Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530
Quote:
If you only recompile, yes. But be careful upgrading the kernel-modules and kernel when you upgrade. You'll have to install those, not upgrade, or else it'll remove the old ones.
Ah, that makes sense. So do not do a "blind" upgradepkg */*.tgz, or at least skip the kernel stuff when using that command.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
updating gtk....effects??? ankur_linuxfan Fedora 1 02-08-2005 05:58 AM
USB Mouse randomly freezes with new 2.6.x Kernels + funny side effects phrog Linux - Hardware 0 11-23-2004 12:31 AM
updating and kernels dreaded Mandriva 9 09-02-2004 11:30 AM
RH 8 kernels and their relation to 'stock' kernels psweetma Linux - Distributions 1 03-29-2003 10:46 PM
kernel updating effects? tumnus Linux - Newbie 2 02-09-2003 04:59 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration