[NBLUG/talk] Scanner Setup-loading module at startup.
jet at sonic.net
Fri Mar 5 10:58:00 PST 2004
I just picked up on this thread. It really doesn't matter which flavor of
Linux you use, they all work basically the same way.
Remember an 'alias' is just a name for something else that is easy for a
stupid human to remember. An alias by and of itself does not load the module
into the kernel.
Other files on Red Hat that are of importance;
From modprobe.conf.dist file on Fedora Core the line;
install scsi_hostadapter /bin/true
Also note that the modutils package is the one that adds this functionality
Name : modutils Relocations: (not relocateable)
Version : 2.4.25 Vendor: Red Hat, Inc.
Release : 13 Build Date: Tue Oct 7 12:43:46
Install Date: Fri Nov 21 20:57:31 2003 Build Host: bugs.devel.redhat.com
Group : System Environment/Kernel Source RPM:
Size : 603781 License: GPL
Signature : DSA/SHA1, Tue Oct 28 15:53:46 2003, Key ID b44269d04f2a6fd2
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Summary : Kernel module management utilities.
The modutils package includes various programs needed for automatic
loading and unloading of modules under 2.2 and later kernels, as well
as other module management programs. Device drivers and filesystems
are two examples of loaded and unloaded modules.
On Thursday 04 March 2004 08:12 pm, Ian Sutherland wrote:
> Thanks Frank and Andrew I got the scanner to work.
> How do I get Red Hat 9 to load the module at startup?
> "alias scsi_hostadapter sym53c416 in /etc/modules.conf" does not seem to
> do it.
> Here is the info from cat /proc/scsi/scsi
> Host: scsi1 Channel: 00 Id: 00 Lun: 00
> Vendor: HP Model: C2520A Rev: 3644
> Type: Processor ANSI SCSI revision: 02
> And from scanimage -L
> device `hp:/dev/sg1' is a Hewlett-Packard C2520A flatbed scanner
> device `hp:/dev/scanner' is a Hewlett-Packard C2520A flatbed scanner
> Thanks, Ian
> On Tue, 2004-03-02 at 21:38, Andrew wrote:
> > Ian Sutherland wrote on Tue, 02 Mar 2004 16:44:07 -0800:
> > > Frank, Thanks for your answer. The only device in /proc/scsi/scsi is as
> > > indicated;
> > > Host: scsi0 Channel: 00 Id: 00 Lun: 00
> > > Vendor: ATAPI Model: CD-RW 52X24 Rev: K.LC
> > > Type: CD-Rom ANSI SCSI revision:
> > > 02.
> > >
> > > I ran the script, seemingly without success.
> > > The controller is on the ISA slot and works in Win XP.
> > > xsane does not recognize the scanner.
> > > There is no ScanJet listing for HP using locate.
> > > "scanner" shows up in /proc/usb/
> > Looks as if your Symbios Logic 53C416 SCSI controller has not
> > been recognized by the kernel. What you see above is an
> > "emulated" SCSI system which has been set up as an interface for
> > your ATAPI (aka IDE) CD-RW drive. (All ATAPI CD-RW drives use
> > SCSI emulation with the "ide-scsi" module in 2.4 kernels and
> > below.)
> > The kernel module (aka "driver", in Windows terminology) which
> > runs your Symbios Logic card is called "sym53c416.o". No surprise
> > there, eh? You need to check to see if that module is loaded in
> > the kernel. As root, type "lsmod" (without quotes) at a command
> > line prompt. This will show you all the modules that are loaded
> > in the kernel. Look for sym53c416 (without the .o at the end).
> > Also see if isa-pnp is in the list, too. You may need that -- I'm
> > not sure. If you don't see sym53c416 in the list, try to load it
> > into the kernel with this command (still as root):
> > modprobe sym53c416
> > If this command spits out errors, post them to this list.
> > If you don't get errors, run the lsmod command again.
> > sym53c416 should now be in the list. If you see it there, go
> > through Frank's instructions again. With any luck, you'll have
> > your scanner up and running in no time.
> > A.
> > PS: If the above works, ask on the list about the proper way of
> > making Red Hat load a module at startup. The above hack is only
> > temporary and will go away when you reboot. I use Debian, so I
> > would just run modcconf and select the module(s) I want from a
> > list. Red Hat's different, though, and I don't know what tools
> > they provide for selecting modules to load at boot time.
> > _______________________________________________
> > talk mailing list
> > talk at nblug.org
> > http://nblug.org/mailman/listinfo/talk
Mark Street, D.C.
Red Hat Certified Engineer
Key fingerprint = 3949 39E4 6317 7C3C 023E 2B1F 6FB3 06E7 D109 56C0
GPG key http://www.streetchiro.com/pubkey.asc
More information about the talk