home *** CD-ROM | disk | FTP | other *** search
-
- TEAC SCSI FLOPPY OVERVIEW DOC July 2/91
-
- Overview.doc
-
- Index
- -----
- 0) What it is
- 1) Command Lines
- 2) Setting up the device
- 3) Mountlist Entries
- 4) Using the Device
- 5) Gotchas
- 6) Getting SCSI floppies & docs
- 7) SCSI Direct
- 8) Included files
- 9) Caveats, Disclaimers etc.
- 10) Email addr
-
-
- What it is
- ----------
- The TEAC SCSI Floppy (hereafter TSF) [FD-235JS] needs to have its
- floppies formatted by the SCSI controller. This is accomplished by
- sending an appropriate MODE_SELECT and then a FORMAT command via SCSI
- Direct. SCSI Direct is an Amiga method of piggybacking raw SCSI
- commands on a hard disk device (see include.i/scsidisk.i).
- Every time you put a disk of different capacity, you need to change
- the mode of the controller. This is done by sending an appropriate
- MODE_SELECT command via SCSI Direct. You also need to send a DiskChange
- to the handlers involved. If you put in a disk of the same capacity,
- you still need to send a DiskChange command.
- The different capacities and filesystems are reflected in a series of
- devices.
- SD4: 4 Meg AmigaDOS
- SD2: 2 Meg AmigaDOS
- SD1: 1 Meg AmigaDOS
- SI4: 4 Meg MSDOS
- SI2: 2 Meg MSDOS
- SI1: 1 Meg MSDOS
- In an ideal world, none of this would be necessary. One filesystem
- could control the various capacities taking note when disks &
- capacities are changed. But the FastFileSystem knows nothing about
- changing the SCSI controller's various modes. Neither does it know when
- disks are changed. Neither does it have the ability to change the
- capacity of devices once mounted. One solution would be to write a
- special filesystem, a challenging enterprise which I may attempt.
- In the meanwhile, this is a suite of programs for dealing with TEAC
- SCSI floppy drives. The suite includes:
-
- TEAC SCSI FLOPPY MODE_SELECT TSFM1, TSFM2, TSFM4
-
- TEAC SCSI FLOPPY FORMAT TSFF1, TSFF2, TSFF4
-
- TEAC SCSI FLOPPY AUTODISKCHANGE TSFADC
-
- TEAC SCSI FLOPPY EXERCISER TSX
-
-
-
- Command Lines
- -------------
- The TSF suite expects to be run from the CLI. Except for TSX, the
- general template is
-
- TSFxxx [xxx.device scsi_id]
-
- The .device and scsi id are optional, depending on your hardware.
- The defaults are harddisk.device and 1.
- For TSX you do not need to worry about passing the .device and scsi
- id as parameters, because there are menu items which allow one to set
- these.
-
- Examples:
-
- TSFF4 ? /* Prints format */
- TSFF2 /* USES DEFAULTS */
-
- TSFM2 ? /* Prints format */
- TSFM1 /* USES DEFAULTS */
- TSFM4 scsi.device 3
-
- TSFADC /* USES DEFAULTS */
- TSFADC scsi.device 3
-
- TSX
-
- There is more detailed info regarding command lines in each of
- the TSxxxx.docs.
-
-
-
- Setting up the device
- ---------------------
- The FC-1 has a 50 pin standard scsi connector so it is straight
- forward if your controller uses the 50 pin connector as well. If your
- controller uses the CBM A2090x which has a Mac style 25 pin connector
- you will need a special cable. These are usually available from Mac
- dealers.
- At the back of the TSF, there are pins for the SCSI ID. See the
- Teac docs for more info on setting the SCSI ID. As far as I know the
- LUN is fixed at zero. Once you have the drive connected (with the power
- off, yes?) the mountlist entries below need to be added to your
- mountlist.
-
-
- Mountlist Entries
- -----------------
- /*
- *
- * SCSI Floppy under the Xetec driver 720K, 1.44M, 2.88M
- * BlocksPerTrack = 36 (for 2.88M) SD4:
- * BlocksPerTrack = 18 (for 1.44M) SD2:
- * BlocksPerTrack = 9 (for .72M) SD1:
- */
-
- SD1: Device = harddisk.device
- FileSystem = l:FastFileSystem
- Unit = 1
- Surfaces = 2
- LowCyl = 0
- HighCyl = 79
- Reserved = 2
- BlocksPerTrack = 9
- Buffers = 10
- BufMemType = 3
- Stacksize = 6000
- Priority = 10
- GlobVec = -1
- MaxTransfer = 0x0001FE00
- Mask = 0x00FFFFFE
- DosType = 0x444F5301
- #
-
- /*
- *
- * SCSI Floppy under the Xetec driver .72M
- * Using MSDOS File System
- * BlocksPerTrack = 36 (for 2.88M) SI4:
- * BlocksPerTrack = 18 (for 1.44M) SI2:
- * BlocksPerTrack = 9 (for .72M) SI1:
- */
-
- SI1: Device = harddisk.device
- FileSystem = l:MSDOSFileSystem
- Unit = 1
- Surfaces = 2
- LowCyl = 0
- HighCyl = 79
- Reserved = 2
- BlocksPerTrack = 9
- Buffers = 5
- BufMemType = 5
- Stacksize = 6000
- Priority = 10
- GlobVec = -1
- MaxTransfer = 0x0001FE00
- Mask = 0x00FFFFFE
- DosType = 0x4D534400
- Mount = 0;
- #
-
-
- Using the device
- ----------------
- Once you have mounted the capacity device which you are going to
- use, the general sequence is to scsi format [TSFFx] the disk, then to
- AmigaDOS format the disk.
-
- For example, to use the drive with a 2 Meg AmigaDOS disk
-
- 1) Mount SD2:
- eg. use the command line
- 1> Mount SD2:
- 2) SCSI Format with TSFF2
- eg. use the command line
- 1> TSFF2
- 3) AmigaDOS Format
- eg. use the command line
- 1> Format drive SD2: name Test.0 noicons quick
- 4) Test if the system sees it
- eg. use the command line
- 1> info
- 1> list sd2:
-
- There are more detailed examples in each of the TSxxxx.docs.
-
-
- Gotchas
- ----
- It is very easy to corrupt disks because the FastFileSystem [or the
- MSDOSFileSystem] has no way of knowing if you have changed disks. You
- either have to be very careful about doing DISKCHANGEs or use TSFADC.
- This is a daemon which does occasional Test Unit Readys. If there is a
- change in the SCSI status, it sends a disk change packet to the
- handler.
-
-
- Getting SCSI floppies & docs
- ----------------------------
- There are several different TEAC SCSI JS floppies available. The
- names are of the form FD-235JS-xxx. The xxx in the name designates the
- model of drive which the FC-1 controller board is strapped to. I have
- seen mention of 300/302/401/650 & I have the 660-U.
-
- FD-235HS-302 3.5" 1.44Mb SCSI floppy (using FC-1)
- FD-235JS-401 3.5" 2.88Mb SCSI floppy (using FC-1)
- FD-55GS-704 5.25" SCSI floppy (using FC-1)
-
- I have used this software only on my FD-235JS-660U model. There are
- different versions of the FC-1 around, which TSX will show you with the
- INQUIRY command. There are also other programs around such as Xetec's
- SCSI_LISTER which will tell you the version you have.
- The TEAC drive documentation available is:
-
- FC-1 Spec Part number 10530468-01 @ US$20.00
- FD235J-650 Spec Part number 10530403-50 @ US$ 7.00
- FD235HS-300Spec Part number 10530472-02 @ US$ 7.00
- FD235JS- Spec Part number ? @ US$ 7.00
-
- They also want $4.00 shipping & handling per item. (My copy of the
- FC-1 docs was missing pages & had pages out of order, but there was
- enough info there to get the thing working.)
-
- The SCSI specs are available from the ISO rep in each country. See
- the file SCSI.docs for more info.
- The easiest & most useful way for a hacker to get hold of the SCSI
- specs is downloading from the SCSI BBS. As far as I know, there is no
- internet site which carries these docs.
- SCSI BBS (316)-636-8700.
-
- SCSI Direct
- -----------
- If you are bit banging on a SCSI Controller chip, normally you set
- up your CDB and then diddle the status/control of the chip until you
- can send your commands to the target. Then you send your commands and
- monitor the chip for various responses.
- On the Amiga, you set up your CDB, you set up a SCSI_CMD to point
- to the CDB and you set up a standard IO Request Block to point to the
- SCSI_CMD. You then issue a HD_SCSICMD to the device using that IO
- Request Block. This method allows one to send any SCSI CDB to any
- device, a harddisk laser printer, or whatever.
- For more info on SCSI Direct see devices/scsidisk.i|h.
-
- Included files
- --------------
- If you want a look at the source (in assembly) drop me a line.
-
- Caveats, Disclaimers etc.
- -------------------------
- This software is provided for testing purposes only.
- I cannot be held reponsible for what you do on your computer.
- Under no circumstances will I or MetaMedia Productions be held
- reponsible for any damage problems etc. which may arise as a result
- of running this Beta software.
-
-
- Email Addr
- ----------
- Harvey Taylor Meta Media Productions
- uunet!van-bc!rsoft!mindlink!Harvey_Taylor
- a186@mindlink.bc.ca
-
-
- The TSF suite and documentation is all Copyright 1991 by Harvey Taylor
-
-