Re: CanoScan 300 SCSI scanner setup problem

Markus Mertinat (Markus.Mertinat@Physik.Uni-Augsburg.DE)
Tue, 8 Sep 1998 09:43:03 +0100 (MES)

Hello Durk,

> Recently, I discovered the SANE project, and would very much like to use
> it for running
> a scanner on my l Linux box. I haven't been very succesful in getting my
> scanner recognized though, using sane 0.74

Just yesterday evening I managed to get a CanoScan600 running under
our Linux-Server again, so you're lucky! :-)

> I have a Canon Canoscan 300 flatbed scanner, configured for LUN 03 and a
> ncr810 SCSI host adapter.
> My kernel is configured with generic SCSI support, and have found the
> generic SCSI devices /dev/sga
> through /dev/sgh. No, I'm not much of a SCSI expert, but assuming that
> /dev/sgd correspondes with LUN 03,
> I set up a symbolic link from /dev/sgd to /dev/scanner.

Not quite: The sequence of sg? is according to "cat /proc/scsi/scsi",
there exists a skript (running as root) which manages the link and
the scsi initialization:

==================================================
#! /bin/csh -f

set host=0
set channel=0
set id=6
set lun=0

/sbin/modprobe -k scsi_hostadapter
echo "scsi add-single-device $host $channel $id $lun" > /proc/scsi/scsi

set a=("`cat /proc/scsi/scsi`")
set dev=0
set x=0
while($#a)
if( "${a[1]}" =~ *Vendor* ) then
@ x++
endif
if( "${a[1]}" =~ *CANON* ) then
set dev = $x
endif
shift a
end

if($dev == 0) then
echo "Did not find a CANON type scanner"
exit 1
endif

set chars=(a b c d e f g h)
set name = "sg${chars[$dev]}"

rm -f /dev/scanner
ln -s $name /dev/scanner
exit 0
==================================================

You can type the "cat /proc/scsi/scsi" to learn more about it.
I hope, you have the ganeric-scsi-support included in the
kernel.
If this all is correct, you can try the "find-scanner" in the
sane.../tools directory. This should report the correct
device now.
Ok, then we can go on.
Try "xscanimage canon:/dev/scanner". Should work. Ok? Ok!

> Futhermore, in /etc/sane.d/dll.conf, I included a line that reads canon.
> I found no cano.conf in /etc/sane.d/ so I made
> one. This file simply states /dev/scanner.

Hmmm, this directory should be created automatically. Are you sure, you
installed in / ??? Look under /usr/local/etc/sane.d (default) !
Try "make -n install" and look for the installation directory.
(-n reports the actions w/o actually doing something)

The documentation about the conf-Files is somewhat "related", that means,
every doc relates to another manpage.... :-(

dll.conf should contain the following lines (works for me):
==================================================
canon
pnm
==================================================

canon.conf (with "n") should contain the following line (works for me):
==================================================
/dev/scanner
==================================================

I hope this helps and sorry to everybody for answering a beginners
question in this advanced circle, but I had the same problems yesterday
and thought this might be of some interest for more people.

Have a nice day,
Markus

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com