sane-project-website/old-archive/2000-07/0231.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=&lt;3980EF88.7EA68AB0@uniserve.com&gt;"><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>&gt;
</EM><BR>
<EM>&gt; Bob van der Poel wrote:
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; 1. Just a comment on this page. In the linux section it talks about
</EM><BR>
<EM>&gt; &gt; scanners not being turned on at boot/powerup and using the line:
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; echo &quot;scsi add-single-device 2 0 5 0&quot; &gt; /proc/scsi/scsi
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Works for me. Assuming the aha152x is the only SCSI adapter
</EM><BR>
<EM>&gt; in your system then that &quot;2&quot; above should be a &quot;0&quot;.
</EM><BR>
<EM>&gt;
</EM><BR>
<P>The point I was making is just that modprobe... will work as well.
<BR>
<P><EM>&gt; &gt; I've not been able to get this to work. However, simply doing something
</EM><BR>
<EM>&gt; &gt; like:
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; modprobe /lib/modules/...path to scsi mods/aha152x.o
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; works perfectly. Might want to add this to the docs.
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; 2. Now, can someone help with this....I never needed to do the above
</EM><BR>
<EM>&gt; &gt; until just recently when I added cd-burner using the pseudo=scsi driver.
</EM><BR>
<EM>&gt; &gt; I have the following in my /etc/conf.modules:
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; alias scsi_hostadapter aha152x
</EM><BR>
<EM>&gt; &gt; post-install sg modprobe aha152x
</EM><BR>
<EM>&gt; &gt; options aha152x aha152x=0x140,9
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; and I'm thinking that I need to change it.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Assuming its an IDE cdwriter and you're using the ide-scsi pseudo
</EM><BR>
<EM>&gt; driver then you shouldn't need to anything with those lines
</EM><BR>
<EM>&gt; in /etc/conf.modules .
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; You may need to convince the IDE subsystem not to take control
</EM><BR>
<EM>&gt; of the cd writer. This can be done by:
</EM><BR>
<EM>&gt; - not building in the ide-cd driver
</EM><BR>
<EM>&gt; - building in that driver and putting a line like this into lilo:
</EM><BR>
<EM>&gt; append=&quot;hdb=ide-scsi&quot;
</EM><BR>
<EM>&gt; - build the ide-cd driver as a module and if it must be loaded
</EM><BR>
<EM>&gt; (e.g. to control another cd reader) then invoke it like this:
</EM><BR>
<EM>&gt; modprobe ide-cd ignore=hdb
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; [N.B. In the forthcoming lk 2.4 that append in the second bullet
</EM><BR>
<EM>&gt; changes to: append=&quot;hdb=scsi&quot; ]
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; &gt; But, I don't see what?? Oh,
</EM><BR>
<EM>&gt; &gt; should the 'sg' be changed to the 'sgb' since this is now my scanner
</EM><BR>
<EM>&gt; &gt; device? I really don't understand this entire sg* stuff...I was under
</EM><BR>
<EM>&gt; &gt; the impression that the whole works was supposed to be dynamic, but here
</EM><BR>
<EM>&gt; &gt; I am still manually setting things up. Had to set the cdrom to use
</EM><BR>
<EM>&gt; &gt; 'sga'...
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; No, don't change 'sg' to 'sgb'
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Look at the output of 'cat /proc/scsi/scsi'. The order that devices
</EM><BR>
<EM>&gt; appear there is the same order sg allocates device numbers (i.e.
</EM><BR>
<EM>&gt; sg0, sg1 ...) or the now deprecated driver letters (i.e. sga, sgb ...).
</EM><BR>
<EM>&gt; If the ide-scsi and aha152x drivers are modules (which seems to
</EM><BR>
<EM>&gt; be the case) then by controlling the order of the module loads
</EM><BR>
<EM>&gt; 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>&nbsp;options ide-cd ignore=hdd # tell the ide-cd module to ignore hdd
<BR>
&nbsp;alias scd0 sr_mod # load sr_mod upon access of scd0
<BR>
&nbsp;pre-install sg modprobe ide-scsi # load ide-scsi before sg
<BR>
&nbsp;pre-install sr_mod modprobe ide-scsi # load ide-scsi before sr_mod
<BR>
&nbsp;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>&gt;
</EM><BR>
<EM>&gt; 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
/--&lt; ____/__ <A HREF="mailto:bvdpoel@uniserve.com?Subject=Re:%20man%20page%20sane-scsi&In-Reply-To=&lt;3980EF88.7EA68AB0@uniserve.com&gt;">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=&lt;3980EF88.7EA68AB0@uniserve.com&gt;">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>