Subject: SCSI tape problem
To: None <port-amiga@NetBSD.ORG>
From: Stefan Hensen <hensen@wpos4.physik.uni-wuppertal.de>
List: port-amiga
Date: 04/17/1998 10:31:06
Hallo!

I am using NetBSD 1.3 on an Amiga 4000 with a Fastlane Z3 SCSI interface.
There are three harddisks, a CD-ROM drive and a HP35480A DAT tape streamer
connected to the Fastlane Z3. All devices are recognized correctly at
boottime. The correspondiung messages are:
  sd0 at scsibus1 targ 0 lun 0: <QUANTUM, XP34550S, LXY4> SCSI2 0/direct fixed
  sd0: 4341MB, 5899 cyl, 10 head, 150 sec, 512 bytes/sect x 8890760 sectors
  sd1 at scsibus1 targ 1 lun 0: <QUANTUM, EMPIRE_1080S, 1100> SCSI2 0/direct fixed
  sd1: 1029MB, 2874 cyl, 8 head, 91 sec, 512 bytes/sect x 2109376 sectors
  sd2 at scsibus1 targ 2 lun 0: <QUANTUM, FIREBALL540S, 1Q09> SCSI2 0/direct fixed
  sd2: 520MB, 3835 cyl, 2 head, 138 sec, 512 bytes/sect x 1065235 sectors
  cd0 at scsibus1 targ 3 lun 0: <TOSHIBA, CD-ROM XM-5701TA, 1557> SCSI2 5/cdrom removable
  st0 at scsibus1 targ 4 lun 0: <HP, HP35480A, 1009> SCSI2 1/sequential removable
  st0: density code 0x13, variable blocks, write-enabled

The harddisks and the CD-ROM work without problems. But when I try to write
or read data to/from a tape with commands like 'tar', 'dump' or 'dd', I
always get error messages like
  tar: can't write to /dev/rst0 : Input/output error
or
  tar: read error on /dev/rst0 : Input/output error,
respectively, and at the same time the following kernel error message
appears on the console and in the messages logfile:
  st0: bad request, must be between 33925 and 16777215

What does this last message mean?
What can I do to solve this problem?

There seems, however, to be at least some "communication" with the tape
streamer as 'mt status' results in the messages:
  SCSI tape drive, residual=0
  ds=0
  er=0
  blocksize: 0 (0, 0, 0, 0)
  density: 19 (0, 0, 0, 0)
if a tape is inserted or an error message, if no tape is present, and
'mt offline' ejects the tape as expected.

On the AmigaOS side (with btn-handler) the tape streamer works without
problems (in asyncronous as well as syncronous SCSI mode).
Other hardware in the system is: CyberStorm MKII 060 with 32 MB RAM but
without SCSI module, CyberVision 64, 16 MB RAM on the mainboard.

Thanks for help in advance!

Regards,

Stefan Hensen

----------------------------------------------------------
Stefan Hensen
e-mail: hensen@wpos4.physik.uni-wuppertal.de