# Exact firmware and tool identities

The source selection is Craig Daters' [October 29, 2025 PDF](../documents/PiStorm-MiniMig-AmiKit_202510290634.pdf), pages 3–4. It explicitly names [MiniMig's original pistorm-main.zip](https://www.minimig.ca/software/pistorm-main.zip) and xPack OpenOCD 0.11.0-2. The original ZIP is included at `vendor/archives/pistorm-main.zip`; its expanded contents are under `sources/pistorm-main/`.

| Item | SHA-256 |
| --- | --- |
| Original `pistorm-main.zip` | `06ab4e748c8699b6f08aa43da7ab86a91c0fadfd106aa2373cd9d8ae34df332e` |
| PDF | `4d689a323d06a1cda4397de8a3dcfd42780c95cf291c5954d136710196e25504` |
| EPM240 `rtl/EPM240_bitstream.svf` | `cb11828a2723bfda24f8eb00e99e58566a19200354d28ab60482cb0bda41a0dc` |
| EPM570 `rtl/bitstream.svf` | `34c627089e46a88f7296f936b175f5691593f7a38844afcbe5e03753c8d0372d` |
| xPack ARM 0.11.0-2 archive | `cf5aa652177ce3ace57ae08f3d25b4159104167b57fe39db5b32b82947a61d94` |
| ARM OpenOCD executable | `fe296e1f288499f6a1dd38dda6a2c6aa04dd40068a995e940fabeff528b0525f` |
| Exact tested Zero 2 W wrapper | `f5a6214e51aa0165ca4ea4cad17e6c40644ed81493e78c65e4c689ea90541612` |

The historical toolkit uses `images/rollback/EPM240.svf` and `images/rollback/EPM570.svf` for these same bytes. The firmware comparison records associate them with upstream commit `75bbc70be87a8f63f02ce6a57f23f5fb1d9c5787` from April 2021; no newly compiled CPLD image is required to recreate the SD programmer. The ZIP has a different repository snapshot ID in its comment, which should not be confused with the provenance of the contained bitstreams.

The archive also preserves the following material to explain old experiments and enable recovery research:

- The separate `pistorm-main-updated_20251028.zip` download and extracted historical source subset.
- The toolkit's `upstream` files, pinned in September 2026, and their comparison records.
- Experimental startup-only EPM240/EPM570 SVFs, source/package, helper and checks under `reference/experimental-startup/`.

These are not selected by the current MiniMig-only dispatcher. “Upstream” in historical records means the pinned snapshot then examined, not a request to fetch today's version.

## Corrections to the old launchers

The old package's launcher scripts are retained unchanged as source evidence. They contain inconsistencies, including an EPM570 expected ID in the EPM240 config, an IR length of 11, and a dummy SRST on GPIO5. The verified toolkit uses **IR length 10**, checks the real target ID against the chosen device, uses the correct SVF filename, and leaves reset GPIO unassigned. GPIO5 is a PiStorm bus signal. These command/configuration fixes do not alter the original SVF bytes.

The PDF's OpenOCD 0.11.0-2 package reports `0.11.0+dev`; this is expected. The scripts always call its absolute path. Do not replace it with an arbitrary `/usr/bin/openocd` or an automatic current release.

All four historical toolkit image identities are in [manifests/firmware.json](../manifests/firmware.json), and all installed file identities are in `runtime/rootfs/opt/pistorm-programmer/BUNDLE_SHA256SUMS`.
