Subject: SANE problems (continued)
To: None <port-i386@netbsd.org>
From: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
List: port-i386
Date: 11/24/1999 20:13:45
Hi!

I'm still trying to get my Microtek E3 to work on an Adaptec 1502.

SANE_DEBUG_MICROTEK=128 output is:

root@hiro:~> scanimage -L
[sanei_init_debug]: Setting debug level of microtek to 128.
[microtek] sane_init: MICROTEK says hello! (v0.10.1)
[microtek] sane_init: config- #Uncomment following line to disable "clever precalibration" routines...
[microtek] sane_init: config- noprecal
[microtek] sane_init: Precalibration will be disabled
[microtek] sane_init: config- #scsi * * Scanner
[microtek] sane_init: config- /dev/scanner
[microtek] attach_scanner:  /dev/scanner
[microtek] attach_scanner:  opening /dev/scanner
[microtek] attach_scanner:  sending INQUIRY

then it hangs.

Device permissions are
lrwxr-xr-x  1 root  wheel  8 Nov 22 11:44 /dev/scanner -> /dev/uk0
crw-rw----  1 root  scanner  20, 0 Sep 14 17:42 /dev/uk0

"scsictl /dev/scsibus1 reset" fails with
scsictl: SCSIBUSIORESET: Inappropriate ioctl for device

(it also fails for my Adaptec 2940UW with the same error -- but I
though that at least that adapter should support it?).

"scsictl /dev/uk0 reset" fails with
scsictl: /dev/uk0: Device busy
and a syslog entry of "uk0: already open".

When I did a "scsictl /dev/scsibus1 scan any any", I got the following
syslog entries: 
Nov 22 14:38:52 hiro /netbsd: while not idle; state=2
Nov 22 14:38:52 hiro /netbsd: aic0: BUS FREE while not idle; state=2
Nov 22 14:38:52 hiro last message repeated 208 times

and scanimage terminated with
[microtek] attach_scanner:  inquiry failed (Device busy)
[microtek] sane_get_devices
[microtek] sane_exit...
[microtek] sane_exit:  MICROTEK says goodbye.

I have some trouble getting gdb to go into libsane and will probably
try inline debugging next ... brrr.

What does the "aic0: BUS FREE while not idle" message mean?

And do both the Adaptec 1502 and the Adaptec 2940UW really _not_
support SCSIBUSIORESET?

Bye,
 Thomas

-- 
Thomas Klausner - wiz@danbala.tuwien.ac.at
WWW-homepage: http://fbma.tuwien.ac.at/~e9325658/Welcome.html
Der Horizont vieler Menschen ist ein Kreis mit Radius Null -- und
das nennen sie ihren Standpunkt. (found on /.)