Skip to content

Utility for converting SCSI2SD images to .HDA files (for use with RASCSI and BlueSCSI)

License

Notifications You must be signed in to change notification settings

dburr/scsi2sd_to_hda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

scsi2sd_to_hda

A utility for converting SCSI2SD images to .HDA files (compatible with RASCSI and BlueSCSI)

What the heck is this?

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. ;-)

Requirements

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

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.)

Caveats

  • 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

About

Utility for converting SCSI2SD images to .HDA files (for use with RASCSI and BlueSCSI)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages