[Rule-list] Fw: still stuck on sbpcd kinda
Devon
devon at tuxfan.homeip.net
Mon Apr 1 07:47:58 EEST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 31 March 2002 11:02 pm, Gordon Buzowetsky wrote:
> > insmod /lib/modules/"$version"/kernel/drivers/cdrom/cdrom.o &&
> > insmod /lib/modules/"$version"/kernel/drivers/cdrom/sbpcd.o
> > sbpcd=0x230,1
> Alrighty....but what's the difference between & and &&....? Do they not
> do the same thing??
insmod /lib/modules/"$version"/kernel/drivers/cdrom/cdrom.o &
Puts the process in the background and continues. (which may cause the
sbpcd module to attempt to load before the cdrom module has finished
loading)
insmod /lib/modules/"$version"/kernel/drivers/cdrom/cdrom.o &&
insmod /lib/modules/"$version"/kernel/drivers/cdrom/sbpcd.o sbpcd=0x230,1
(that probably needs to be all one line, or be broken with a \)
Should cause the cdrom module to load, and only after it has loaded
successfully, will the sbpcd module be loaded.
For debugging if it still doesn't work, you could try:
Create a file loadmods.sh
Put the following in the file:
########################
#! /bin/sh -vx
version=`uname -r`
insmod /lib/modules/"$version"/kernel/drivers/cdrom/cdrom.o &&\
insmod /lib/modules/"$version"/kernel/drivers/cdrom/sbpcd.o sbpcd=0x230,1
if [ "$?" -ne "0" ]; then
echo "This cdrom is a pain! Module failed to load!"
else
echo "Done."
fi
exit
###########################
Don't forget 'chmod +x' the file.
Make sure the cdrom module is NOT loaded.
'rmmod sbpcd' and 'rmmod cdrom' if need be, and run the script.
If it works, you can try putting the commands in rc.local, or just call
the script from rc.local.
The output here is:
[root at snakebyte root]# ./loadmods.sh
#! /bin/sh -vx
version=`uname -r`
uname -r
++ uname -r
+ version=2.4.9-21
insmod /lib/modules/"$version"/kernel/drivers/cdrom/cdrom.o &&\
insmod /lib/modules/"$version"/kernel/drivers/cdrom/sbpcd.o sbpcd=0x230,1
+ insmod /lib/modules/2.4.9-21/kernel/drivers/cdrom/cdrom.o
+ insmod /lib/modules/2.4.9-21/kernel/drivers/cdrom/sbpcd.o sbpcd=0x230,1
/lib/modules/2.4.9-21/kernel/drivers/cdrom/sbpcd.o: init_module:
Input/output error
Hint: insmod errors can be caused by incorrect module parameters,
including invalid IO or IRQ parameters
if [ "$?" -ne "0" ]; then
echo "This cdrom is a pain! Module failed to load!"
else
echo "Done."
fi
+ '[' 1 -ne 0 ']'
+ echo 'This cdrom is a pain! Module failed to load!'
This cdrom is a pain! Module failed to load!
exit
+ exit
Which is as expected, since I don't have a soundblaster cdrom.
- -D
- --
pgp key: http://www.tuxfan.homeip.net:8080/pgpkey.txt
Red Hat Linux 7.2 in 8M of RAM: http://www.freesoftware.fsf.org/rule/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8p+Z+eMAUbzJhSVcRArSaAJ4ljzZgOs1mULVmx2hUKAYm3BJStgCglzYS
kv12056JzuslLEuk5Y4dcUk=
=o6qz
-----END PGP SIGNATURE-----
_______________________________________________
Rule Project HOME PAGE: http://www.freesoftware.fsf.org/rule/
Rule Development Site: http://savannah.gnu.org/projects/rule/ Rule-list at mail.freesoftware.fsf.org
http://mail.freesoftware.fsf.org/mailman/listinfo/rule-list
This full static mirror of the Run Up to Date Linux Everywhere Project mailing list, originally hosted at http://lists.hellug.gr/mailman/listinfo/rule-list, is kept online by Free Software popularizer, researcher and trainer Marco Fioretti. To know how you can support this archive, and Marco's work in general, please click here