English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   support.WinUAE (https://eab.abime.net/forumdisplay.php?f=5)
-   -   Apple SCSI hard drive emulation (https://eab.abime.net/showthread.php?t=88176)

mark_k 06 August 2017 20:05

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.

Toni Wilen 06 August 2017 21:36

These kinds of special cases probably should be handled using geometry file. Geometry file will support custom SCSI mode pages in the future. (Always enabled is not going to happen)


All times are GMT +2. The time now is 22:08.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.03993 seconds with 11 queries