Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
insmod works; modprobe fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
quendor
n00b
n00b


Joined: 28 Jun 2002
Posts: 1

PostPosted: Fri Jun 28, 2002 10:15 pm    Post subject: insmod works; modprobe fails Reply with quote

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
View user's profile Send private message
flater
n00b
n00b


Joined: 25 Jun 2002
Posts: 26
Location: Netherlands

PostPosted: Sat Jun 29, 2002 5:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Aruspex
n00b
n00b


Joined: 28 Jun 2002
Posts: 51
Location: Brick, NJ

PostPosted: Sat Jun 29, 2002 6:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sun Jun 30, 2002 5:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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