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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-25-2005, 10:30 PM
|
#1
|
Member
Registered: Sep 2003
Location: Oz
Distribution: Ubuntu, Kubuntu, MythBuntu
Posts: 136
Rep:
|
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
|
|
|
02-26-2005, 03:24 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
you should just need to add an entry to /etc/modules.conf 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.
|
|
|
02-26-2005, 03:44 AM
|
#3
|
Member
Registered: Sep 2003
Location: Oz
Distribution: Ubuntu, Kubuntu, MythBuntu
Posts: 136
Original Poster
Rep:
|
Quote:
Originally posted by acid_kewpie
you should just need to add an entry to /etc/modules.confor 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
|
|
|
02-26-2005, 05:59 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
02-26-2005, 02:46 PM
|
#5
|
Member
Registered: Sep 2003
Location: Oz
Distribution: Ubuntu, Kubuntu, MythBuntu
Posts: 136
Original Poster
Rep:
|
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
|
|
|
02-26-2005, 03:00 PM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
02-26-2005, 03:08 PM
|
#7
|
Member
Registered: Sep 2003
Location: Oz
Distribution: Ubuntu, Kubuntu, MythBuntu
Posts: 136
Original Poster
Rep:
|
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.
|
|
|
02-26-2005, 03:12 PM
|
#8
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
well i'd only worry about errors relating to your own modules. if everythign else seems to be ok, don't worry about it.
|
|
|
02-26-2005, 03:20 PM
|
#9
|
Member
Registered: Sep 2003
Location: Oz
Distribution: Ubuntu, Kubuntu, MythBuntu
Posts: 136
Original Poster
Rep:
|
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
|
|
|
02-26-2005, 03:41 PM
|
#10
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
02-26-2005, 03:46 PM
|
#11
|
Member
Registered: Sep 2003
Location: Oz
Distribution: Ubuntu, Kubuntu, MythBuntu
Posts: 136
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 02:29 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|