A utility for converting SCSI2SD images to .HDA files (compatible with RASCSI and BlueSCSI)
Recently I finally finished restoring my beloved SE/30. I'm a major Unix geek, and I have dreamed of being able to run A/UX on one of my machines. Unfortunately, during its heyday, it was way beyond my starving-student budget. Recently I found the A/UX SCSI2SD easy install and wanted to give it a try... but I didn't have a SCSI2SD. So I dug into it and figured out that the XML file contains offsets to the various SCSI "devices" in the SD card image file. And I hacked together a script that parses the XML and splits out the various SCSI devices into their own .hda
files that I could use with my RASCSI and/or BlueSCSI. ;-)
This script should work with almost any Unix-like system, including Linux and OS X. The only requirement is that you have the bash
shell.
usage: scsi2sd_to_hda.sh image-file xml-file
image-file
is the path to the actual SD card image. (it can also be a /dev/
file if your SD card is plugged in)
xml-file
is the path to the XML file containing the SCSI2SD configuration data.
Output will be created using the filename HDX0.hda
where X
is the SCSI target number. This filename format is compatible with the BlueSCSI and should also work with the RASCSI (though you will probably want to rename them to a more human-friendly name.)
- This code is pretty rough and tumble. It doesn't modify the source files in any way, so your SCSI2SD source images shouldn't be affected. But the resultant
.hda
images it produces may or may not work. - SCSI LUNs aren't supported.
- This tool depends on the XML elements being in the following exact order. If your XML file is ordered differently, you'll have to rearrange it. (or fix the script to work with arbitrary orders and submit a pull request
;-)
)SCSITarget
sdSectorStart
scsiSectors
bytesPerSector