Jump to content

trying to use modprobe


redss
 Share

Recommended Posts

How do I use modprobe to load a module I've compiled?

 

I've compiled several modules in attempt to enable the MIDI devices for my soundcard. Since I'm on a liveCD, my /lib/modules directory tree is readonly so I can't copy modules anywhere there.

 

So I have these modules in a writable directory under my home (on ramdisk).

 

When I use insmod to load it, I get unresolved dependancies (which means it did NOT load, is that correct?)

 

But if I use modprobe to load it, the module isn't found, so does modprobe only check for modules in the official modules directory?

Edited by redss
Link to comment
Share on other sites

When I use insmod to load it, I get unresolved dependancies (which means it did NOT load, is that correct?)

Did you compile that modules using the same kernel source than that in the liveCD kernel? that could help; also may help the fact that the liveCD's kernel was compiled to allow such modules.

But if I use modprobe to load it, the module isn't found, so does modprobe only check for modules in the official modules directory?
yes, the official modules directory of the running kernel. But you may want to take a look to 'man depmod' to override that behaviour Edited by aru
Link to comment
Share on other sites

Thanks for your reply. Yes the source of the modules are compiled from the same version as the kernel: 2.4.26. This is for the Knoppix LiveCD.

 

I previously was able to enable my webcam with 2 commands:

1) modprobe videodev (which added the video devices using the module libs that were included in knoppix)

2) insmod /mnt/sda1/quickcam.o (that module I compiled myself could be located anywhere).

 

I am hoping to repeat that success in getting the MIDI working, but in reading up on depmod and modprobe.conf, I don't know if this is possible with liveCD since /lib/modules is readonly.

 

I wish I could simply add a 2nd staging directory for modprobe and depmod to use. Maybe it would be easier to track down the dependancies manually and use insmod for each module? If you know the easiest way to do this please share, because I'm quite a newbie at this level.

Link to comment
Share on other sites

When using insmod and getting undefined symbol errors, is there a way for me to work backwards when I get unmet depandancies?

 

i.e. how can I find what module contains the symbols required by the module I unsucessfully tried to inmod? Grep *.o doesnt seem to do it...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...