Subject: Re: Wangtek DAT drive
To: None <roskens@cs.umn.edu>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-hp300
Date: 05/21/1996 11:52:13
On Tue, 21 May 1996 12:52:08 -0500 
 Ron Roskens <roskens@cs.umn.edu> wrote:

 > I have a wangtek dat drive that I'd like to use under netbsd.
 > Unfortunately, NetBSD sees this drive and assumes that it is a QIC
 > drive.
 > 
 > My kernel messages pertaining to the drive are as follows:
 > /netbsd: st0 at scsi0 slave 1: <WANGTEK, 6130-HS, 4P14>
 > /netbsd: st0: Unsupported tape device, faking it
 > 
 > any attempts to access the tape drive result in:
 > /netbsd: st0: ILLEGAL REQUEST

I'm terribly busy today (I have to give a talk at 3pm), but between the 
end-of-talk and beginning-of-beers-with-other-conference-goers, I'll try 
and whip up a patch for you...

In the mean time, if you want to get your hands dirty on this yourself, 
take a look at the big, ugly, evil, should-be-taken-out-back-and-shot 
if() statement in hp300/dev/st.c:stident():

        if (bcmp("EXB-8200", product, 8) == 0) {
                sc->sc_tapeid = MT_ISEXABYTE;
                sc->sc_datalen[CMD_REQUEST_SENSE] = 26;
                sc->sc_datalen[CMD_INQUIRY] = 52;
                sc->sc_datalen[CMD_MODE_SELECT] = 17;
                sc->sc_datalen[CMD_MODE_SENSE] = 17;
        } else if (bcmp("VIPER 150", product, 9) == 0 ||
                [ . . . ]

...and add an entry as necessary.  Yes, it's horrible.  Yes, it will Go 
Away one day.

----save the ancient forests - http://www.bayarea.net/~thorpej/forest/----
Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939