LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-25-2005, 11:30 PM   #1
confused_bof
Member
 
Registered: Sep 2003
Location: Oz
Distribution: Ubuntu, Kubuntu, MythBuntu
Posts: 136

Rep: Reputation: 15
Q: installing modules


Hi,
I've been mucking about with madwifi and was rather pleased & surprised with myself that 'make' and 'make install' and 'insmod' and all that other obfuscated nonsense worked for me. Be damned if I didn't get the card to work as well -

Anyway, and as always, elation was soon followed by the usual Linux 'let-down'

On a reboot i had to go and insmod the modules all over.

Now, I have several books on linux and none mention in plain language what needs to be done to ensure installed modules persist, ie they are installed/ loaded on a boot/ reboot

Can someone point me in the right direction, perhaps to a plain english text or instruction on the matter?

Thanks
 
Old 02-26-2005, 04:24 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you should just need to add an entry to /etc/modules.conf
Code:
alias eth0 madwifi
or such like. you shouldn't use insmod though, use modprobe to wrap it, and you'll be much safer in the event of a problem, or other modules being required to support it.
 
Old 02-26-2005, 04:44 AM   #3
confused_bof
Member
 
Registered: Sep 2003
Location: Oz
Distribution: Ubuntu, Kubuntu, MythBuntu
Posts: 136

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by acid_kewpie
you should just need to add an entry to /etc/modules.conf
Code:
alias eth0 madwifi
or such like. you shouldn't use insmod though, use modprobe to wrap it, and you'll be much safer in the event of a problem, or other modules being required to support it.

Yes, I am doing the alias thing, which comes up as 'alias ath0 ath_pci"

Now, if I do an lsmod I see ath_pci and it's dependencies.

However, if I do "modprobe ath_pci", as the install instructions also tell me, I get a "module ath_pci not found" error.


modprobe binds or removes the module from the kernel, is that right? And, in a general sense, if the lsmod sees the module than so should modprobe, yes?


Everything seems to work, though, at this point. Until I reboot.

Going to have read up on this, I think. very different to the Win32 compilers and driver installations I'm used to.


Thanks
 
Old 02-26-2005, 06:59 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
modprobe will look for valid module files in /lib/modules/<kernel-version>/kernel/... named approriately whereas insmod will just try and load a file passed as a parameter, so it's working at a different level (i *think* modprobe will actually use the insmod command to do the end insertions). your new module should have been placed at that location, so after running "depmod -ae" and had no related error messages, you should be able to modprobe it ok.
 
Old 02-26-2005, 03:46 PM   #5
confused_bof
Member
 
Registered: Sep 2003
Location: Oz
Distribution: Ubuntu, Kubuntu, MythBuntu
Posts: 136

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by acid_kewpie
modprobe will look for valid module files in /lib/modules/<kernel-version>/kernel/... named approriately whereas insmod will just try and load a file passed as a parameter, so it's working at a different level (i *think* modprobe will actually use the insmod command to do the end insertions). your new module should have been placed at that location, so after running "depmod -ae" and had no related error messages, you should be able to modprobe it ok.
OK, I'm getting closer, but it seems to be madwifi specific, so maybe I better hop over to their site. Again, in a general sense, the kernel module directory on my system is /lib/modules/2.3.6-7mdk/kernel

The madwifi modules were compiled into /lib/modules/2.3.6-7mdkcustom/net ??

That explains why modprobe doesn't find them, I suppose.

regards
 
Old 02-26-2005, 04:00 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
hmm... that's not too handy. basically if you're installing the kernel source, then mandrake apparently is assuming that you're going to completely recompile your kernel. so rather than is runnign the risk of nuking the stock one, it gives it a different name.... as it's actaulyl the same source code, you *should* be able to jsut copy across the the stock location, and then run "depmod -ae" to register it. that's the stage that would spit out any compatability issues really, like unknown symbols etc... if that works, you should be fine.

alternatively, go nuts and fully recompile your kernel to suit your system.
 
Old 02-26-2005, 04:08 PM   #7
confused_bof
Member
 
Registered: Sep 2003
Location: Oz
Distribution: Ubuntu, Kubuntu, MythBuntu
Posts: 136

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by acid_kewpie
hmm... that's not too handy. basically if you're installing the kernel source, then mandrake apparently is assuming that you're going to completely recompile your kernel. so rather than is runnign the risk of nuking the stock one, it gives it a different name.... as it's actaulyl the same source code, you *should* be able to jsut copy across the the stock location, and then run "depmod -ae" to register it. that's the stage that would spit out any compatability issues really, like unknown symbols etc... if that works, you should be fine.
Yea, I just tried that. Got some weird errors, panicked and quickly put everything back the way I found it

Got "Mutex Destroy Error: Device or resource busy" after a module entry called "jbd"

Quote:
alternatively, go nuts and fully recompile your kernel to suit your system. [/B]
Oh no, not while I still have a little sanity left

Seriously though, many thanks for your feedback, BTW. Learning heaps here.
 
Old 02-26-2005, 04:12 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well i'd only worry about errors relating to your own modules. if everythign else seems to be ok, don't worry about it.
 
Old 02-26-2005, 04:20 PM   #9
confused_bof
Member
 
Registered: Sep 2003
Location: Oz
Distribution: Ubuntu, Kubuntu, MythBuntu
Posts: 136

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by acid_kewpie
hmm... that's not too handy. basically if you're installing the kernel source, then mandrake apparently is assuming that you're going to completely recompile your kernel. so rather than is runnign the risk of nuking the stock one, it gives it a different name.... as it's actaulyl the same source code, you *should* be able to jsut copy across the the stock location, and then run "depmod -ae" to register it. that's the stage that would spit out any compatability issues really, like unknown symbols etc... if that works, you should be fine.
OK, just moved everything over to the kernel directory, rebooted and EVERYTHING WORKS!!??

Again, many thanks for the feedback & help.

Regards
 
Old 02-26-2005, 04:41 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you shouldn't sound so suprised!

you're never going to break anything badly by adding extra modules. certainly not going to stop it booting. worst is that some related hardware might fail to configure right until you remove the other module.. even then that seesm unliekly.
 
Old 02-26-2005, 04:46 PM   #11
confused_bof
Member
 
Registered: Sep 2003
Location: Oz
Distribution: Ubuntu, Kubuntu, MythBuntu
Posts: 136

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by acid_kewpie
you shouldn't sound so suprised!
<LOL> - I'm carrying too much baggage- been developing applications under DOS & Windows too long, I think.

Anyway, as they say, ".... and now, something completely different"

regards
 
  


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
installing modules fedora 3 shanenin Linux - Software 1 12-12-2004 11:16 PM
installing CPAN modules andy11983 Linux - Software 1 11-30-2004 01:28 PM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 02:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 02:40 AM
Compiling, installing modules mikeg Linux - Software 1 01-06-2001 02:21 PM


All times are GMT -5. The time now is 12:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration