From 4245a2ecc029f2908970ce3074113603acf1eae7 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 4 Sep 2026 19:52:05 -0700 Subject: pos: offer "Flash latest release" from a published firmware manifest Host the ESP32-C3 firmware under static/firmware (bootloader, partition table, boot_app0, app) with a manifest.json written by coinos-pos's publish.sh. The flasher fetches the manifest, downloads every part, verifies sizes, flashes them at their offsets and resets the device. The config partition is not in the manifest so credentials survive. Manual .bin upload stays available underneath. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_014gVYGi29FjTeLdNTiutkZx --- static/firmware/boot_app0.bin | Bin 0 -> 8192 bytes static/firmware/bootloader.bin | Bin 0 -> 18688 bytes static/firmware/coinos-pos.bin | Bin 0 -> 1298928 bytes static/firmware/manifest.json | 12 ++++++++++++ static/firmware/partitions.bin | Bin 0 -> 3072 bytes 5 files changed, 12 insertions(+) create mode 100644 static/firmware/boot_app0.bin create mode 100644 static/firmware/bootloader.bin create mode 100644 static/firmware/coinos-pos.bin create mode 100644 static/firmware/manifest.json create mode 100644 static/firmware/partitions.bin (limited to 'static') diff --git a/static/firmware/boot_app0.bin b/static/firmware/boot_app0.bin new file mode 100644 index 00000000..13562cab Binary files /dev/null and b/static/firmware/boot_app0.bin differ diff --git a/static/firmware/bootloader.bin b/static/firmware/bootloader.bin new file mode 100644 index 00000000..8d855ec0 Binary files /dev/null and b/static/firmware/bootloader.bin differ diff --git a/static/firmware/coinos-pos.bin b/static/firmware/coinos-pos.bin new file mode 100644 index 00000000..de1ff071 Binary files /dev/null and b/static/firmware/coinos-pos.bin differ diff --git a/static/firmware/manifest.json b/static/firmware/manifest.json new file mode 100644 index 00000000..2ddcf9cc --- /dev/null +++ b/static/firmware/manifest.json @@ -0,0 +1,12 @@ +{ + "version": "2026.09.04-0ec9bae", + "commit": "0ec9bae", + "built": "2026-09-05T02:51:16Z", + "chip": "ESP32-C3", + "parts": [ + { "path": "/firmware/bootloader.bin", "address": 0, "size": 18688 }, + { "path": "/firmware/partitions.bin", "address": 32768, "size": 3072 }, + { "path": "/firmware/boot_app0.bin", "address": 57344, "size": 8192 }, + { "path": "/firmware/coinos-pos.bin", "address": 65536, "size": 1298928 } + ] +} diff --git a/static/firmware/partitions.bin b/static/firmware/partitions.bin new file mode 100644 index 00000000..21800fab Binary files /dev/null and b/static/firmware/partitions.bin differ -- cgit v1.2.3