I am using gentoo 2.6.30 and I tried to load a module as follows:
with the response
modprobe: module 'usbcore' not found
However, I can find a directory with that name in the directory
/sys/module/. What is wrong here?
migrated from stackoverflow.com Feb 14 '13 at 19:05
This question came from our site for professional and enthusiast programmers.
Modules that can be loaded live in /lib/modules/`uname -a`
If modprobe can not find it, the you forgot to install it. Either use a kernel with modules from a live CD or build the kernel along with the modules with genkernel.
Another possibility is that usbcore is already compiled into the kernel. I'm not sure about the correlation between /sys/modules/usbcore and whether it is present in the kernel or not.
Finally, loading usbcore alone is not enough. You will one of the uchi-, ochi-, echi-_hcd modules also. Loading things like usbhid for the input devices to work, goes without saying...
if you already have the directory /sys/module/usbcore i would assume the module is already loaded. check if 'lsmod' or 'cat /proc/modules' are listing it, to be sure if its loaded or not.
one possible reason why modprobe might tell you it can't find the module, could be that its not indexed in /lib/modules/kernel version/modules.dep. you can regenerate this file by submitting 'depmod'.