From: gpetty@rain.atms.purdue.edu (Grant W. Petty)
Subject: Sending SCSI commands to Exabyte drive so as to control write mode?
Date: Wed, 9 Feb 1994 19:54:26 GMT [thread overview]
Message-ID: <CKz3Ar.KJs@mentor.cc.purdue.edu> (raw)
I recently installed an Exabyte 8505 8mm tape drive on my DECstation
5000/200 running Ultrix 4.1 (will soon upgrade to 4.3). This drive
can write tapes in a variety of different modes ranging from 8200 mode
(2 GB per tape) uncompressed up to 8500 mode compressed (10 GB /
tape).
The problem I have is in figuring out how to set the desired mode
before writing the tape. The Exabyte manual supplies a SCSI command
code to do the job; what I am unable to determine is how to transmit
that command to the Exabyte from my DECstation.
So how does one do this? CAN it in fact be done without writing a
full-blown device driver? DEC apparently only supplies device drivers
for the devices they sell (or things whose characteristics can be more
or less mapped to one of the devices they sell, like apparently
treating the Exabyte as a general TZ-type device); they don't even
supply a generic SCSI node of the type that appears as /dev/scsi0
under IBM's AIX.
And while I'm asking, how (in outline form) WOULD one go about writing
a custom device driver under Unix/Ultrix for a non-supported SCSI
device? Where does it end up residing on the system, and how does the
OS actually make the association between a device appearing in /dev
and the corresponding device driver? I don't intend to actually do
this, but I'd like to better understand how the operating system
communicates with a given piece of hardware. Is it simply
memory-mapped I/O -- i.e., does one simply write data to a specified
hardware memory address? If so, can I set the mode on the Exabyte by
simply executing a short C program that writes the right stuff to the
right location in /dev/mem ?
My perusal of the man pages (ioctl, mtio, mknod, SCSI(4) ) and of a
separate DEC document on the SCSI interface yielded zero relevant
information.
I'm a user, not a Unix guru, so the most helpful response will be one
that doesn't assume much prior knowledge of low-level systems stuff.
E-mail responses welcomed...
--
Grant W. Petty gpetty@rain.atms.purdue.edu
Asst. Prof. of Atmospheric Science
Dept. of Earth & Atmospheric Sciences (317) 494-2544
Purdue University, West Lafayette IN 47907-1397 FAX:(317) 496-1210
reply other threads:[~1994-02-09 19:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox