LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
From: Alex Garner <linuxsa@bourbon.lynx.net.au>
To : linuxsa@linuxsa.org.au
Date: Mon, 12 Apr 1999 10:54:47 +0930
Passing Options to loadable modules
I have an IDE cdrom (/dev/hdc) and a soundblaster cdrom running on the
soundblaster card IDE port (/dev/sbpcd). I have both running happily in the
same machine, one for data cds, and one for audio cds.
Both cdroms work fine for both data discs and audio discs, even in X.
The soundblaster cdrom is accessed via a loadable module. When a system
call for the drive occurs (eg `mount /dev/sbpcd /mnt/cdrom`) the module
starts to look for the drive with it's built-in auto probing sequence. Once
it finds it (after about 2 minutes) everything is fine. If I want to I can
pre-load the module and specify parameters manually `insmod
/lib/modules/preferred/cdrom/sbpcd.o sbpcd=0x230,1` and this works fine
without having to autoprobe, thus saving lots of time.
A simple fix for this would be to compile the module as a driver into the
kernel, and specify the options at compile time OR pass the parameters
through lilo. However I would prefer to leave it as a module.
I want to know how to specify parameters so that when kerneld load the
module automatically, it looks for the soundblaster at 0x230 straight away.
I've tried a few variations on "options sbpcd io=0x230 type=1" etc etc in
/etc/conf.modules, but this just causes the module to dump out saying that
it couldn't locate the module.
Any ideas?
Cheers
Alex!
--
Check out the LinuxSA web pages at http://www.linuxsa.org.au/
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
Return to the LinuxSA Mailing List Information Page