kopia lustrzana https://gitlab.com/sane-project/website
237 wiersze
8.1 KiB
HTML
237 wiersze
8.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>sane-devel: Re: man page sane-scsi</TITLE>
|
|
<META NAME="Author" CONTENT="Bob van der Poel (bvdpoel@uniserve.com)">
|
|
<META NAME="Subject" CONTENT="Re: man page sane-scsi">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: man page sane-scsi</H1>
|
|
<!-- received="Thu Jul 27 19:37:48 2000" -->
|
|
<!-- isoreceived="20000728023748" -->
|
|
<!-- sent="Thu, 27 Jul 2000 19:27:20 -0700" -->
|
|
<!-- isosent="20000728022720" -->
|
|
<!-- name="Bob van der Poel" -->
|
|
<!-- email="bvdpoel@uniserve.com" -->
|
|
<!-- subject="Re: man page sane-scsi" -->
|
|
<!-- id="3980EF88.7EA68AB0@uniserve.com" -->
|
|
<!-- inreplyto="397FB365.E9729EC7@interlog.com" -->
|
|
<STRONG>From:</STRONG> Bob van der Poel (<A HREF="mailto:bvdpoel@uniserve.com?Subject=Re:%20man%20page%20sane-scsi&In-Reply-To=<3980EF88.7EA68AB0@uniserve.com>"><EM>bvdpoel@uniserve.com</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Thu Jul 27 2000 - 19:27:20 PDT
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0232.html">Bernhard Mogens Ege: "sanei_scsi issue"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0230.html">Steve Underwood: "Re: Acer620UT"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0223.html">Douglas Gilbert: "Re: man page sane-scsi"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0219.html">Christophe Thommeret: "Re: Resetting HP scanners"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#231">[ date ]</A>
|
|
<A HREF="index.html#231">[ thread ]</A>
|
|
<A HREF="subject.html#231">[ subject ]</A>
|
|
<A HREF="author.html#231">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Douglas Gilbert wrote:
|
|
<BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Bob van der Poel wrote:
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > 1. Just a comment on this page. In the linux section it talks about
|
|
</EM><BR>
|
|
<EM>> > scanners not being turned on at boot/powerup and using the line:
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > echo "scsi add-single-device 2 0 5 0" > /proc/scsi/scsi
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Works for me. Assuming the aha152x is the only SCSI adapter
|
|
</EM><BR>
|
|
<EM>> in your system then that "2" above should be a "0".
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<P>The point I was making is just that modprobe... will work as well.
|
|
<BR>
|
|
<P><EM>> > I've not been able to get this to work. However, simply doing something
|
|
</EM><BR>
|
|
<EM>> > like:
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > modprobe /lib/modules/...path to scsi mods/aha152x.o
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > works perfectly. Might want to add this to the docs.
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > 2. Now, can someone help with this....I never needed to do the above
|
|
</EM><BR>
|
|
<EM>> > until just recently when I added cd-burner using the pseudo=scsi driver.
|
|
</EM><BR>
|
|
<EM>> > I have the following in my /etc/conf.modules:
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > alias scsi_hostadapter aha152x
|
|
</EM><BR>
|
|
<EM>> > post-install sg modprobe aha152x
|
|
</EM><BR>
|
|
<EM>> > options aha152x aha152x=0x140,9
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > and I'm thinking that I need to change it.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Assuming its an IDE cdwriter and you're using the ide-scsi pseudo
|
|
</EM><BR>
|
|
<EM>> driver then you shouldn't need to anything with those lines
|
|
</EM><BR>
|
|
<EM>> in /etc/conf.modules .
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> You may need to convince the IDE subsystem not to take control
|
|
</EM><BR>
|
|
<EM>> of the cd writer. This can be done by:
|
|
</EM><BR>
|
|
<EM>> - not building in the ide-cd driver
|
|
</EM><BR>
|
|
<EM>> - building in that driver and putting a line like this into lilo:
|
|
</EM><BR>
|
|
<EM>> append="hdb=ide-scsi"
|
|
</EM><BR>
|
|
<EM>> - build the ide-cd driver as a module and if it must be loaded
|
|
</EM><BR>
|
|
<EM>> (e.g. to control another cd reader) then invoke it like this:
|
|
</EM><BR>
|
|
<EM>> modprobe ide-cd ignore=hdb
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> [N.B. In the forthcoming lk 2.4 that append in the second bullet
|
|
</EM><BR>
|
|
<EM>> changes to: append="hdb=scsi" ]
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> > But, I don't see what?? Oh,
|
|
</EM><BR>
|
|
<EM>> > should the 'sg' be changed to the 'sgb' since this is now my scanner
|
|
</EM><BR>
|
|
<EM>> > device? I really don't understand this entire sg* stuff...I was under
|
|
</EM><BR>
|
|
<EM>> > the impression that the whole works was supposed to be dynamic, but here
|
|
</EM><BR>
|
|
<EM>> > I am still manually setting things up. Had to set the cdrom to use
|
|
</EM><BR>
|
|
<EM>> > 'sga'...
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> No, don't change 'sg' to 'sgb'
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Look at the output of 'cat /proc/scsi/scsi'. The order that devices
|
|
</EM><BR>
|
|
<EM>> appear there is the same order sg allocates device numbers (i.e.
|
|
</EM><BR>
|
|
<EM>> sg0, sg1 ...) or the now deprecated driver letters (i.e. sga, sgb ...).
|
|
</EM><BR>
|
|
<EM>> If the ide-scsi and aha152x drivers are modules (which seems to
|
|
</EM><BR>
|
|
<EM>> be the case) then by controlling the order of the module loads
|
|
</EM><BR>
|
|
<EM>> then you will control which device is sg0 and sg1 .
|
|
</EM><BR>
|
|
<P>Yes, they are both modules and the /proc/scsi/scsi order is the
|
|
<BR>
|
|
expected one with the scanner on sgb and the cd on sga.
|
|
<BR>
|
|
<P>I suppose that if changed the order in my /etc/conf.modlues the order
|
|
<BR>
|
|
of the driver letters would reverse. Since I've not set my /etc/sane.d/microtek.conf
|
|
<BR>
|
|
file to have the line /dev/sgb I better not change the conf.modules.
|
|
<BR>
|
|
<P>But, I still don't understand why I don't get auto-magic loading/sensing
|
|
<BR>
|
|
of the scanner like I used to. FWIW, the lines I added to get the writer
|
|
<BR>
|
|
working are:
|
|
<BR>
|
|
<P> options ide-cd ignore=hdd # tell the ide-cd module to ignore hdd
|
|
<BR>
|
|
alias scd0 sr_mod # load sr_mod upon access of scd0
|
|
<BR>
|
|
pre-install sg modprobe ide-scsi # load ide-scsi before sg
|
|
<BR>
|
|
pre-install sr_mod modprobe ide-scsi # load ide-scsi before sr_mod
|
|
<BR>
|
|
pre-install ide-scsi modprobe ide-cd # load ide-cd before ide-scsi
|
|
<BR>
|
|
<P>I think this came right out of the cdburner-howto.
|
|
<BR>
|
|
<P><EM>>
|
|
</EM><BR>
|
|
<EM>> Clear?
|
|
</EM><BR>
|
|
<P>Ya, sure... But thanks for taking time to reply.
|
|
<BR>
|
|
<P>Well, I'm off on a brief holiday. Maybe when I get back I can get
|
|
<BR>
|
|
this to work perfectly.
|
|
<BR>
|
|
<P><PRE>
|
|
--
|
|
__
|
|
/ ) / Bob van der Poel
|
|
/--< ____/__ <A HREF="mailto:bvdpoel@uniserve.com?Subject=Re:%20man%20page%20sane-scsi&In-Reply-To=<3980EF88.7EA68AB0@uniserve.com>">bvdpoel@uniserve.com</A>
|
|
/___/_(_) /_) <A HREF="http://users.uniserve.com/~bvdpoel">http://users.uniserve.com/~bvdpoel</A>
|
|
<P><P><P>--
|
|
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
|
|
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20man%20page%20sane-scsi&In-Reply-To=<3980EF88.7EA68AB0@uniserve.com>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0232.html">Bernhard Mogens Ege: "sanei_scsi issue"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0230.html">Steve Underwood: "Re: Acer620UT"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0223.html">Douglas Gilbert: "Re: man page sane-scsi"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0219.html">Christophe Thommeret: "Re: Resetting HP scanners"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#231">[ date ]</A>
|
|
<A HREF="index.html#231">[ thread ]</A>
|
|
<A HREF="subject.html#231">[ subject ]</A>
|
|
<A HREF="author.html#231">[ author ]</A>
|
|
</UL>
|
|
<!-- trailer="footer" -->
|
|
<HR NOSHADE>
|
|
<P>
|
|
<SMALL>
|
|
<EM>
|
|
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
|
|
: <EM>Thu Jul 27 2000 - 19:38:21 PDT</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|