[sane-devel] Fail to detect the SCSI card

Stephen Liu satimis@yahoo.com
Mon, 22 Nov 2004 01:18:29 +0800 (CST)


Hi folks,

I have been trying hours failing to make following
scanner to work again.  Previously It worked on RedHat
8 on this box

Alfa SnapScan 310 connected to a ISA SCSI card
FedoraCore2
=================

This box has another removable hard drive running
WinME.  This scanner is still working on WinME


Test performed as follows;
=========================
# sane-find-scanner

  # No SCSI scanners found. If you expected something
different, make sure that
  # you have loaded a SCSI driver for your SCSI
adapter.

  # No USB scanners found. If you expected something
different, make sure that
  # you have loaded a driver for your USB host
controller and have installed a
  # kernel scanner module.

  # Scanners connected to the parallel port or other
proprietary ports can't be
  # detected by this program.


# find / -name aha152x
/lib/modules/2.6.5-1.358/build/include/config/pcmcia/aha152x
/lib/modules/2.6.5-1.358/build/include/config/scsi/aha152x
/lib/modules/2.6.8-1.521/build/include/config/pcmcia/aha152x
/lib/modules/2.6.8-1.521/build/include/config/scsi/aha152x
17)insmod aha152x aha152x=0x140,9

The driver is there

# cat /etc/sane.d/snapscan.conf
.....
# For SCSI scanners specify the generic device, e.g.
/dev/sg0 on Linux.
/dev/sg1
,,,,
#-------------------------- SCSI scanners
----------------------------------
# These SCSI devices will be probed automatically
scsi AGFA * Scanner
scsi COLOR * Scanner
scsi Color * Scanner
scsi ACERPERI * Scanner
....
...

# ls -al /dev/sg1
crwxrwxrwx  1 root disk 21, 1 Feb 23  2004 /dev/sg1

# cat /etc/sane.d/dll.conf
# enable the next line if you want to allow access
through the network:
net
abaton
agfafocus
....
...

# ls -al /sbin/insmod
-rwxr-xr-x  1 root root 202260 May  5  2004
/sbin/insmod

# /sbin/insmod aha152x aha152x=0x140,9,7,0
insmod: can't read 'aha152x': No such file or
directory
# /sbin/insmod aha152x=0x140,9,7,0
insmod: can't read 'aha152x=0x140,9,7,0': No such file
or directory
# /sbin/insmod scsi_mod
insmod: can't read 'scsi_mod': No such file or
directory
# /sbin/insmod sg
insmod: can't read 'sg': No such file or directory
# /proc/scsi/scsi
-bash: /proc/scsi/scsi: Permission denied
# ls -al /proc/scsi/scsi
-r--r--r--  1 root root 0 Nov 21 19:19 /proc/scsi/scsi
# chmod -c 0777 /proc/scsi/scsi
mode of `/proc/scsi/scsi' changed to 0777 (rwxrwxrwx)
# /proc/scsi/scsi
/proc/scsi/scsi: line 1: Attached: command not found
# nano /proc/scsi/scsi
Attached devices:
SNAPSCAN 310

[Could not close /proc/scsi/scsi: Invalid argument]
Could not save and exit this file

remark: also tried typing;
Attached devices:SNAPSCAN 310
with the same result

# SANE_DEBUG_SNAPSCAN=255 scanimage -L
[sanei_debug] Setting debug level of snapscan to 255.
[snapscan] sane_snapscan_init
[snapscan] sane_snapscan_init: Snapscan backend
version 1.4.35
[snapscan] add_scsi_device(/dev/sg1)
[snapscan] add_scsi_device: Detected (kind of) a SCSI
device
[snapscan] add_scsi_device: error opening device
/dev/sg1: Invalid argument
[snapscan] sane_snapscan_get_devices (0xfee73a58, 0)

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).
[snapscan] sane_snapscan_exit

# /sbin/insmod aha152x aha152x=0xfee73a58, 0
insmod: can't read 'aha152x': No such file or
directory
# /sbin/insmod aha152x=0xfee73a58, 0
insmod: can't read 'aha152x=0xfee73a58,': No such file
or directory

***
Also tried setting /etc/sane.d/snapscan.conf
/dev/sg0

with the same result.

# SANE_DEBUG_SNAPSCAN=255 scanimage -L
[sanei_debug] Setting debug level of snapscan to 255.
[snapscan] sane_snapscan_init
[snapscan] sane_snapscan_init: Snapscan backend
version 1.4.35
[snapscan] add_scsi_device(/dev/sg0)
[snapscan] add_scsi_device: Detected (kind of) a SCSI
device
[snapscan] add_scsi_device: error opening device
/dev/sg0: Invalid argument
[snapscan] sane_snapscan_get_devices (0xfef9f8d8, 0)

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).
[snapscan] sane_snapscan_exit


Please advise whether I have missed some points

TIA

B.R.
Stephen Liu