[sane-devel] FreeBSD and Microtek Scanmaker II

abel deuring a.deuring@satzbau-gmbh.de
Thu, 12 Jun 2003 12:10:40 +0200

Nakal wrote:
> On Wednesday 11 June 2003 11:27, Henning Meier-Geinitz wrote:
> > Looks like a SCSI problem (either hardware or kernel driver). My
> > Mustek SCSI scanners work fine with FreeBSD/386 so I don't think there
> > is a general bug in the SCSI code of SANE.
> You might be right. I will check the cables and the terminator.
> > You can try to find out by which backend causes the
> > problem by running
> >
> > SANE_DEBUG_DLL=255 scanimage -L
> It's freezing in random backends. I removed all except microtek.

A long shot: IIRC, these Microtek scanners may freeze, if you access
them with another LUN than 0 -- but they show up with all LUN values
from 0 to 7. So, if any backend tries to access the scanner with a
non-zero LUN, you'll have an unaccessible scanner. I don't know any
details, but *if* a SCSI command to a non-zero LUN confuses the scanner
in a way that the entire SCSI bus is blocked, worse errors may occur,
e.g., the disk with the root partition may be unaccessible. So it's best
to connect these cheap scanners to their own SCSI bus.

And you should tell FreeBSD not to look for all LUNs of the scanner
while it tries to detect devices on the SCSI bus.