Files
Matt SpencerandCopilot c6b1537c8c
release / release (push) Successful in 1m39s
tools: install a release into the idle firmware slot
Add tools/install_release.py, a host script that takes a release from Gitea
and puts it on a board over USB the way an update would: it downloads the
release's application image and checks it against the release checksums,
writes it to the slot that is not running, and rewrites otadata to select
that slot as a new image before resetting the board.

It reads the board's own partition table and slot selection rather than
assuming a layout, refuses a board without the A/B partition table, and
writes nothing until the image has been downloaded and verified. A dry run
shows what it would do.

This lets the A/B slots be tested with real releases while there is no
over-the-air update source. The README documents it, and the full image's
install steps now clear the slot selection, so that a board which had
switched to the second slot runs the image just written.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-29 01:16:37 +00:00
..