Subject: AIC7XXX driver - No Tape support for writing?
To: None <port-i386@NetBSD.ORG, current-users@NetBSD.ORG>
From: Gerald C. Simmons <simmons@darykon.cet.com>
List: current-users
Date: 11/06/1997 09:15:42
I've done some further investigating and I'm suspecting there is no "write
support" in the Adaptec AIC7XXX drivers, or at least the 2842VL.

I tried the following:  "tar cvf /dev/st0 <directory>" with my Archive 150
attached to an AHA2842VL controller. The Tape LED came on, tar went about it's
business with NO ERRORS, but the drive NEVER made a move. It was as if tar was
dumping to /dev/null.

I checked all the -current files for the AIC7XXX and ahc_isa.c drivers for any
changes since 1.2.1. There were only context changes - bus_space vs. bus_io.

Does anyone know if this is a known missing feature?

I can READ from tapes, just can't write!

Gerry Simmons
simmons@darykon.cet.com

-------------------------------------------------------------------------------

From: "Gerald C. Simmons" <simmons@darykon.cet.com>
To: port-i386@NetBSD.ORG
Subject: Problem w/ Archive Tape & Adaptec 2842VL controller


I'm running NetBSD-1.2.1, and to be honest I haven't tried using my Archive-150
in quite awhile. I seem to be able to read a tape, however attempting to write
the tape gets me:

Nov  5 07:54:49 dakkon /netbsd: st0(ahc0:4:0): illegal request, data = 00 00 00 00 00 00
Nov  5 07:54:49 dakkon /netbsd: st0(ahc0:4:0): illegal request, data = 00 00 00 00 00 00


dakkon# tar cv /home/simmons
tar: Removing leading / from absolute path names in the archive.
home/simmons/
home/simmons/.Xauthority
home/simmons/.login
home/simmons/.cshrc
home/simmons/.aliases
home/simmons/.machine
home/simmons/.history
home/simmons/.newsrc
tar: can't write to /dev/rst0 : Invalid argument

Any ideas?

Boot messages

Nov  4 14:46:18 dakkon /netbsd: NetBSD 1.2.1 (DAKKON) #0: Sun Jul  6 10:45:21 PDT 1997
Nov  4 14:46:19 dakkon /netbsd:     root@:/usr/src/sys/arch/i386/compile/DAKKON
Nov  4 14:46:19 dakkon /netbsd: CPU: i486DX (GenuineIntel 486-class CPU)
Nov  4 14:46:19 dakkon /netbsd: real mem  = 33161216
Nov  4 14:46:19 dakkon /netbsd: avail mem = 29138944
Nov  4 14:46:19 dakkon /netbsd: using 430 buffers containing 1761280 bytes of memory
Nov  4 14:46:19 dakkon /netbsd: mainbus0 (root)
Nov  4 14:46:19 dakkon /netbsd: isa0 at mainbus0
Nov  4 14:46:19 dakkon /netbsd: ahc0 at isa0 port 0x1c00-0x1cff irq 11: Adaptec AHA-284x SCSI (BIOS enabled)
Nov  4 14:46:19 dakkon /netbsd: ahc0: Using Edge Triggered Interrupts
Nov  4 14:46:19 dakkon /netbsd: ahc0: aic7770 <= Rev C, Single Channel, SCSI Id=7, 4 SCBs
Nov  4 14:46:19 dakkon /netbsd: scsibus0 at ahc0
Nov  4 14:46:19 dakkon /netbsd: ahc0: target 1 synchronous at 5.0MHz, offset = 0xc
Nov  4 14:46:19 dakkon /netbsd: cd0 at scsibus0 targ 1 lun 0: <NEC, CD-ROM DRIVE:500, 2.5> SCSI2 5/cdrom removable
Nov  4 14:46:19 dakkon /netbsd: ahc0: target 2 synchronous at 4.0MHz, offset = 0xf
Nov  4 14:46:19 dakkon /netbsd: cd1 at scsibus0 targ 2 lun 0: <TOSHIBA, CD-ROM XM-4101TA, 2893> SCSI 2 5/cdrom removable
Nov  4 14:46:19 dakkon /netbsd: st0 at scsibus0 targ 4 lun 0: <ARCHIVE, VIPER 150  21531, -004> SCSI 1 1/sequential removable
Nov  4 14:46:19 dakkon /netbsd: st0: drive empty
Nov  4 14:46:20 dakkon /netbsd: ep0 at isa0 port 0x280-0x28f irq 10: 3Com 3C509 Ethernet
Nov  4 14:46:20 dakkon /netbsd: ep0: aui/bnc/utp address 00:a0:24:16:03:05
Nov  4 14:46:20 dakkon /netbsd: com0 at isa0 port 0x3f8-0x3ff irq 4: ESP-old (0): ns16550a, working fifo
Nov  4 14:46:20 dakkon /netbsd: com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
Nov  4 14:46:20 dakkon /netbsd: com2 at isa0 port 0x3e8-0x3ef irq 5: ESP, 1024 byte fifo
Nov  4 14:46:20 dakkon /netbsd: lpt0 at isa0 port 0x378-0x37f irq 7
Nov  4 14:46:20 dakkon /netbsd: wdc0 at isa0 port 0x1f0-0x1f7 irq 14
Nov  4 14:46:20 dakkon /netbsd: wd0 at wdc0 drive 0: 1549MB, 3148 cyl, 16 head, 63 sec, 512 bytes/sec <WDC AC31600H>
Nov  4 14:46:20 dakkon /netbsd: wd0: using 16-sector 16-bit pio transfers, lba addressing
Nov  4 14:46:20 dakkon /netbsd: wd1 at wdc0 drive 1: 515MB, 1048 cyl, 16 head, 63 sec, 512 bytes/sec <WDC AC2540F>
Nov  4 14:46:20 dakkon /netbsd: wd1: using 16-sector 16-bit pio transfers, lba addressing
Nov  4 14:46:20 dakkon /netbsd: wdc1 at isa0 port 0x170-0x177 irq 15
Nov  4 14:46:21 dakkon /netbsd: wd2 at wdc1 drive 0: 405MB, 989 cyl, 15 head, 56 sec, 512 bytes/sec <WDC AC2420H>
Nov  4 14:46:21 dakkon /netbsd: wd2: using 16-sector 16-bit pio transfers, chs addressing
Nov  4 14:46:21 dakkon /netbsd: wd3 at wdc1 drive 1: 405MB, 989 cyl, 15 head, 56 sec, 512 bytes/sec <WDC AC2420H>
Nov  4 14:46:21 dakkon /netbsd: wd3: using 16-sector 16-bit pio transfers, chs addressing
Nov  4 14:46:21 dakkon /netbsd: npx0 at isa0 port 0xf0-0xff: using exception 16
Nov  4 14:46:21 dakkon /netbsd: pcprobe: reset error 1
Nov  4 14:46:21 dakkon /netbsd: pc0 at isa0 port 0x60-0x6f irq 1: color
Nov  4 14:46:21 dakkon /netbsd: fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
Nov  4 14:46:21 dakkon /netbsd: fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
Nov  4 14:46:21 dakkon /netbsd: fd1 at fdc0 drive 1: 1.2MB 80 cyl, 2 head, 15 sec