LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 04-21-2006, 02:13 AM   #1
bhuvanmital
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 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??
 
Old 04-21-2006, 04:38 AM   #2
tothzp
LQ Newbie
 
Registered: Apr 2006
Posts: 26

Rep: Reputation: 16
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
bhuvanmital
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
tothzp
LQ Newbie
 
Registered: Apr 2006
Posts: 26

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


Reply


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


All times are GMT -5. The time now is 01:41 AM.

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