Reading USB Mass Storage Devices with Raw SCSI
Walking through the USB mass storage protocol — CBW/CSW handshakes, SCSI command transport over libusb, and parsing raw MBR blocks to detect partition schemes without the OS filesystem layer.
Writing about systems, emulation, and the things I build. 2 posts published
Walking through the USB mass storage protocol — CBW/CSW handshakes, SCSI command transport over libusb, and parsing raw MBR blocks to detect partition schemes without the OS filesystem layer.
Mapping all 256 opcodes, building a disassembler first, grouped instruction dispatch, flag gotchas, and running the Space Invaders ROM. References the Emulator 101 tutorial with original design decisions.