kopia lustrzana https://gitlab.com/sane-project/website
122 wiersze
4.5 KiB
HTML
122 wiersze
4.5 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: autoloading generic SCSI support: a solution</TITLE>
|
|
<META NAME="Author" CONTENT="jes@presto.med.upenn.edu (jes@presto.med.upenn.edu)">
|
|
<META NAME="Subject" CONTENT="autoloading generic SCSI support: a solution">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>autoloading generic SCSI support: a solution</H1>
|
|
<!-- received="Fri Jan 28 13:02:33 2000" -->
|
|
<!-- isoreceived="20000128210233" -->
|
|
<!-- sent="Fri, 28 Jan 2000 14:02:28 -0500" -->
|
|
<!-- isosent="20000128190228" -->
|
|
<!-- name="jes@presto.med.upenn.edu" -->
|
|
<!-- email="jes@presto.med.upenn.edu" -->
|
|
<!-- subject="autoloading generic SCSI support: a solution" -->
|
|
<!-- id="200001281902.OAA02076@sparky.home-net" -->
|
|
<STRONG>From:</STRONG> <A HREF="mailto:jes@presto.med.upenn.edu?Subject=Re:%20autoloading%20generic%20SCSI%20support:%20a%20solution&In-Reply-To=<200001281902.OAA02076@sparky.home-net>"><EM>jes@presto.med.upenn.edu</EM></A><BR>
|
|
<STRONG>Date:</STRONG> Fri Jan 28 2000 - 11:02:28 PST
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0269.html">Mentore #cat# Siesto: "Latest SANE snapshot: question"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0267.html">Williams Mark L DLPC: "RICOH"</A>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#268">[ date ]</A>
|
|
<A HREF="index.html#268">[ thread ]</A>
|
|
<A HREF="subject.html#268">[ subject ]</A>
|
|
<A HREF="author.html#268">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Ok, it feels a little squishy, but it works.
|
|
<BR>
|
|
<P>To /etc/conf.modules, add:
|
|
<BR>
|
|
<P> alias sg_scsi_hostadapter aic7xxx
|
|
<BR>
|
|
alias char-major-21 sg
|
|
<BR>
|
|
pre-install sg modprobe sg_scsi_hostadapter
|
|
<BR>
|
|
<P>Now, when I do 'scanimage --list-devices', it autoloads the sg.o
|
|
<BR>
|
|
module, which in turn calls modprobe to load the required scsi adapter
|
|
<BR>
|
|
module.
|
|
<BR>
|
|
<P>The down side of this approach is that the dependence (of sg.o on
|
|
<BR>
|
|
aic7xxx.o) is unknown to modprobe, and thus sg (15k) is autocleaned,
|
|
<BR>
|
|
but not aic7xxx (>100k).
|
|
<BR>
|
|
<P>The dependence can be specified _ad hoc_ by adding a line to the
|
|
<BR>
|
|
module dependency file, like this (for RedHat and derivatives):
|
|
<BR>
|
|
<P> # Tested on Mandrake 6.1; other distros may need something else!
|
|
<BR>
|
|
modules="/lib/modules/`uname -r`"
|
|
<BR>
|
|
depfile="$modules/modules.dep"
|
|
<BR>
|
|
<P> echo -e "\n$modules/scsi/sg.o: $modules/scsi/aic7xxx.o" >>$depfile
|
|
<BR>
|
|
<P>In this case, only the 'alias char-major-21 sg' line is necessary in
|
|
<BR>
|
|
conf.modules. You can run this from rc.local; the modules will be
|
|
<BR>
|
|
loaded when the scanner is accessed.
|
|
<BR>
|
|
<P>Loading the aic7xxx on a running system is a little scary: everything
|
|
<BR>
|
|
(and I do mean _everything_!) stops for about 3-4 seconds.
|
|
<BR>
|
|
<P>I've not tested this enough to know if there are any surprises; please
|
|
<BR>
|
|
pass the clues if there is something I've overlooked.
|
|
<BR>
|
|
<P>Thanks to Chris Pinkham for the helpful suggestion!
|
|
<BR>
|
|
<P><Joe
|
|
<BR>
|
|
<PRE>
|
|
--
|
|
Joe Smith
|
|
<A HREF="mailto:jes@presto.med.upenn.edu?Subject=Re:%20autoloading%20generic%20SCSI%20support:%20a%20solution&In-Reply-To=<200001281902.OAA02076@sparky.home-net>">jes@presto.med.upenn.edu</A>
|
|
<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:%20autoloading%20generic%20SCSI%20support:%20a%20solution&In-Reply-To=<200001281902.OAA02076@sparky.home-net>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0269.html">Mentore #cat# Siesto: "Latest SANE snapshot: question"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0267.html">Williams Mark L DLPC: "RICOH"</A>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#268">[ date ]</A>
|
|
<A HREF="index.html#268">[ thread ]</A>
|
|
<A HREF="subject.html#268">[ subject ]</A>
|
|
<A HREF="author.html#268">[ 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>Fri Jan 28 2000 - 13:06:24 PST</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|