View Single Post
Old 06 August 2017, 20:05   #1
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 3,191
Apple SCSI hard drive emulation

Would it be possible to add an option to emulate Apple SCSI hard drives?

Apple's HD SC Setup program can be used to partition SCSI disks on a Mac emulator, e.g. ShapeShifter, Fusion, Emplant, A-Max. [That's distinct from the emulator using an Amiga partition or hardfile.]

However HD SC Setup only works with Apple OEM-model drives by default. Later versions can be very easily patched to bypass that, but if WinUAE could emulate an Apple OEM drive you could run it from unmodified disk images when installing the Mac OS.

Shapeshifter's "Apple hard disk emulation" option does that for its SCSI emulation, but there's no similar option in A-Max.

HD SC Setup requests mode page 0x30:
SCSIEMU HD 0: 1A.00.30.00.22.00.00.00.00.00.00.00 CMDLEN=6 DATA=0E66A528
UAEHF: unsupported scsi command 0x1A LUN=0
-> DATAOUT=-1 ST=2 SENSELEN=18 REPLYLEN=0
-> SENSE STATUS: KEY=5 ASC=24 ASCQ=00
70.00.05.00.00.00.00.0A.00.00.00.00.24.00.00.00.00.00.


Looking at the ShapeShifter source, it puts this in the page 0x30 data:
Code:
Offset What
0      $30 page code
1      20 page length
2      "APPLE COMPUTER, INC " (20 ASCII characters)
HD SC Setup checks for the first 19 of those characters. (It looks like MAME emulates this Apple-drive behaviour unconditionally?)


It seems likely that the earliest versions of HD SC Setup (I checked v1.3 and v1.4; are there any earlier?) don't have that check, but instead only work with specific drives, based on manufacturer/model strings in the INQUIRY data.

Last edited by mark_k; 06 August 2017 at 20:48.
mark_k is offline  
 
Page generated in 0.04841 seconds with 11 queries