uweseimet / scsi2pi

Advanced performant SCSI/SASI emulation and tools for the PiSCSI/RaSCSI board
https://www.scsi2pi.net
BSD 3-Clause "New" or "Revised" License
9 stars 2 forks source link

s2pexec: Send any SCSI/SASI command to any device #3

Closed uweseimet closed 9 months ago

uweseimet commented 10 months ago

s2pexec shall be extended to send any SCSI/SASI command to any device. If there is a DATA IN phase the data to transfer shall be read from a file with the binary data. If there is a DATA OUT phase the device output shall be stored in a file. The hexadecimal CDB shall be passed to s2pexec as a parameter to the new "--command/-c" option. When no output file is specified the result shall be printed on the console in a human readable hexadecimal format in a similar format as the one used by 'od -x'.

uweseimet commented 9 months ago
>s2pexec -i 0 -b 512 -c 12:00:00:00:30:00
00000000 03:00:05:02:1f:00:00:00:53:43:53:49:32:50:69:20  '........SCSI2Pi '
00000010 48:6f:73:74:20:53:65:72:76:69:63:65:73:20:20:20  'Host Services   '
00000020 30:31:30:32