PiSCSI / piscsi

PiSCSI allows a Raspberry Pi to function as emulated SCSI devices (hard disk, CD-ROM, and others) for vintage SCSI-based computers and devices. This is a fork of the RaSCSI project by GIMONS.
https://piscsi.org
BSD 3-Clause "New" or "Revised" License
537 stars 82 forks source link

SASI FORMAT command has wrong opcode (0x06 instead of 0x04) #723

Closed uweseimet closed 2 years ago

uweseimet commented 2 years ago

According to http://www.bitsavers.org/pdf/ansi/X3T9/X3T9.3_185_RevE_SASI_Apr82.pdf the FORMAT command has opcode 0x04, just like with SCSI.

uweseimet commented 2 years ago

@akuker I would like to change the current opcode, because the SASI specification says it is 0x04.

Believe it or not, I just realized by looking at the specs that I have a SASI drive at home. Some old drives distributed by Atari for the Atari ST series are MFM and RLL drives with an Adaptec ACB-4000 controller, which appears to be a SASI-to-MFM/RLL bridge. So it's not surprising that this drive appears to support the same set of commands RaSCSI supports for SASI. My drive is still fully functional and it looks like new, because I have hardly used it, except for testing. My Atari driver software supports it, of course, and this is why I know for sure that for this drive the opcode for FORMAT is 0x04, just like the SASI specification says ;-). Not 0x06, as currently used by RaSCSI.

akuker commented 2 years ago

Good catch Uwe! I made a comment in the pull request that the original RaSCSI code treated both commands (0x04 and 0x06) as the format command.