FwUpdate phase 1: only in FW_OTA images, manifest layout 2, no downgrade over the mesh

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-11-13 16:33:29 +01:00
1 parent c93f5d906d
commit 0b38eab008
7 files changed
+1107 -12

No files matched your search

+4 -1
View File
@@ -23,7 +23,9 @@
// fw w <offset> <base64> one chunk, offset a multiple of FW_OTA_CHUNK
// fw missing first missing chunk offsets (for resending)
// fw verify signature + hashes + dry-run inflate
// fw apply [force] battery gate, then copy and reboot
// fw apply [force] [downgrade] battery gate, then copy and reboot; both
// arguments local only (no downgrade over the mesh)
// fw ver target and build epoch a package for this image needs
// fw abort forget the staged package
// fw bl print the bootloader settings page
@@ -113,6 +115,7 @@ private:
// request). Then only a DELTA is accepted: a full image is ~300 kB, hours of
// airtime on a shared channel -- it goes over USB or the BLE console.
bool _remote = false;
bool _older = false; // the package is not newer than this image (manifest build_epoch)
bool _base_known = false;
uint8_t _base_sha[32];
// The manifest is checked from this RAM copy, not from the stage in flash: three