Git Product home page Git Product logo

img2sd's Introduction

img2sd

moves SCSI disk images from and to a SCSI2SD SDcard.

About SCSI2SD

The SCSI2SD hardware implements up to 4 SCSI hard disks on a single SDcard, see www.codesrc.com

This allows to operate vintage computer hardware without physical SCSI drives.

The partition layout of a SDcard is defined with the tool "scsi2sd-util", and kept as an XML file.

"img2sd" reads the XML config file, then allows to read/write/verify the SDcard partition against binary file images.

This could also be done with "dd" command, but then block offset and sizes must be calculated manually.

Compile

Compile tested under Ubuntu. The "libxml" package is needed. Install with

sudo apt-get install libxml2-dev

See makefile for more info.

Operation

The build-in help should say all:

joerg@vmubuprog:~/progs/RetroCmp/img2sd$ ./img2sd
img2sd - moves SimH disk images from and to SCSI2SD SDcard
   version: Dec 26 2017 08:49:33
   Contact: [email protected], retrocmp.com

   For SCSI2SD doc and downloads see "http://www.codesrc.com/mediawiki/index.php?title=SCSI2SD"

Command line summary:

img2sd  --help --verbose --device <device_filename> --xml <config_filename>
          --read <target_id> <image_file> --write <target_id> <image_file>
          --compare <target_id> <image_file>
          --writecompare <target_id> <image_file>

-?  | --help
          Print help
-v  | --verbose
          Verbose output
-d  | --device <device_filename>
          Raw SDCard device, without "/dev".
          To check: plug in SDcard, then "dmesg | tail"
          Simple example:  -d sdb
              Use "/dev/sdb" as interface to SDcard.
-x  | --xml <config_filename>
          Path to mandatory SCSI2SD geometry config file (XML)
          Simple example:  -x 4xRD54_rev471.xml
              The XML file must be generated with "scsi2sd-util".
-r  | --read <target_id> <image_file>
          Read disk image from SDcard partition.
          Simple example:  -r 3,rsxdata.img
              Read partition with SCSI ID #3 and save it as file "rsxdata.img".
-w  | --write <target_id> <image_file>
          Write disk image into SDcard partition. Size must fit!
          Simple example:  -w 0,rt1157.rd54
              Copy the disk image file "rt1157.rd54" onto drive #0 partition
              Offset and size on SDcard is taken from XML config file.
-c  | --compare <target_id> <image_file>
          Compare disk image file with SDcard partition.
-wc | --writecompare <target_id> <image_file>
          First write, then compare

Option names are case insensitive.

img2sd's People

Contributors

j-hoppe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.