LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-13-2007, 04:28 PM   #1
imperialbeachdude
LQ Newbie
 
Registered: Jul 2007
Posts: 25

Rep: Reputation: 0
modprobe not working?


I'm trying to test out driver development, and I have built a small sample module. I can use insmod and rmmod and modinfo with no problem but modprobe does not work? This is for a Debian Etch distro. I guess I don't understand modprobe?

For example:

"modinfo drivertest.ko" gives me
filename: drivertest.ko
license: Dual BSD/GPL
vermagic: 2.6.18-4-486 mod_unload 486 REGPARM gcc-4.1
depends:

but

"modprobe drivertest.ko" gives me

FATAL: Module ./drivertest.ko not found.
 
Old 12-13-2007, 04:40 PM   #2
derxob
Member
 
Registered: Apr 2006
Location: Los Angeles, California
Distribution: Slackware, Ubuntu
Posts: 68

Rep: Reputation: 16
You shouldn't need the .ko.

Code:
modprobe drivertest
Use "lsmod" to see the loaded modules.

See "man modprobe" for more information.
 
Old 12-13-2007, 04:40 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,375

Rep: Reputation: 564Reputation: 564Reputation: 564Reputation: 564Reputation: 564Reputation: 564
Try:

modprobe drivertest

----------------
Steve Stites
 
Old 12-13-2007, 05:42 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I guess you placed the module you made under the /lib/module/ under the running kernel here. Once you have done that you need to run the command ' /sbin/depmod -a ' to rebuild a new system.map file for locating the modules.

Brian
 
Old 12-13-2007, 06:19 PM   #5
imperialbeachdude
LQ Newbie
 
Registered: Jul 2007
Posts: 25

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Brian1 View Post
I guess you placed the module you made under the /lib/module/ under the running kernel here. Once you have done that you need to run the command ' /sbin/depmod -a ' to rebuild a new system.map file for locating the modules.

Brian
Thanks - you all were correct - first I had to run depmod, then not use the .ko. At least I'm getting somewhere!
 
  


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
modprobe and insmod not working navin_karnam Linux - General 8 08-01-2007 12:37 AM
modprobe not working! willplatts Linux - Wireless Networking 1 03-05-2006 01:56 PM
modprobe.conf -- not working. RoaCh Of DisCor SUSE / openSUSE 11 07-14-2005 11:39 PM
modprobe not working after kernel 2.6.1 install matt_w_lambert Linux - General 4 02-03-2004 06:26 AM
modprobe joydev stopped working GT_Onizuka Linux - Newbie 11 09-25-2003 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration