LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-08-2007, 08:08 PM   #1
skibud2
Member
 
Registered: Sep 2003
Location: Waltham MA
Distribution: Mandriva 2007 w/ KDE
Posts: 87

Rep: Reputation: 15
Kernel Module Not Loading on Boot


I have recently installed a new wireless ethernet card and have the new kernel module rt61.ko. If I use insmod rt61.ko, it inserts the modules without a problem.

I have installed it in:

/lib/modules/2.6.17-5mdvcustom/extra/rt61.ko and
/lib/modules/2.6.17-5mdv/kernel/drivers/net/rt61.ko and
/lib/modules/2.6.17-5mdv/kernel/drivers/net/wireless/rt61.ko

but it still won't load on power up. Any suggestions?

Mike

PS I am using Mandriva 2007 Free
 
Old 01-08-2007, 08:44 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I just went to the Red Hat site to look up details for the answer to your question. Geez. That site is a nightmare for trying to find an answer. Then when you do finally find the documentation it is only available as a downloadable file. Bastards. So I didn't look up the detail that I had in mind. Instead I will tell you all of the possible variations, which are three so that's not too bad.

There is a file in which you can list modules for Linux to load during system startup. This file is either /etc/modprobe.conf or /etc/modules.conf or /etc/modules. You can edit whichever of these possibilities apply to Red Hat and add the module(s) that you want to have loaded. When you look in the /etc directory you may find that more than one of these files exist. That does NOT mean that they are all used during system startup. No. Only one of them is active. I will have to leave the task of figuring out which of these is active to you since that Red Hat web site really upset me.

Sorry that I couldn't be more specific. I just couldn't deal with the Red Hat web site.

Last edited by stress_junkie; 01-08-2007 at 08:49 PM.
 
Old 01-09-2007, 01:31 PM   #3
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
Since you are using Mandriva 2007.0 Free, you may be best served to set up the new wireless card in MCC, but if you simply wish to load the driver you have, then you can add it to /etc/modprobe.conf. Note that you will have to have root permissions to edit any file in /etc

HTH,
 
Old 01-09-2007, 08:13 PM   #4
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by ernie
Since you are using Mandriva 2007.0 Free, you may be best served to set up the new wireless card in MCC, but if you simply wish to load the driver you have, then you can add it to /etc/modprobe.conf. Note that you will have to have root permissions to edit any file in /etc

HTH,
Mandriva. Hmmm. I gotta stop using drugs.
 
Old 01-09-2007, 08:21 PM   #5
xjlittle
Member
 
Registered: Aug 2003
Location: Indiana
Distribution: fc6 sles9 & 10 kubuntu ubuntu-server
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
Does Mandrake have an /etc/sysconfig/modules directory? If it does then you most like need to an executable file with content like the following:

Code:
#!/bin/sh
for i in rt61;do
        modprobe $i >/dev/null 2>&1
done
Don't forget to make it executable.
 
Old 01-09-2007, 09:50 PM   #6
skibud2
Member
 
Registered: Sep 2003
Location: Waltham MA
Distribution: Mandriva 2007 w/ KDE
Posts: 87

Original Poster
Rep: Reputation: 15
I hate to sound stupid, but what is MCC?
 
Old 01-10-2007, 01:52 AM   #7
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
One thing I noticed here is the name of one of your directories, normally you have to compile drivers against the current running kernel which can be displayed with command $uname -r.
The directory in question is /lib/modules/2.6.17-5mdvcustom/extra/rt61.ko and

The word "custom" has me thinking you did'nt edit the Makefile in /lib/modules/2.6.17-5mdvcustom/build to reflect the actual kernel installed, for instance if you have Hyper threading Intel processor, the result of the uname -r command should be something like "2.6.17-5mdvsmp". On the fourth line of that Makefile should read EXTRAVERSION = -5mdvsmp, normally Mandrake/Mandriva has something like this: EXTRAVERSION = -5mdvcustom like the name of the directory suggests which means your module does not match the kernel version in use. You must edit the fourth line of the Makefile to reflect the extraversion (everything after the dash in the results of uname -r command) before compiling any modules.
The Makefile has that "custom" there because they expect people will compile themselves a new kernel when Mandrake/Mandriva puts out a kernel update and that's what will show up along side your old kernel in the boot menu giving you the choice to boot the old kernel or the CUSTOM kernel which should tip you off as to which is which upon re-boot.
Another easy mistake one could make (at least in my Mandrake LE 2005)is after first installation, if you open the GUI Mandrakelinux update, and select "all" in the list of items to update, and in that list is a kernel-source update, you end up mistakingly installing a kernel source that does not match the current running kernel and newly compiled modules won't work. The name of that directory I mentioned above will reflect the kernel-source installed.

PS:MCC = Mandrake Control Center

Last edited by Junior Hacker; 01-10-2007 at 02:38 AM.
 
Old 01-10-2007, 11:36 PM   #8
skibud2
Member
 
Registered: Sep 2003
Location: Waltham MA
Distribution: Mandriva 2007 w/ KDE
Posts: 87

Original Poster
Rep: Reputation: 15
I checked in /etc/modprobe.preload, and I think this where I should be listing the modules. It currently has intel-agp in the list, and when I looked for it, I found intel-agp.ko.gz. What is the deal with the gz at the end. Are the kernel modules gzipped?
 
Old 01-11-2007, 01:36 AM   #9
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Yes, some compiler kits do not have a script with this necessary step, you should put an entry in modprobe.preload spelled exactly as the module (case sensitive). If as your post says that when you issue lsmod command and the module loads means you have a successful compile, if it does not load upon "re-boot" means you should enter it in modprobe.preload. The module entry (s) that end in .gz are modules that are not unpacked yet and will not get loaded, usually the installation of some related packages should unpack the module.
Also, there is the possibility that the module is already un-packed but will not get loaded if the entry in modprobe.preload shows a gzipped module, check with search or find files by entering intel-agp.ko without the .gz in /lib directory, if something shows up that means it is unpacked but may not be getting loaded because of the .gz at the end of the entry in modprobe.preload, you can also make a search for the full name with the .gz at the end and if something shows up, that means it is present but not being used, perhaps because it is not required.
That intel module is probably for on-board intel graphics, if you have no graphics problems I would'nt worry about it, if you have a graphics card (not intel), than that is why it is not unpacked and not needed.

Last edited by Junior Hacker; 01-11-2007 at 02:01 AM.
 
  


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
loading module on boot brazilian_user Linux - General 1 08-28-2006 10:33 PM
Kernel module not loading at boot tweak1313 Fedora 2 12-04-2004 04:17 PM
module loading at boot vasco1984 Linux - General 4 05-11-2004 06:39 AM
Module not loading at boot sbadelt Linux - Hardware 2 12-18-2003 11:34 AM
kernel 2.5.65 and module loading m0rl0ck Linux - Software 4 03-21-2003 01:18 AM

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

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