LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-24-2006, 04:44 AM   #1
halturata
Member
 
Registered: Aug 2005
Location: Sofia
Distribution: SuSE, ELinOS
Posts: 100

Rep: Reputation: 16
"modprobe" question


Hi again

This time I want to ask some questions about the modprobe command, it's error messages and in regard to that it's differences with the insdmod command.

So, that's how it looks like:
I need a driver to talk to the VME bus of a machine I'm working on. The driver comes with the distro (RHLE 8.0) in form of RPMs, I do as it is written in the INSTALL file and - voila - the module of the driver (vmemod.o) appears in the /lib/modules/$RELEASE/misc/ folder. I do a modprobe -l, and it says the following:
Code:
...
/lib/modules/2.4.25-rm01.mvme6100/misc/mv64360_dma.o
/lib/modules/2.4.25-rm01.mvme6100/misc/nvram.o
/lib/modules/2.4.25-rm01.mvme6100/misc/vmemod.o
/lib/modules/2.4.25-rm01.mvme6100/misc/watchdog.o
...
So I can take this for a proof that the module is inserted in the kernel. But when I do a lsmod, nothing appears, e.g. it seems as the module is not loaded. What is wrong? And what is the difference between insmod and modprobe? Is modprobe looking for modules only in /lib/modules?
When I try the following:
Code:
[root@host vme]# modprobe -n vmedrv.o
I get a "modprobe: Can't locate module vmedrv.o" message. What's wrong with that?

Another thing: When I insert the already compiled module vmemod.o with insmod, and then try to remove it with rmmod the system blocks. I can't understand why this is happening either.

So if someone has an idea why these problems are occuring and can gie some information abot the issues mentioned, I'll be thankful.

 
Old 03-24-2006, 04:54 AM   #2
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
hi,
Quote:
What is wrong? And what is the difference between insmod and modprobe? Is modprobe looking for modules only in /lib/modules?
insmod u can do from the directory that contains that module and not installed in kernel
modprobe u can do when module sis installed in kernel and u can issue that command from any location.

Quote:
I get a "modprobe: Can't locate module vmedrv.o" message. What's wrong with that?
That mean Module sis not inserted in kernel.

Quote:
try to remove it with rmmod the system blocks. I can't understand why this is happening either.
That depends on what ur module is doing?
 
Old 03-24-2006, 05:02 AM   #3
halturata
Member
 
Registered: Aug 2005
Location: Sofia
Distribution: SuSE, ELinOS
Posts: 100

Original Poster
Rep: Reputation: 16
Well, basically the vmemod.o module is responsible for the data transfer on the VME bus. And since the CPU is located on a Single Board Computer in slot 1 of the rack, and the hard disk is located in slot 4, the module is serving the "correspondation" between the hard disk and the CPU. So I think it should be also installed in the kernel, because the system is running, which means the SBC and the hard are connected (there is no other way for them to exchange information except the VME bus).

Will a make modules_install fix the problem with the modprobe error output?

Last edited by halturata; 03-24-2006 at 05:03 AM.
 
Old 03-24-2006, 05:28 AM   #4
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
Hi,
Is this module to be installed is from kernel source only then nake module_install can fix. If u r installing it from external source other than kernel then check that source/its makefile
 
Old 03-24-2006, 06:06 AM   #5
halturata
Member
 
Registered: Aug 2005
Location: Sofia
Distribution: SuSE, ELinOS
Posts: 100

Original Poster
Rep: Reputation: 16
Well, it doesn't, perhaps only on my machine. But ALL other modules from /lib/modules/$RELEASE/ except vmemod.o were installed when I made make module_install... Strange...
 
Old 03-24-2006, 09:13 AM   #6
halturata
Member
 
Registered: Aug 2005
Location: Sofia
Distribution: SuSE, ELinOS
Posts: 100

Original Poster
Rep: Reputation: 16
The thing that bothers me most is that the VME bus runs OK, I mean after all the system boots from the hard drive which is on the VME bus. But I cannot end up with a solution to how to access the VME bus in my own programs...
 
  


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
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 05:08 PM
Trying to load module "ndiswrapper" with modprobe; modprobe ndiswrapper doesn't work! Benjamin Linux - Wireless Networking 30 05-25-2008 08:04 AM
commands "init" and "modprobe" not working Diagmato Fedora 2 07-23-2005 12:44 AM
"depmod" and "modprobe" commands don't work The1PatO Fedora 7 06-10-2004 01:10 PM
cupsd, many "modprobe: can't locate device /dev/usb.." at boot bit7 Linux - Software 1 01-16-2004 09:42 PM


All times are GMT -5. The time now is 01:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration