[sane-devel] Mustek Paragon 600 II N and OpenBSD 3.2 problems

rabbit rabbit@ulyssis.org
Fri, 11 Apr 2003 13:30:27 +0200 (CEST)


Hello list,

I'm trying to get a Mustek Paragon 600 II N scanner to work on an OpenBSD
3.2/i386 pc. The scanner is supported by SANE, and works on Linux, but
isn't detected on OpenBSD.
I think it has something to do with how raw IO port access is handled on
the different operating systems, but my programming skills aren't good
enough to solve the problem myself ;) (yup, it's that scanner with that
funky ISA-card ;) )
I have tried changing all FreeBSD ifdefs to OpenBSD in
sanei/sanei_ab306.c, to force FreeBSD-style IO port access, but that
didn't help out.
SANE compiles fine, everything seems to run just fine, only the scanner
isn't found.
Note: I have tried different ports in the configuration file, but I doubt
that's the problem.

$ scanimage --version
scanimage (sane-backends) 1.0.11; backend version 1.0.11
$ cat /usr/local/etc/sane.d/mustek.conf
#-------------------------- 600 II N ----------------------------------
0x2eb
                                # For the 600 II N try one of 0x26b, 0x2ab,
                                # 0x2eb, 0x22b, 0x32b, 0x36b,  0x3ab, 0x3eb.
# option linedistance-fix       # only neccessary with firmware 2.x
$ export SANE_DEBUG_MUSTEK=5
$ sudo scanimage -L
Password:
[sanei_debug] Setting debug level of mustek to 5.
[mustek] SANE mustek backend version 1.0 build 130 from sane-backends
1.0.11
[mustek] sane_init: authorize != null
[mustek] sane_init: using sanei_scsi_open_extended
[mustek] sane_init: reading config file `mustek.conf'
[mustek] sane_init: config file line 1: ignoring comment line
[mustek] sane_init: config file line 2: trying to attach `0x2eb'
[mustek] attach: trying device 0x2eb
[mustek] dev_open 0x2eb
[mustek] dev_open: Invalid argument: can't open 0x2eb as a SCSI device
[mustek] dev_open: Error during device I/O: can't open 0x2eb as an AB306N
device
[mustek] dev_open: can't open 0x2eb
[mustek] sane_init: config file line 3: ignoring comment line
[mustek] sane_init: config file line 4: ignoring comment line
[mustek] sane_init: config file line 5: ignoring comment line
[mustek] sane_init: end
[mustek] sane_get_devices: 0 devices
[mustek] sane_get_devices: end

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[mustek] sane_exit
$


Some info on the box I'm running this on, if it helps:
$ dmesg
OpenBSD 3.2 (GENERIC) #0: Thu Aug  7 23:14:43 CEST 2003
    root@quintus.local.lan:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel 486SX ("GenuineIntel" 486-class)
cpu0: V86
real mem  = 16363520 (15980K)
avail mem = 9691136 (9464K)
using 225 buffers containing 921600 bytes (900K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(0b) BIOS, date 07/20/94
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 0xc0000/0x8000
isa0 at mainbus0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
vga0 at isa0 port 0x3b0/48 iomem 0xa0000/131072
wsdisplay0 at vga0: console (80x25, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
wdc0 at isa0 port 0x1f0/8 irq 14
wd0 at wdc0 channel 0 drive 0: <Maxtor 7850 AV>
wd0: 8-sector PIO, LBA, 814MB, 1654 cyl, 16 head, 63 sec, 1667232 sectors
wd0(wdc0:0:0): using BIOS timings
ep0 at isa0 port 0x310/16 irq 10: address 00:60:08:7c:3c:3c, utp/bnc
(default utp)
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
pccom0 at isa0 port 0x3f8/8 irq 4: ns16450, no fifo
pccom0: console
pccom1 at isa0 port 0x2f8/8 irq 3: ns16450, no fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask 4040 netmask 4440 ttymask 44c2
pctr: no performance counters in CPU
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
$