LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Kernel compile 2.6.24.3 doesn't load new modules (https://www.linuxquestions.org/questions/slackware-14/kernel-compile-2-6-24-3-doesnt-load-new-modules-630118/)

RLH1919 03-23-2008 08:12 PM

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.

onebuck 03-23-2008 08:49 PM

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.

RLH1919 03-23-2008 08:57 PM

Quote:

Originally Posted by onebuck (Post 3098224)
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

onebuck 03-24-2008 01:09 PM

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.

RLH1919 03-24-2008 01:41 PM

Quote:

Originally Posted by onebuck (Post 3098947)
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.

RLH1919 03-25-2008 06:38 AM

Quote:

Originally Posted by RLH1919 (Post 3098986)
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.

shadowsnipes 03-25-2008 12:29 PM

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.

RLH1919 03-25-2008 12:59 PM

Quote:

Originally Posted by shadowsnipes (Post 3100046)
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) ?

shadowsnipes 03-25-2008 09:45 PM

Quote:

Originally Posted by RLH1919 (Post 3100071)
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.

RLH1919 03-26-2008 06:24 AM

Quote:

Originally Posted by shadowsnipes (Post 3100545)
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.


All times are GMT -5. The time now is 08:16 PM.