[sane-devel] HP 4p (C1130A) hangs

WhiteUnicorn WhiteUnicorn@mail.ru
Tue, 14 May 2002 09:30:03 +0400


Hello !

Next problem with hp 4p scsi scanner and sane 1.0.7 :-/
mdk 8.2 (2.1.18-6mdk), sane 1.0.7

SCSI ncr53c400a works now, kernel and sane-find-scanner successfully find  
scanner, but scanimage hangs system :(

What can I do to fix this problem ?


$ sane-find-scanner
sane-find-scanner: found SCSI processor "HP C1130A 3540" at device 
/dev/scanner
sane-find-scanner: found SCSI processor "HP C1130A 3540" at device /dev/sg0

$ SANE_DEBUG_HP=255 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.7
[snapscan] add_device(/dev/sg0)
[snapscan] add_device: Detected (kind of) a SCSI device
[snapscan] mini_inquiry
[snapscan] snapscan_cmd
[snapscan] add_device: Is vendor "HP" model "C1130A" a supported scanner?
[snapscan] add_device: "HP C1130A" is not one of AGFA SnapScan 300, 310, 600, 
1212, 1236, e20, e25,
e26, e40, e42, e50, e52 or e60
Acer 300, 310, 610, 610+, 620, 620+, 640, 1240, 3300, 4300 or 5300
Guillemot MaxiScan A4 Deluxe
[snapscan] sane_snapscan_get_devices (0xbffff428, 0)
[sanei_debug] Setting debug level of hp to 255.
[hp] sane_init called
[hp] sane_init will finish with Success
[hp] sane_get_devices called
[hp] hp_read_config: hp backend v0.95 starts reading config file
[hp] hp_read_config: processing line <scsi HP>
[hp] hp_read_config: processing line </dev/sg0>
[hp] hp_read_config: attach scsi HP
[hp] hp_get_dev: New device /dev/scsi/host0/bus0/target2/lun0/generic, 
connect-scsi, scsi-request=1
[hp] sanei_hp_device_new: /dev/scsi/host0/bus0/target2/lun0/generic
[hp] scsi_inquire: sending INQUIRE
[hp] scsi_new: sending TEST_UNIT_READY
[hp] scsi_flush: writing 2 bytes:
[hp]  0x0000  1B 45                                            .E

(".E" at the end of line is a part of sane output)
And the system hangs (after ~1 minutes). Whether I can break process by 
pressing Ctrl+C or no - the system hangs in any way. :(
(SysRq is still working, but it is the only one who works..)

/etc/sane.d/dll.conf
hp
snapscan
(all the others lines are comments, snapscan is uncommented for test reasons 
only)

/etc/sane.d/hp.conf
scsi HP
/dev/sg0

/etc/sane.d/snapscan.conf
/dev/sg0
firmware /path/to/your/firmware/file

>From /var/log/messages:
kernel: SCSI subsystem driver Revision: 1.00
kernel: scsi0 : at port 0x280 irq 9 options CAN_QUEUE=16  CMD_PER_LUN=2 
release=1 generic options AUTOPROBE_IRQ AUTOSENSE PSEUDO DMA USLEEP, 
USLEEP_POLL=1 USLEEP_SLEEP=20 generic release=7
kernel: scsi0 : Generic NCR5380/53C400 Driver
kernel:   Vendor: HP        Model: C1130A            Rev: 3540
kernel:   Type:   Processor                          ANSI SCSI revision: 
02May 14 08:32:09 user-9-1 kernel: Attached scsi generic sg0 at scsi0, 
channel 0, id 2, lun 0,  type 3

/sbin/lsmod
[skip]
g_NCR5380              19360   0  (autoclean) (unused)
sg                     30180   0  (unused)
scsi_mod               92488   2  [g_NCR5380 sg]
[skip]

/etc/modules.conf
options g_NCR5380 ncr_53c400a=1 ncr_addr=0x280 ncr_irq=9
probeall scsi_hostadapter g_NCR5380
[skip]

# cat /proc/scsi/g_NCR5380/0
SCSI host number 0 : Generic NCR5380/NCR53C400 Scsi Driver
Generic NCR5380 driver version 1
NCR5380 core version 7
NCR53C400 extension version 2
NCR53C400 card not detected
NCR53C400 pseudo DMA used
Using port mapping at port 0x280, on interrupt 9
  T:2 Processor         HP       C1130A           3540
         0 kb read    in     0 secs
         0 kb written in     0 secs
REQ not asserted, phase unknown.
No currently connected command
issue_queue
disconnected_queue

# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 02 Lun: 00
  Vendor: HP       Model: C1130A           Rev: 3540
  Type:   Processor                        ANSI SCSI revision: 02

# cat /proc/scsi/sg/allow_dio
0
# cat /proc/scsi/sg/debug
dev_max(currently)=7 max_active_device=1 (origin 1)
 scsi_dma_free_sectors=48 sg_pool_secs_aval=320 def_reserved_size=32768
# cat /proc/scsi/sg/def_reserved_size
32768
# cat /proc/scsi/sg/device_hdr
host    chan    id      lun     type    opens   qdepth  busy    online
# cat /proc/scsi/sg/devices
0       0       2       0       3       0       2       0       1
# cat /proc/scsi/sg/device_strs
HP              C1130A                  3540
# cat /proc/scsi/sg/host_hdr
uid     busy    cpl     scatg   isa     emul
# cat /proc/scsi/sg/hosts
0       0       2       255     0       0
# cat /proc/scsi/sg/host_strs
Generic NCR5380/53C400 Driver
# cat /proc/scsi/sg/version
30122   Version: 3.1.22 (20011208)

# ll /dev/|grep scsi
lr-xr-xr-x    1 root     root           41 May 14 08:30 scanner -> 
/dev/scsi/host0/bus0/target2/lun0/generic
drwxr-xr-x    1 root     root            0 Jan  1  1970 scsi/
lr-xr-xr-x    1 root     root           36 May 14 08:31 sg0 -> 
scsi/host0/bus0/target2/lun0/generic

crw-rw-rw-    1 root     cdwriter  21,   0 Jan  1  1970 
/dev/scsi/host0/bus0/target2/lun0/generic

-- 
Best regards, Anastasija Belyakova (aka WhiteUnicorn)
Welcome to http://WhiteUnicorn.virtualave.net