LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-10-2006, 01:34 PM   #1
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Rep: Reputation: 55
Question loading modules


Hello!
I will be very thankful if someone tells me which script in slackware is responsible for loading the kernel modules. The /etc/rc.d/rc.modules script loads extra modules. which one loads the basic number of modules?
My problem is that I have the quickcam module loaded, but I have forgotten which file I modified to make it load at boot time.
Is it possible for the module to be loaded automatically, because of being directly compiled into the kernel?
I am running Slackware linux 10.2 with kernel 2.4.31.

Thank you very much in advance.
 
Old 09-10-2006, 02:43 PM   #2
number22
Member
 
Registered: Sep 2006
Location: Earth
Distribution: Slackware 14.1 Slackware64-current multilib
Posts: 278
Blog Entries: 7

Rep: Reputation: Disabled
check out and modifie /etc/modules.conf for alias and options for its modules.
Don't know exact type of your webcam, but google it if you must.
 
Old 09-10-2006, 02:50 PM   #3
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
The /etc/modules.conf file is empty.
 
Old 09-10-2006, 03:15 PM   #4
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
I want to see which script actually loads the module and comment the
line in it that says "modprobe quickcam"
 
Old 09-10-2006, 03:23 PM   #5
number22
Member
 
Registered: Sep 2006
Location: Earth
Distribution: Slackware 14.1 Slackware64-current multilib
Posts: 278
Blog Entries: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by tramni1980
I want to see which script actually loads the module and comment the
line in it that says "modprobe quickcam"
modules.conf is for alias and options of each module.

rc.modules is for auto load modules at boot time, they works together, and if you enable the autoload modules in kernel which is deault fo slackware, then you just need add the alias of your modules name and options in modules.conf, it will auto load at boot.

for each different options of each modules you can check out /usr/src/linux/Doc*/ and looking for your quickcam,

type dmesg |more or |grep quickcam to see the hardware has been detect by the module

Last edited by number22; 09-10-2006 at 03:25 PM.
 
Old 09-10-2006, 04:20 PM   #6
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
I probably did not express myself correctly. I do not want the module to be loaded at boot time. This is an excerpt of /var/log/syslog:

Sep 10 20:45:17 marto insmod: insmod: a module named videodev already exists
Sep 10 20:45:17 marto insmod: insmod: a module named videodev already exists
Sep 10 20:45:17 marto insmod: insmod: insmod quickcam failed
Sep 10 20:45:17 marto insmod: insmod: insmod quickcam failed

It seems that somehow the module videodev is loaded twice; the module quickcam is not loaded, but my cam works.
I want the modules not to be loaded at boot time. The problem is that I do not know which script loads them. I want to comment the lines "modprobe videodev" and "modprobe quickcam", putting a hashmark "#" in front of them.
I see that the message comes from insmod, but cpuld not find the script.
 
Old 09-10-2006, 04:28 PM   #7
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Besides the module "quickcam" is loaded, because I can see it in the output of lsmod. However /var/log/syslog says that insmod quickcam failed?!

Can you suggest some explanation and a remedy?
 
Old 09-10-2006, 04:37 PM   #8
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
For your first question try

Code:
# cd /etc
# grep -r "modprobe quickcam" *
For why it failed, try to insmod from command line and see what error you get.
 
Old 09-10-2006, 11:49 PM   #9
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
rc.modules is what loads the kernel modules.

This page from the Slackbook project gives a good explanation of the details
 
Old 09-11-2006, 12:11 AM   #10
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Here is the output of "insmod quickcam":
Using /lib/modules/2.4.31/misc/quickcam.o
insmod: a module named quickcam already exists

I searched /etc, /usr/bin, /usr/sbin/,/usr/local with:
grep -r "qickcam" *

but there was no result. I wonder what causes the module to get loaded? I think I have edited some file to make these modules load( quickcam and videodev) but I forgotten which . Probably I should reinstall to start clean.
 
Old 09-11-2006, 12:34 AM   #11
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
probably this is some file, executed at startup. I checked .profile as well, but there no such command there either. I checked it because it seems that grep does not check hidden files.
 
Old 09-11-2006, 01:37 AM   #12
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
If you're not loading it with modprobe, insmod or a alias then it's probably being loaded by hotplug
If it's loaded by hotplug maybe you removed the modules from hotplug's blacklist in /etc/hotplug/blacklist
 
