View previous topic :: View next topic |
Author |
Message |
quendor n00b
Joined: 28 Jun 2002 Posts: 1
|
Posted: Fri Jun 28, 2002 10:15 pm Post subject: insmod works; modprobe fails |
|
|
Why would 'insmod prism2_pci' work, but 'modprobe prism2_pci' fail?
# insmod prism2_pci
Using /lib/modules/2.4.19-gentoo-r7/net/prism2_pci.o
# modprobe prism2_pci
modprobe: Can't locate module prism2_pci
I have complied from source using '/usr/src/linux-2.4.19-gentoo-r7'. After running 'make modules_install', '/lib/modules/2.4.19-gentoo-r7' appears as expected. The module 'prism2_pci' is a wireless module compiled from source: 'linux-wlan-ng-0.1.14-pre6' Moreover, after installation prism2_pci is added to /lib/modules/2.4.19.../net/prism2_pci as expected.
I have run 'uname -r' and it shows the expected kernel version. I have run
'depmod -a' and examined /lib/modules/2.4.19.../modules.dep and see that the path to prism2_pci is there.
The only change that I have made to /etc/modules.d/aliases is to add an entry 'alias prism2_pci wlan0'
Finally, I have been able to get this all to work fine in Debian.
I am new to gentoo--but relatively familiar with other distros--and I have a feeling that maybe there is another level of indirection effecting modprobe and modules.dep that I am not totally aware of.
Any help welcome.
Thanks, |
|
Back to top |
|
|
flater n00b
Joined: 25 Jun 2002 Posts: 26 Location: Netherlands
|
Posted: Sat Jun 29, 2002 5:49 pm Post subject: |
|
|
Yeah, I had the same kind of problem but reversed. I could type modprobe <module> and no problems loading it, whereas insmod <same module> gave errormessages. As a severe n00b I don't understand the difference between the two commands, and as one works and does what I want, I basically don't care... |
|
Back to top |
|
|
Aruspex n00b
Joined: 28 Jun 2002 Posts: 51 Location: Brick, NJ
|
Posted: Sat Jun 29, 2002 6:42 pm Post subject: |
|
|
Could it be your /etc/modules.conf file? Try backing it up and doing a "update-modules" to regenerate it.
See also: man insmod, modprobe, depmod, modules.conf, update-modules... _________________ "If you want to make an apple pie from scratch, you must first create the universe" -Carl Sagan |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Sun Jun 30, 2002 5:08 am Post subject: |
|
|
flater wrote: | Yeah, I had the same kind of problem but reversed. I could type modprobe <module> and no problems loading it, whereas insmod <same module> gave errormessages. As a severe n00b I don't understand the difference between the two commands, and as one works and does what I want, I basically don't care... |
Modprobe automatically attempts to also load all necessary modules,
insmod only the one you ask specifically for. The errors you saw were
probably a result of unfulfilled dependencies, which modprobe took care
of for you. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|