LinuxQuestions.org
Visit Jeremy's Blog.
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 03-23-2008, 08:12 PM   #1
RLH1919
Member
 
Registered: Dec 2007
Location: Charleston, South Carolina USA
Distribution: Slackware 13 Ubuntu RHEL 5
Posts: 50

Rep: Reputation: 15
Kernel compile 2.6.24.3 doesn't load new modules


I have compiled the kernel 2.6.24.3 and installed it. When I boot to the new kernel it looks like it's still using the modules from the old kernel (2.6.21.5) I look in /etc/rc.d and I don't see the new kernel modules only the old ones. I installed this kernel because I'm trying to install Intel Pro wireless 3945 driver and to do that I needed a newer kernel with mac80211. What do I need to do to make the new modules work.
 
Old 03-23-2008, 08:49 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Did you 'make modules' and 'make modules_install' after the 'make'? I like to edit the Makefile and change the 'EXTRAVERSION=' to a descriptive value yet unique. That way you will not have a problem identifying.
 
Old 03-23-2008, 08:57 PM   #3
RLH1919
Member
 
Registered: Dec 2007
Location: Charleston, South Carolina USA
Distribution: Slackware 13 Ubuntu RHEL 5
Posts: 50

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by onebuck View Post
Hi,

Did you 'make modules' and 'make modules_install' after the 'make'? I like to edit the Makefile and change the 'EXTRAVERSION=' to a descriptive value yet unique. That way you will not have a problem identifying.
Yes I did the make 'modules modules' and 'make modules_install'
I followed this how to document:
http://alien.slackbook.org/dokuwiki/...kernelbuilding
 
Old 03-24-2008, 01:09 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Good guide.

BTW, 'softmac' should be in '/lib/modules/2.6.21.5-smp/kernel/net/ieee80211/softmac/' as part of the 2.6.21.5-smp stock kernel.
 
Old 03-24-2008, 01:41 PM   #5
RLH1919
Member
 
Registered: Dec 2007
Location: Charleston, South Carolina USA
Distribution: Slackware 13 Ubuntu RHEL 5
Posts: 50

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by onebuck View Post
Hi,

Good guide.

BTW, 'softmac' should be in '/lib/modules/2.6.21.5-smp/kernel/net/ieee80211/softmac/' as part of the 2.6.21.5-smp stock kernel.
Oh ok cool thanks. I will see if I can get that to work using the ipw3945 driver with my Intel Pro Wireless 3945 ABG in my laptop.
If that doesn't work I will try to compile the 2.6.24.3 kernel again.
From that how to I followed I didn't use a Slackware kernel config file so maybe I hosed something up.
 
Old 03-25-2008, 06:38 AM   #6
RLH1919
Member
 
Registered: Dec 2007
Location: Charleston, South Carolina USA
Distribution: Slackware 13 Ubuntu RHEL 5
Posts: 50

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by RLH1919 View Post
Oh ok cool thanks. I will see if I can get that to work using the ipw3945 driver with my Intel Pro Wireless 3945 ABG in my laptop.
If that doesn't work I will try to compile the 2.6.24.3 kernel again.
From that how to I followed I didn't use a Slackware kernel config file so maybe I hosed something up.
I have compiled and installed the kernel 2.6.24.4 after using a config file for Slackware. It already has the mac80211 and iwl3945 driver but still can't get wireless to work but I guess that is for another post maybe in in the wireless threads.
 
Old 03-25-2008, 12:29 PM   #7
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Did you make a /etc/rc.d/rc.modules-$(uname -r) file? If your modules are not automatically loaded you should specify them in that file. If the file does not exist it will check /etc/rc.d/rc.modules. Of course if you have /etc/rc.d/rc.modules.local it will run that first regardless of you kernel.
 
Old 03-25-2008, 12:59 PM   #8
RLH1919
Member
 
Registered: Dec 2007
Location: Charleston, South Carolina USA
Distribution: Slackware 13 Ubuntu RHEL 5
Posts: 50

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by shadowsnipes View Post
Did you make a /etc/rc.d/rc.modules-$(uname -r) file? If your modules are not automatically loaded you should specify them in that file. If the file does not exist it will check /etc/rc.d/rc.modules. Of course if you have /etc/rc.d/rc.modules.local it will run that first regardless of you kernel.
No I didn't make that file. I will have to take a look at that.
Should I just make a /etc/rc.d/rc.modules.local
How do I go about specifying my modules in /etc/rc.d/rc.modules-$(uname -r) ?
 
Old 03-25-2008, 09:45 PM   #9
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Quote:
Originally Posted by RLH1919 View Post
No I didn't make that file. I will have to take a look at that.
Should I just make a /etc/rc.d/rc.modules.local
How do I go about specifying my modules in /etc/rc.d/rc.modules-$(uname -r) ?
Don't make a rc.modules.local file unless you want that to be run for every kernel regardless of its version.

You just load the modules you need in the rc.modules-$(uname -r) file. Take a look at one of them and I am sure you will see what you need to put in there. I suggest just copying one of the current files and then modifying it (take out/comment out the modules you don't need and uncomment/add the modules you do need).

If you want your new file to be the default rc.modules file in case one is not found for a kernel's version ( $(uname -r) ) then symlink rc.modules to your new file.
 
Old 03-26-2008, 06:24 AM   #10
RLH1919
Member
 
Registered: Dec 2007
Location: Charleston, South Carolina USA
Distribution: Slackware 13 Ubuntu RHEL 5
Posts: 50

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by shadowsnipes View Post
Don't make a rc.modules.local file unless you want that to be run for every kernel regardless of its version.

You just load the modules you need in the rc.modules-$(uname -r) file. Take a look at one of them and I am sure you will see what you need to put in there. I suggest just copying one of the current files and then modifying it (take out/comment out the modules you don't need and uncomment/add the modules you do need).

If you want your new file to be the default rc.modules file in case one is not found for a kernel's version ( $(uname -r) ) then symlink rc.modules to your new file.

Awesome I'll try that, thanks for your help.
 
  


Reply

Tags
compile, kernel, modules



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
[Compile kernel] How to compile/install the modules ? frenchn00b Linux - General 1 09-06-2009 03:18 PM
Kernel Modules, to load or not to load VampireL0rd Linux - Software 3 07-24-2007 09:20 PM
how to load modules in kernel? ankit4u1 Linux - Kernel 3 07-24-2007 03:59 PM
How to load kernel modules ginda Linux - Software 2 01-12-2007 06:06 AM
How to Load Kernel Modules? binarybob0001 Linux - General 5 11-16-2005 10:15 AM

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

All times are GMT -5. The time now is 05:22 AM.

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