LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Depmod not working for my driver module (https://www.linuxquestions.org/questions/fedora-35/depmod-not-working-for-my-driver-module-437353/)

bhuvanmital 04-21-2006 02:13 AM

Depmod not working for my driver module
 
We have made a driver module in linux (kernel 2.6.15.4-Fedora Core 4). If i do "insmod" it works well.

I didnot want to manually do "insmod" everytime so i did the following:
1.Copied the .ko module to /lib/modules/2.6.15.4/drivers/usb/host
2.then i did "depmod -ae 2.6.15.4 >dev/null 2>&1 || :"

after doing the above a module dependency was created in modules.dep
but after rebooting the system the driver did not work once i inserted my usb device.

What could be the reason? I donot want my client to recompile the kernel with the driver as "built-in". Why is the depmod not working for me??

tothzp 04-21-2006 04:38 AM

Just some guesses:
- Does your modules.dep file correctly contain your module name even after running depmod / rebooting ?
For security reasons (?), depmod can ignore modules that are not owned by root.
It is run also at booting, maybe with a security flag.

- Does your module-init-tools package correctly handle the kernel 2.6 ?
(Probably yes, otherwise you couldn't load a single 2.6 module.)

bhuvanmital 04-21-2006 04:52 AM

yes. my modules.dep correctly contains my module. it even makes the correct dependencies. But is not able to load.

As you pointed out, what is the way to change the owner of the module to root??

and ya, my modutils are perfect for 2.6 and above kernels.

tothzp 04-24-2006 05:05 AM

I mean, chown root your ko file. But I don't expect this to be the problem as your modules.dep includes the file.

More ideas:
- some kernel / module/compiler version mismatch ?
See modprobe options --force-vermagic and --force-modversion.

- Do you want to load the module on the fly with the hotplug subsystem ? Is it started ?
Check your syslog for any complaints.


All times are GMT -5. The time now is 12:44 AM.