FwUpdate: check the manifest from a RAM copy; flag a flash readback mismatch
This commit is contained in:
1 parent
d1e893f692
commit
dc13c5b286
2 files changed
+22
-6
No files matched your search
@@ -103,6 +103,13 @@ private:
|
||||
bool _manifest_ok = false;
|
||||
bool _base_known = false;
|
||||
uint8_t _base_sha[32];
|
||||
// The manifest is checked from this RAM copy, not from the stage in flash: three
|
||||
// bench runs failed with "wrong base image" while the node's base and the
|
||||
// package's matched exactly -- the check had read an older package's manifest
|
||||
// that was still in flash at the same address. _flash_diff records a readback
|
||||
// mismatch after the flush, for diagnosis (`fw status`).
|
||||
uint8_t _mani[FW_OTA_MANIFEST_SIZE];
|
||||
bool _flash_diff = false;
|
||||
char _version[48] = { 0 };
|
||||
char _err[48] = { 0 };
|
||||
unsigned long _apply_at = 0;
|
||||
|
||||
Reference in new issue
Block a user