I have been doing some reading about modules
trying to understand how they are loaded. I have
read the kerneld mini-howto, the depmod,modprobe,
and insmod man pages but I am still confused.
I have a SCSI cdrom and an Adaptec 1510 controller.
I want the aha152x module to be loaded when I mount my
cdrom. I thought kerneld would do exactly that if I
had my conf.modules setup right. However, when I just
mount my cdrom after a reboot I have problems. Let me
explain.
After a reboot I did the following:
% lsmod
Module Pages Used by
vfat 3 1 (autoclean)
sb 6 0
uart401 2 [sb] 0
sound 16 [sb uart401] 0
-----------------------------------------------------
Notice NO aha152x module!!
-----------------------------------------------------
% mount -t iso9660 /dev/scd0 /mnt/cdrom
mount: the kernel does not recognize /dev/scd0 as a
block device (maybe `insmod driver'?)
-----------------------------------------------------
Why didn't kerneld load the module when I entered the
mount command?
-----------------------------------------------------
% lsmod
Module Pages Used by
isofs 5 0 (autoclean)
vfat 3 1 (autoclean)
sb 6 0
uart401 2 [sb] 0
sound 16 [sb uart401] 0
-----------------------------------------------------
Notice the isofs module did get loaded from issuing
the mount command
-----------------------------------------------------
% insmod aha152x
/lib/modules/2.0.31/scsi/aha152x.o: init_module: Device or resource busy
-----------------------------------------------------
O.K. The error message from the mount command above
said to use insmod so what is wrong here?
-----------------------------------------------------
% modprobe aha152x
-----------------------------------------------------
This worked!!
Here is my /etc/conf.modules
alias scd0 sr_mod # sr_mod for SCSI CD-ROM's ...
alias sound sb
options -k sb io=0x220 irq=5 dma=0,5
alias scsi_hostadapter aha152x
options aha152x aha152x=0x340,11,7
-----------------------------------------------------
% mount -t iso9660 /dev/scd0 /mnt/cdrom
mount: block device /dev/scd0 is write-protected, mounting read-only
-----------------------------------------------------
This worked, my CDROM was mounted!!
-----------------------------------------------------
% lsmod
Module Pages Used by
aha152x 6 1
isofs 5 1 (autoclean)
vfat 3 1 (autoclean)
sb 6 0
uart401 2 [sb] 0
sound 16 [sb uart401] 0
-----------------------------------------------------
Notice the aha152x module that is now loaded!!!
-----------------------------------------------------
So...., my questions are:
What is the real difference between moprobe
and insmod? It seems as though both will load a module.
Why didn't the original mount command I issued cause kerneld
to load the aha152x module using the settings in my
conf.modules? Isn't that how kerneld works?
Why did the 'insmod aha152x' command fail when the original mount
command produced an error message telling me to use insmod
to load the driver?
What does this message from the 'insmod aha152x' command mean?
/lib/modules/2.0.31/scsi/aha152x.o: init_module: Device or resource busy
Do we have to put modprobe commands in the bootup scripts to load
things like the aha152x driver or is kerneld just not working
right in my case? Or do I a setup problem?
Thanks for your help..
--
+--------------+ Brian Kirkland phone: (512) 425-5235
| _____ _____ | fax : (512) 425-5201
|_| | | |_| Senior Design Engineer email: [EMAIL PROTECTED]
____ | | _ _ CYPRESS SEMICONDUCTOR
/__\ | | |\ /| Austin Design Center
/ \ | | | \/ |
___| |___ CLASS OF '92 Red Hat Linux 5.0 User
|________| GIG'EM AGS!
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.
modules/insmod/modprobe and kerneld operation
Brian Kirkland/CADC Designer Tue, 19 May 1998 11:21:11 -0400
- RE: modules/insmod/modprobe and kerneld opera... Brian Kirkland/CADC Designer
- RE: modules/insmod/modprobe and kerneld ... Maxwell Smart
