Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 04-21-2006, 02:13 AM   #1
LQ Newbie
Registered: Dec 2005
Posts: 23

Rep: Reputation: 15
Depmod not working for my driver module

We have made a driver module in linux (kernel 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.then i did "depmod -ae >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??
Old 04-21-2006, 04:38 AM   #2
LQ Newbie
Registered: Apr 2006
Posts: 26

Rep: Reputation: 17
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.)
Old 04-21-2006, 04:52 AM   #3
LQ Newbie
Registered: Dec 2005
Posts: 23

Original Poster
Rep: Reputation: 15
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.
Old 04-24-2006, 05:05 AM   #4
LQ Newbie
Registered: Apr 2006
Posts: 26

Rep: Reputation: 17
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compling driver module.... Dimitriy Debian 9 03-03-2006 11:23 PM
Driver module in kernel hazzyb Linux - Hardware 1 09-21-2005 02:54 PM
Can you symlink a module/driver? Texicle Slackware 3 06-22-2005 09:19 AM
sprintf not working in char driver module snigglyfox Programming 2 04-27-2004 01:25 PM
compiling a kernel: module-init-tools conflict, depmod problem, modules sterrenkijker Debian 3 03-08-2004 10:07 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration