*BSD News Article 83423


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.erols.net!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: HP C1533A DAT tape ?
Date: 22 Nov 1996 00:07:06 GMT
Organization: Private BSD site, Dresden
Lines: 74
Message-ID: <572qra$moi@uriah.heep.sax.de>
References: <stanbDzLuJv.CEo@netcom.com> <Dzrx1z.9xv@bri.hp.com>
  <54rce7$9ta@uriah.heep.sax.de> <564u6k$ev@klemm.gtn.com>
  <E0pE8u.2H1@bri.hp.com>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

aslater@jocko.bri.hp.com (Al Slater) wrote:

> : My TDC 4222 doesn't have jumpers, to enable or disable data
> : compression. So ... can you guess, why it doesn't accept the command ?

> Hmm. ISTR you either get the SCSI errors on console ...

j@uriah 736% mt comp 0
mt: /dev/nrst0: comp: Invalid argument
j@uriah 737% Nov 22 00:44:32 uriah /kernel: st0(ncr0:4:0): ILLEGAL REQUEST asc:1a,0 Parameter list length error
Nov 22 00:44:32 uriah /kernel: st0(ncr0:4:0): ILLEGAL REQUEST asc:1a,0 Parameter list length error

> If that really is a QIC device, are you _sure_ it does DC?

Yep, it does, but only for the 2.5 GB cartridges.

Ah well, i think my kernel has SCSI debug enabled... lemme see:

First, the MODE SENSE:

st0(ncr0:4:0): command: 1a,0,10,0,1c,0-[28 bytes]
------------------------------
000: 1b 40 10 08 22 00 00 00 00 00 00 00 90 0e 00 00 
016: 14 14 00 00 e0 00 38 00 00 00 00 00 

Now, the MODE SELECT attempted by my ``mt comp 0'':

st0(ncr0:4:0): command: 15,0,0,0,1c,0-[28 bytes]
------------------------------
000: 00 00 10 08 00 00 00 00 00 00 00 00 10 0e 00 00 
016: 14 14 00 00 e0 00 38 00 00 00 00 00 

...and the result:

code70 valid0 seg0 key5 ili0 eom0 fmark0
info: 0 0 0 0 followed by 22 extra bytes
extra: 0 0 0 0 1a 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 31 

The MODE SELECT translates to:

00	mode data length
00	medium type
10	device-specific parameter: buffered mode (obtained from MODE
		SENSE, should be ignored in MODE SELECT)
08	block descriptor length

00	density: default
00 00 00 number of blocks
00	reserved
00 00 00 block length: variable

10	page 0x10: Device Configuration Page
0e	page length
00	active format: (vendor specific)
00	active partition: none
14	write buffer full ratio: 20, obtained from MODE SENSE
14	read buffer empty ratio: -"-
00 00	write delay time
e0	DBR | BIS | RSmk (see SCSI-2)
00	gap size: device defined
38	EOD defined = 1, EEG, SEW (see specs)
00 00 00 buffer size at early warning
00	select data compression algorithm: that's what we want (off)
00	reserved

Well, i don't get it why this should be an illegal parameter list
length...

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)