Preserve flood policies across qualified RAM capacity changes

This commit is contained in:
mikecarper committed 2026-10-05 03:33:44 -07:00
1 parent 982f96ca96
commit 19d02c0dfa
9 files changed
+444 -108

No files matched your search

+6 -1
View File
@@ -254,8 +254,13 @@
const acceptedTags = new Set(RELEASE_PAGE_PREFIXES.map(function (prefix) {
return prefix + familyTag;
}));
const chunkGroups = ["companion"].concat(RELEASE_PAGE_PREFIXES.filter(Boolean).map(function (prefix) {
return prefix.slice(0, -1);
}));
const chunkTag = new RegExp("^(?:" + chunkGroups.map(escapeRegExp).join("|") +
")-(?:[2-9]|[1-9][0-9]+)-" + escapeRegExp(familyTag) + "$");
const familyReleases = publicReleases.filter(function (release) {
return acceptedTags.has(release.tag_name);
return acceptedTags.has(release.tag_name) || chunkTag.test(release.tag_name);
}).sort(function (a, b) {
return releaseDate(b).localeCompare(releaseDate(a));
});
+14
View File
@@ -34,6 +34,15 @@ layout before installing an image.
color framebuffer and OTA arena. Their capability manifests record this
capacity limit; heap qualification margins are unchanged.
- The RAK3401 unified repeater reserves 47 flood-rule entries so its full
sensor profile, 8 KiB loop stack, 50 neighbors and internal/QSPI OTA stores
fit the runtime RAM requirement. Full and reduced sensor images use the
same table capacity; the capability reports record this limit.
- Flood-policy upgrades accept inactive trailing rows from larger tables.
If active rules exceed an image's capacity, the stored file is preserved and
policy saves are blocked. The CLI reports the capacity mismatch; install
firmware with enough rule slots to recover the complete policy.
## Installation
An ESP32 merged `.bin` installs bootloader, partitions and application over
@@ -43,6 +52,11 @@ family's utility page, or the matching merged image over USB. Follow the ZIP's
README and use its supplied Full application. `get storage.layout` reports
the live layout on firmware that supports it.
Check the image's flood-rule capacity before updating a repeater. Move active
rules into the supported slots and save them before installing a smaller
table. An over-capacity policy is retained on storage but remains inactive
until compatible firmware is installed.
Native hardware CDC can change the USB product name and Linux `/dev/serial/by-id`
path. Update serial consumers to the new device path after the first upgrade.
Do not identify a radio solely by a changing `/dev/ttyACM` number.