`alkane-cli afw make-media` wraps the sd_media builders:
--kind stock --stock-package <zip|dir> --out card.img
--kind alkane --mode simpleboot|installer --afw <f.afw> --out card.img
[--allow-unsigned] [--write /dev/sdX --confirm WRITE]
Zynq-7010 only for now. A .zip stock package is unpacked to a temp dir; a
directory is used as-is. Writing to a real device requires --confirm WRITE.
Verified end-to-end: building a stock card from the genuine vendor S17
package yields a card image byte-identical in content/sizes to the hand-built
card that recovered the bench S17 on 2026-11-17.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B1W6qKwKxq3oUPDKWicM6i