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 11-28-2005, 08:57 PM   #1
yougene
Member
 
Registered: Oct 2005
Posts: 65

Rep: Reputation: 15
Compiling stripped down kernel deletes modules used by other kernels


I've been trying to figure out the kernel lately on my slackware 10.2 install. So I have several kernels setup in lilo. The problem I'm having is when I tried to configure a stripped down kernel and installed it and the modules it deleted the modules my normal kernel uses.


Is there anyway to keep the kernels from stepping on each others toes?
 
Old 11-28-2005, 09:12 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Only if they're all from the same source, and you didn't modify
"Extraversion" in the Makefile... in other words: works as designed.


Cheers,
Tink
 
Old 11-28-2005, 09:16 PM   #3
yougene
Member
 
Registered: Oct 2005
Posts: 65

Original Poster
Rep: Reputation: 15
Hmmmm,

Could anyone recommend a book or a site, that can inform me on this matter?
 
Old 11-28-2005, 09:23 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
No book needed ... from the little info you provided I
assume that you're trying to compile varied versions
of the same kernel.

You CAN do that, but if you don't edit the Makefile in
your one kernels directory before every compile, changing
the "EXTRAVERSION" for each version you'll get exactly
what you describe...

Code:
cat /usr/src/linux-2.4.31/Makefile
VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 31
EXTRAVERSION = <your version-info goes here!>


Cheers,
Tink
 
Old 11-28-2005, 10:32 PM   #5
Razze
Member
 
Registered: Dec 2004
Location: Espoo, Finland
Distribution: Gentoo, 2.6.16-gentoo-r11
Posts: 108

Rep: Reputation: 15
There is no longer a need to edit the Makefile. This feature is now available in the kernel options as well. The setting can be found under

General Setup ->
() Local version - append to kernel release
 
Old 11-28-2005, 11:33 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Not in 2.4 kernels ...
 
Old 11-29-2005, 09:40 AM   #7
yougene
Member
 
Registered: Oct 2005
Posts: 65

Original Poster
Rep: Reputation: 15
Thanks that did it!


I'm not too sure exactly what it did. Does linux keep tabs on every extraversion name I pass to the Makefile or something?
 
Old 11-29-2005, 09:50 AM   #8
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Yes the complete version number (with extra number if any) is built into kernel
and eventually is displayed in /proc/version
 
Old 11-29-2005, 11:38 AM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
And, in this case most importantly, it's also part of the
path to /lib/modules/<kernel-version>


Cheers,
Tink
 
Old 11-29-2005, 02:03 PM   #10
yougene
Member
 
Registered: Oct 2005
Posts: 65

Original Poster
Rep: Reputation: 15
Ahhh, Crystal clear.


Thanks alot guys.
 
Old 11-30-2005, 01:44 AM   #11
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
´You can also just have the standard modules and use various kernels -just don't install the modules when you build a new kernel
 
  


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
compiling kernel modules axr0284 Programming 2 11-26-2005 03:08 PM
FC3:Sound stopped working in all installed kernels after compiling 2.6.13-ck2 kernel whencat Linux - Software 1 09-09-2005 03:22 AM
Modules in Kernel Compiling SlackwareInAZ Slackware 1 07-29-2005 05:10 AM
Compiling Modules for 2.6.6 kernel! Bigg Mike Linux - Newbie 9 06-09-2004 09:04 PM
Compiling kernel modules? jrjarrett Linux - Software 0 09-09-2003 10:24 AM

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

All times are GMT -5. The time now is 09:28 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