Hello,
I have an Agfa Snapscan 1236s scanner connected to an aha152x scsi
board. Every time when clicking on the Acquire button in xsane to get a
preview of the scanner, the kernel locks up. The caps lock and scroll
lock leds on the keyboard are blinking.
This happens with both kernel-2.4.19.1mdk-1-1mdk and
kernel-2.4.18.23mdk-1-1mdk. I could not try with older kernels, as
there was a problem in the aha152x driver, which was fixed only recently
in the late 2.4.19-rc? series.
The only relevant info in /var/log/kernel/info seems to be:
Aug 10 12:49:52 Jupiter kernel: Attached scsi generic sg1 at scsi1,
channel 0, id 2, lun 0, type 6
There does not seem to be interesting information in /var/log/messages
and /var/log/kernel/errors
After this problem has occured, the scanner is not recognised anymore at
next reboot. At that moment, these errors appear in dmesg:
aha152x: BIOS test: passed, detected 1 controller(s)
aha152x: resetting bus...
aha152x1: vital data: rev=3, io=0x140 (0x140/0x140), irq=11, scsiid=7,
reconnect=enabled, parity=enabled, synchronous=disabled, delay=1000,
extended translation=disabled
aha152x1: trying software interrupt, ok.
scsi1 : Adaptec 152x SCSI driver; $Revision: 2.5 $
(scsi1:2:0) cannot abort running or disconnected command
(scsi1:2:0) cannot reset current device
aha152x1: scsi reset in
scsi: device set offline - not ready or command retry failed after bus
reset: host 1 channel 0 id 2 lun 0
Attached you can find the output of dmesg, sane-find-scanner and ls -l
/dev/sg? before the lockup occured.
Frederik Himpe
crw-rw---- 1 frederik cdwriter 21, 0 Mar 21 19:37 /dev/sg0
crw-rw---- 1 frederik cdwriter 21, 1 Mar 21 19:37 /dev/sg1
crw-rw---- 1 frederik cdwriter 21, 2 Mar 21 19:37 /dev/sg2
crw-rw---- 1 frederik cdwriter 21, 3 Mar 21 19:37 /dev/sg3
crw-rw---- 1 frederik cdwriter 21, 4 Mar 21 19:37 /dev/sg4
crw-rw---- 1 frederik cdwriter 21, 5 Mar 21 19:37 /dev/sg5
crw-rw---- 1 frederik cdwriter 21, 6 Mar 21 19:37 /dev/sg6
crw-rw---- 1 frederik cdwriter 21, 7 Mar 21 19:37 /dev/sg7
crw-rw---- 1 frederik cdwriter 21, 8 Mar 21 19:37 /dev/sg8
crw-rw---- 1 frederik cdwriter 21, 9 Mar 21 19:37 /dev/sg9
lrwxrwxrwx 1 root root 3 Jun 19 12:40 /dev/sga -> sg0
lrwxrwxrwx 1 root root 3 Jun 19 12:40 /dev/sgb -> sg1
lrwxrwxrwx 1 root root 3 Jun 19 12:40 /dev/sgc -> sg2
lrwxrwxrwx 1 root root 3 Jun 19 12:40 /dev/sgd -> sg3
lrwxrwxrwx 1 root root 3 Jun 19 12:40 /dev/sge -> sg4
lrwxrwxrwx 1 root root 3 Jun 19 12:40 /dev/sgf -> sg5
lrwxrwxrwx 1 root root 3 Jun 19 12:40 /dev/sgg -> sg6
lrwxrwxrwx 1 root root 3 Jun 19 12:40 /dev/sgh -> sg7
lrwxrwxrwx 1 root root 3 Jun 19 12:40 /dev/sgi -> sg8
lrwxrwxrwx 1 root root 3 Jun 19 12:40 /dev/sgj -> sg9
lrwxrwxrwx 1 root root 4 Jun 19 12:40 /dev/sgk -> sg10
lrwxrwxrwx 1 root root 4 Jun 19 12:40 /dev/sgl -> sg11
lrwxrwxrwx 1 root root 4 Jun 19 12:40 /dev/sgm -> sg12
lrwxrwxrwx 1 root root 4 Jun 19 12:40 /dev/sgn -> sg13
lrwxrwxrwx 1 root root 4 Jun 19 12:40 /dev/sgo -> sg14
lrwxrwxrwx 1 root root 4 Jun 19 12:40 /dev/sgp -> sg15
Linux version 2.4.19-1mdk ([EMAIL PROTECTED]) (gcc version 3.2 (Mandrake
Linux 9.0 3.2-0.2mdk)) #1 Fri Aug 9 01:54:05 CEST 2002
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009e800 (usable)
BIOS-e820: 000000000009e800 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000000fffd000 (usable)
BIOS-e820: 000000000fffd000 - 000000000ffff000 (ACPI data)
BIOS-e820: 000000000ffff000 - 0000000010000000 (ACPI NVS)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
255MB LOWMEM available.
Advanced speculative caching feature not present
On node 0 totalpages: 65533
zone(0): 4096 pages.
zone(1): 61437 pages.
zone(2): 0 pages.
Kernel command line: BOOT_IMAGE=2419-1 ro root=305 hdg=ide-scsi
ide_setup: hdg=ide-scsi
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Initializing CPU#0
Detected 350.801 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 699.59 BogoMIPS
Memory: 256708k/262132k available (1206k kernel code, 5032k reserved, 460k data, 132k
init, 0k highmem)
Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
Buffer-cache hash table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
CPU: Before vendor init, caps: 0183fbff 00000000 00000000, vendor = 0
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
CPU: After vendor init, caps: 0183fbff 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0183fbff 00000000 00000000 00000000
CPU: Common caps: 0183fbff 00000000 00000000 00000000
CPU: Intel Pentium II (Deschutes) stepping 01
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 350.8239 MHz.
..... host bus clock speed is 100.2352 MHz.
cpu: 0, clocks: 1002352, slice: 501176
CPU0<T0:1002352,T1:501168,D:8,S:501176,C:1002352>
mtrr: v1.40 (20010327) Richard Gooch ([EMAIL PROTECTED])
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xf0720, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
Unknown bridge resource 0: assuming transparent
PCI: Using IRQ router PIIX [8086/7110] at 00:04.0
Limiting direct PCI/PCI transfers.
isapnp: Scanning for PnP cards...
isapnp: SB audio device quirk - increasing port range
isapnp: AWE32 quirk - adding two ports
isapnp: Card 'Creative SB32 PnP'
isapnp: 1 Plug & Play card detected total
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
Starting kswapd
VFS: Diskquotas version dquot_6.5.0 initialized
devfs: v1.12a (20020514) Richard Gooch ([EMAIL PROTECTED])
devfs: boot_options: 0x0
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ
SERIAL_PCI ISAPNP enabled
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller on PCI bus 00 dev 21
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xd800-0xd807, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xd808-0xd80f, BIOS settings: hdc:DMA, hdd:DMA
PDC20267: IDE controller on PCI bus 00 dev 60
PCI: Found IRQ 4 for device 00:0c.0
PDC20267: chipset revision 2
PDC20267: not 100% native mode: will probe irqs later
PDC20267: (U)DMA Burst Bit ENABLED Primary PCI Mode Secondary PCI Mode.
ide2: BM-DMA at 0xa800-0xa807, BIOS settings: hde:DMA, hdf:pio
ide3: BM-DMA at 0xa808-0xa80f, BIOS settings: hdg:pio, hdh:pio
ide6: Creative SB32 PnP IDE interface
hda: IBM-DHEA-38451, ATA DISK drive
hdc: QUANTUM FIREBALLP AS40, ATA DISK drive
hdd: CD-ROM 40X/AKU, ATAPI CD/DVD-ROM drive
hde: IBM-DTLA-307045, ATA DISK drive
hdg: PLEXTOR CD-R PX-W8432T, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
ide2 at 0xd000-0xd007,0xb802 on irq 4
ide3 at 0xb400-0xb407,0xb002 on irq 4
hda: 16514064 sectors (8455 MB) w/472KiB Cache, CHS=1027/255/63, UDMA(33)
hdc: 78198750 sectors (40038 MB) w/1902KiB Cache, CHS=77578/16/63, UDMA(33)
hde: 90069840 sectors (46116 MB) w/1916KiB Cache, CHS=89355/16/63, UDMA(100)
Partition check:
/dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 p7 p8 >
/dev/ide/host0/bus1/target0/lun0: [PTBL] [4867/255/63] p1 p2 < p5 p6 p7 p8 p9 >
/dev/ide/host2/bus0/target0/lun0: [PTBL] [5606/255/63] p1 p2 < p5 p6 p7 p8 >
RAMDISK driver initialized: 16 RAM disks of 32000K size 1024 blocksize
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 113k freed
VFS: Mounted root (ext2 filesystem).
reiserfs: checking transaction log (device 03:05) ...
Using r5 hash to sort names
ReiserFS version 3.6.25
Freeing unused kernel memory: 132k freed
Real Time Clock Driver v1.10e
Adding Swap: 248968k swap-space (priority -1)
SCSI subsystem driver Revision: 1.00
hdg: Disabling (U)DMA for PLEXTOR CD-R PX-W8432T
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: PLEXTOR Model: CD-R PX-W8432T Rev: 1.07
Type: CD-ROM ANSI SCSI revision: 02
aha152x: BIOS test: passed, detected 1 controller(s)
aha152x: resetting bus...
aha152x1: vital data: rev=3, io=0x140 (0x140/0x140), irq=11, scsiid=7,
reconnect=enabled, parity=enabled, synchronous=disabled, delay=1000, extended
translation=disabled
aha152x1: trying software interrupt, ok.
scsi1 : Adaptec 152x SCSI driver; $Revision: 2.5 $
Vendor: AGFA Model: SNAPSCAN 1236 Rev: 1.20
Type: Scanner ANSI SCSI revision: 02
hdd: ATAPI 40X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
SGI XFS with ACLs, DMAPI, realtime, quota, no debug enabled
XFS mounting filesystem ide0(3,7)
reiserfs: checking transaction log (device 03:08) ...
Using r5 hash to sort names
ReiserFS version 3.6.25
MSDOS FS: IO charset iso8859-1
MSDOS FS: Using codepage 850
MSDOS FS: IO charset iso8859-1
MSDOS FS: Using codepage 850
MSDOS FS: IO charset iso8859-1
MSDOS FS: Using codepage 850
MSDOS FS: IO charset iso8859-1
MSDOS FS: Using codepage 850
MSDOS FS: IO charset iso8859-1
MSDOS FS: Using codepage 850
XFS mounting filesystem ide2(33,8)
hdd: DMA disabled
hdg: DMA disabled
ne.c:v1.10 9/23/94 Donald Becker ([EMAIL PROTECTED])
Last modified Nov 1, 2000 by Paul Gortmaker
NE*000 ethercard probe at 0x240: 00 80 c8 e1 50 17
eth0: NE2000 found at 0x240, using IRQ 3.
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 02:25:47 Aug 9 2002
usb-uhci.c: High bandwidth mode enabled
PCI: Assigned IRQ 9 for device 00:04.2
usb-uhci.c: USB UHCI at I/O 0xd400, IRQ 9
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usbdevfs: remount parameter error
hub.c: USB new device connect on bus1/1, assigned device number 2
usb.c: USB device 2 (vend/prod 0x45e/0xe) is not claimed by any active driver.
usb.c: registered new driver hiddev
usb.c: registered new driver hid
usb-uhci.c: interrupt, status 3, frame# 354
input0: USB HID v1.00 Joystick [Microsoft Microsoft SideWinder game controller] on
usb1:2.0
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <[EMAIL PROTECTED]>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,EPP]
parport0: irq 7 detected
lp0: using parport0 (polling).
PCI: Assigned IRQ 9 for device 00:0a.0
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 203M
agpgart: Detected Intel 440BX chipset
agpgart: AGP aperture is 64M @ 0xe4000000
[drm] AGP 0.99 on Intel 440BX @ 0xe4000000 64MB
[drm] Initialized mga 3.0.2 20010321 on minor 0
# Note that sane-find-scanner will find any scanner that is connected
# to a SCSI bus and some scanners that are connected to the Universal
# Serial Bus (USB) depending on your OS. It will even find scanners
# that are not supported at all by SANE. It won't find a scanner that
# is connected to a parallel or proprietary port.
sane-find-scanner: found SCSI scanner "AGFA SNAPSCAN 1236 1.20" at device /dev/sg1
sane-find-scanner: found SCSI scanner "AGFA SNAPSCAN 1236 1.20" at device /dev/sgb