Old 09-11-2006, 05:05 PM   #13
number22
Member
 
Registered: Sep 2006
Location: Earth
Distribution: Slackware 14.1 Slackware64-current multilib
Posts: 278
Blog Entries: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by gbonvehi
If you're not loading it with modprobe, insmod or a alias then it's probably being loaded by hotplug
If it's loaded by hotplug maybe you removed the modules from hotplug's blacklist in /etc/hotplug/blacklist
yeah, it may be a usb devices, need more detail of your quickcam hardware, and plus, the slack default modules is auto loaded, for example, cups will auto load lp and which kernel will load parport through rc.modules file; and NIC can be load through modules.conf, etc.......... everything is customized.

Last edited by number22; 09-11-2006 at 05:10 PM.
 
Old 09-11-2006, 05:19 PM   #14
zetabill
Member
 
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Rep: Reputation: 32
If it's directly compiled into the kernel I can't help you with that. If you are sure it's a module that's loaded on bootup and you certainly cannot find where it's being loaded then you could probably poke around in your /lib/modules/$(uname -r)/kernel folder and try to find it. If it's not in there then try looking through the modules alias file
Code:
grep quickcam /lib/modules/$(uname -r)/modules.alias
and see for what .ko file quickcam is an alias. If you find it then you can move it out of the /lib directory and reboot.

If none of that works then I don't know.

Good luck.

EDIT: Actually now that I've done some poking around maybe those directions I gave would only work for a 2.6 kernel. I've done it quite a few times with a 2.6 and had no problems whatsoever. Give it a shot anyway I guess and if you're at all successful but it complains when it boots then just put the file back.

Maybe time to compile a custom kernel?

Last edited by zetabill; 09-11-2006 at 05:32 PM.
 
Old 09-12-2006, 12:40 PM   #15
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
The problem is that I get the following error messages in syslog:

Sep 12 19:39:26 marto insmod: insmod: a module named videodev already exists
Sep 12 19:39:26 marto insmod: insmod: insmod quickcam failed
Sep 12 19:39:26 marto insmod: insmod: a module named videodev already exists
Sep 12 19:39:26 marto insmod: insmod: insmod quickcam failedSep 12 19:39:26 marto insmod: insmod: a module named videodev already exists
Sep 12 19:39:26 marto insmod: insmod: insmod quickcam failed
Sep 12 19:39:26 marto insmod: insmod: a module named videodev already exists
Sep 12 19:39:26 marto insmod: insmod: insmod quickcam failed

I reinstalled Slackware and installed the quickcam package (I have compiled as a Slackware package form binary source). This is what "lsmod | grep quickcam" says:

quickcam 93896 0
input 3200 0 [quickcam]
videodev 5760 1 [quickcam]
usbcore 59148 1 [audio snd-usb-audio snd-usb-lib quickcam uhci ehci-hcd]

and this is what "lsmod | grep video" says:

videodev 5760 1 [quickcam]

I have not edited any files to make the modules load and I have no idea why it says videodev is already loaded and why it complains about not being able to load the quickcam module, since it is actually loaded?

So long as I have read the documentation for the quickcam driver
, it is loaded by hotplug. But why I get these errors? My webcam works ok despite them.
I would be thankful if someone could offer some explanation. I previously thought that some time ago I have edited some conf files and somehow made the modules load twice. However, now I come out of a completely clean installation and the same error occurs in syslog after I install the driver and reboot.

Thank you very much in advance.

P.S. Is it possible that the fact that the driver is installed causes the the module to be loaded automatically at startup with videodev, and then because my webcam is constantly plugged in, hotplug attempts loads the modules for a second time?
 
  


Reply



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
Loading Modules iali Linux - Newbie 1 05-16-2006 07:56 AM
Loading modules error after loading compiled kernel td0l2 Linux - Newbie 12 07-28-2004 11:10 AM
modules are loading that shouldn't in my rc.modules thrice Slackware 3 05-11-2004 10:35 PM
loading modules w/o rc.modules e1000 Slackware 3 01-09-2004 02:57 AM
loading modules pradu Linux - Newbie 1 12-19-2003 03:56 AM

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

All times are GMT -5. The time now is 05:51 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