LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-15-2005, 12:12 AM   #1
mstahl
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Rep: Reputation: 0
modprobe a new driver


I built a vt1211.ko file which I want to install using modprobe. Whenever I "modprobe vt1211" I get the error "FATAL: Module vt1211 not found."

The compiled .ko file is still in my /usr/src/vt1211 directory. Do I have to move it somewhere (or create a symlink)? How do I make modprobe find this file?

(insmod vt1211.ko works fine, but I want to use modprobe).

Thanks,
M
 
Old 09-15-2005, 12:20 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 125Reputation: 125
modprobe looks in the tree in '/lib/modules/`uname -r`/' for the modules.
 
Old 09-15-2005, 12:25 AM   #3
ocgltd
Member
 
Registered: Sep 2005
Location: Canada
Distribution: Fedora 12 i386
Posts: 56

Rep: Reputation: 15
I put a symlink in that directory, pointing to my vt1211.ko file. It still wouldn't modprobe (same error).

I don't see ANY .ko files in that dir either...
 
Old 09-15-2005, 12:49 AM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 125Reputation: 125
The modules directories are a whole hierarchy of modules. I'm also pretty sure that modprobe will refuse to insert (and rightly so) any modules not owned by root. And, hopefully, any modules world-writable. You don't want modules controlled by some user getting installed.

For network cards, they are often in /lib/modules/`uname -r`/kernel/drivers/net.
 
Old 09-15-2005, 09:20 AM   #5
ocgltd
Member
 
Registered: Sep 2005
Location: Canada
Distribution: Fedora 12 i386
Posts: 56

Rep: Reputation: 15
Well, I put my vt1211.ko into the appropriate subdir, and ensure the permissions and ownership were as you suggested (which also matched other .ko in the same directory). Still the same error...

Is there a command/.conf file I can check to see where modprobe is looking for .ko files? Do I have to recompile the kernel for this to be seen?
 
Old 09-15-2005, 10:45 AM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 125Reputation: 125
It should automatically pick it up in that directory without a problem.
 
Old 09-15-2005, 09:07 PM   #7
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,580

Rep: Reputation: 55
If you compiled the module with a different gcc than your kernel you will have this problem.
I had to do a insmod path/module.ko to get it to load module, modprobe wouldn't do it.

Jim
 
  


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
Can't modprobe a new driver ocgltd Linux - Software 8 09-15-2005 10:36 AM
can't modprobe ndiswrapper with .inf driver installed Andrew Skinner Linux - Wireless Networking 2 06-25-2005 09:10 AM
Fedora Alsa Driver Modprobe Ender110 Linux - Newbie 2 07-27-2004 01:16 AM
modprobe: modprobe can't locate module ppp0 in redhat 7.1 while shutting down. cyberdude3k Linux - Networking 1 09-08-2003 01:01 PM
Trying to modprobe sym53c416 (scsi driver) causes timeouts and hang girlkate Linux - Hardware 0 12-09-2002 06:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:09 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration