Expand post-merge regressions and document qualification gaps

This commit is contained in:
mikecarper committed 2026-10-17 21:41:47 -07:00
1 parent 80023f79e0
commit a4a0b97c3f
20 files changed
+536 -74

No files matched your search

+14 -4
View File
@@ -154,10 +154,20 @@ fresh device with no saved SSID:
4. Select **Save & Reboot**.
5. After reboot, check `get wifi.status` and `get mqtt.status`.
The setup AP is unauthenticated unless the firmware was built with
`WEBCONFIG_AP_PASSWORD`. It uses plain HTTP, so provision it in a trusted
location. When WebConfig is running on the normal LAN, repeater and room-server
builds require the node's admin password.
First-time provisioning with no saved SSID does not require a portal admin
login. A setup AP opened with a saved SSID, including saved-network recovery,
requires the existing admin password before changing settings. Repeater and
room-server builds also require that password on the normal LAN; deliberately
passwordless images retain their no-password policy. `WEBCONFIG_AP_PASSWORD`
controls access to the WiFi network separately. The portal uses plain HTTP, so
use a trusted network.
Admin login limits apply on both LAN and recovery AP: five failures lock the
failing address for 30 seconds after its fifth failure. All addresses also share
a budget of six failures, refilling one allowance every 6 seconds; while empty,
even correct credentials receive HTTP 429. A success clears only its own
address's count. The [room browser](room_services.md#local-wi-fi-chat-on-esp32)
uses a separate password budget; a WebConfig session does not bypass it.
On an expanded FULL profile with no saved SSID, this automatic setup AP has an
absolute 30-minute window. Browser activity or a phone left associated with the
+44 -21
View File
@@ -7,10 +7,12 @@
The partition-migration bridge lets a supported ESP32 node move from a small
dual-OTA layout to a verified larger dual-OTA layout without cable flashing or
a full-chip erase. It fits a legacy 1.25 MiB slot. The Wi-Fi version exposes an
updater for the Full image after migration. The LoRa version preserves a
verified old OTA receiver so it can fetch the Full image into the expanded
inactive slot. On 8/16 MiB flash the bridge restores identity before handing
off; the 4 MiB route keeps identity staged until the Full image's first boot.
updater for the Full image after migration. The older identity-only LoRa
handoff preserves a verified old OTA receiver so it can fetch the Full image
into the expanded inactive slot. On 8/16 MiB flash that bridge restores identity
before handing off; its 4 MiB route keeps identity staged until the Full image's
first boot. Configuration-preserving Partition Expanders instead receive the
Full image themselves after restoring identity and supported settings.
The distinct USB version performs verified identity/configuration restoration
before the host writes the final app. It keeps application USB CDC disabled
@@ -42,6 +44,30 @@ These are the supported migration plans. The 8/16 MiB tables retain more
filesystem storage and a coredump partition; their application slots are not
the absolute maximum permitted by the physical flash capacity.
## Bridge Wi-Fi credentials
Join `MeshCore-Migrate` using the admin password saved on the old node. This
applies to the Wi-Fi bridge and the recovery AP of LoRa bridges and Partition
Expanders. The firmware stores at most 15 password characters; the bridge can
use a saved password of **8 to 15 printable ASCII characters** for WPA2.
If the saved password is shorter than 8 characters, contains other characters,
or cannot be read, the bridge uses the published fallback `meshcore-migrate`.
Missing saved preferences, including a node still using an unsaved built-in
default, also cause fallback. Anyone nearby who knows that published password
can then join and upload firmware when the updater is enabled. A saved default
or other public admin password is also usable, so choose a strong, nonpublic
password before migration. On the old node, use `password <new password>` and
verify that it remains valid after a normal reboot before uploading the bridge.
The Wi-Fi bridge and configuration-preserving Partition Expanders restore the
saved password before starting their AP in the expanded layout. The older
identity-only LoRa handoff does not restore saved settings, so its Wi-Fi
recovery AP after the table change normally uses the fallback. Follow the exact
route in the package README. If a device remembers `MeshCore-Migrate` from an
earlier bridge, forget that saved network or update its password before joining.
Bridge packages built before this credential change use `meshcore-migrate`.
## Ordinary Full releases and installation
Ordinary ESP32 node releases use Full for each exact board and firmware role.
@@ -212,9 +238,11 @@ inclusion does **not** override either check.
Every listed board/role has Wi-Fi and LoRa bridge recipes. Heltec V4 and XIAO
S3 WIO repeaters retain their board-specific bridge names; the other entries
use matching original-ESP32, ESP32-S3, or ESP32-C3 chip-family bridges. LoRa
still requires a verified same-target old receiver, and 4 MiB boards require
the slot-B-only sequence below. A 4 MiB Full build offers 1,984 KiB per slot.
use matching original-ESP32, ESP32-S3, or ESP32-C3 chip-family bridges. The older
identity-only LoRa handoff requires a verified same-target old receiver, and
its 4 MiB route requires the slot-B-only sequence below. Configuration-preserving
Partition Expanders use the route described in their package README instead.
A 4 MiB Full build offers 1,984 KiB per slot.
The packager verifies both the Full application's slot fit and its mOTA
staging overhead. It supports at most 4096 blocks of 2 KiB for the Full
transfer, and records the seeder proof-scratch requirement in the manifest.
@@ -234,7 +262,8 @@ followed by its 64-byte private key), stages them in an NVS namespace that is
unchanged by the source and target layouts, then changes the table. The Wi-Fi
bridge and 8/16 MiB LoRa bridge restore the staged value into expanded SPIFFS,
read it back byte-for-byte, and only then clear the NVS staging record. On the
4 MiB LoRa route, the Full application's first boot performs this restoration.
4 MiB identity-only LoRa handoff, the Full application's first boot performs
this restoration.
The Wi-Fi bridge also stages and verifies its supported saved configuration:
node name and preferences, radio profiles, ACL and login replay state, region
@@ -284,27 +313,21 @@ Use `--board xiao-s3-wio` with the recipe above. Its Wi-Fi bridge is a
legacy-slot application image; its Full image keeps the old repeater's exact
LoRa OTA target ID. Upload `wifi-bridge.bin` from the ZIP through the legacy
node's existing Wi-Fi browser updater.
Then join `MeshCore-Migrate` and wait for **Expanded layout ready**. Its Wi-Fi
password is the admin password saved on the old node, so only someone who can
already administer the node can join and upload firmware. Upload
`full-application.bin` at `/update`.
Then join `MeshCore-Migrate` using the node's saved admin password, following
the [shared credential and fallback rules](#bridge-wi-fi-credentials), and wait
for **Expanded layout ready**. Upload `full-application.bin` at `/update`.
Do not upload an `-merged.bin`: merged images include
bootloader and table offsets for cable flashing, not browser OTA.
WPA2 needs a password of at least 8 printable ASCII characters. If the saved
admin password is shorter, uses other characters, or was never saved (the node
still runs on its built-in default), the bridge falls back to
`meshcore-migrate`. That password is published here, so anyone nearby could
then join and upload firmware. Before uploading the bridge, set an admin
password of 8 to 15 characters with `password <new password>`. A LoRa
first-stage bridge does not carry saved settings into the expanded layout, so
its Wi-Fi recovery page after the table change normally uses the fallback.
`xiao_s3_partition_legacy_seed` is a disposable-hardware test image only. It
models the legacy table and an identity file; it is not a deployable repeater.
## LoRa-only migration of a listed role
This section describes the older identity-only LoRa handoff. A package whose
LoRa first stage is a configuration-preserving Partition Expander, including
the Waveshare observer packages, uses its package README's self-hosted route.
The exact old board/role must already support MeshCore LoRa mOTA and have a valid
EndF image identity. The LoRa bridge checks the old app's target ID and body
hash before any partition-table write; an unsupported or damaged receiver is
+13 -7
View File
@@ -20,16 +20,22 @@ python3 -B scripts/build_esp32_partition_migration.py \
The ZIP contains the Wi-Fi bridge, LoRa bridge, and exact-target Full image.
Upload its `wifi-bridge.bin` through the
legacy browser Wi-Fi updater. Rejoin `MeshCore-Migrate` using the node's saved
admin password as the Wi-Fi password (see the shared guide for the published
fallback); when it reports **Expanded layout ready**, upload the ZIP's
admin password as the Wi-Fi password (see the shared
[credential and fallback rules](esp32_wifi_partition_migration.md#bridge-wi-fi-credentials));
when it reports **Expanded layout ready**, upload the ZIP's
`full-application.bin` at `/update`.
Do not use an `-merged.bin` in either browser uploader. Merged images contain
bootloader and table offsets for cable flashing. The bridge preserves the
private identity; other SPIFFS-backed settings may be recreated after the
Full image starts.
private identity and supported saved configuration, including node name,
radio profiles, ACL and login replay state. Files outside the supported
preservation set may need to be recreated after the Full image starts.
For an existing `heltec_v4_repeater` that already supports LoRa mOTA, use the
separate LoRa migration package described in the shared guide. It preserves
the old repeater across the partition change so the full image can also be
installed over LoRa without reaching the board's Wi-Fi network.
ZIP's `lora-bridge.mota` with the identity-only LoRa handoff described in the
shared guide. It preserves the old repeater across the partition change so the
Full image can also be installed over LoRa without reaching the board's Wi-Fi
network.
That route does not restore saved settings; its post-expansion Wi-Fi recovery
AP normally uses the published fallback. The optional Partition Expander
route instead restores supported settings and retains the saved admin password.
+2 -2
View File
@@ -736,7 +736,7 @@ for `ENABLE_OTA` builds using the shared raw-radio scheduler, except primary
ESP-NOW builds; `-DMESH_ENABLE_OTA_KISS_DIRECT=0` explicitly disables it. Enabling
the build feature alone does not bypass the runtime negotiation/session gates.
The separate host seeder's safe probe/serve examples and lab TX lock are in
[`tools/lora_ota/README.md`](../tools/lora_ota/README.md).
[`tools/lora_ota/README.md`](https://github.com/mikecarper/MeshCore/blob/keymindCascade/tools/lora_ota/README.md).
### 8.6 Temporary-radio and transfer boundary
@@ -954,7 +954,7 @@ deployment runner temporarily uses `0.3` on managed relays.
`ota folder on` command; that command confirms it can host and advertise the folder. A **KISS modem will not
work with `motatool serve --serial`**: KISS firmware exposes a TNC/KISS frame interface, not the MeshCore CLI
and `mota-seeder` request/response transport. The separate
[`mota_kiss_direct.py` source](../tools/lora_ota/README.md) implements that full KISS interface.
[`mota_kiss_direct.py` source](https://github.com/mikecarper/MeshCore/blob/keymindCascade/tools/lora_ota/mota_kiss_direct.py) implements that full KISS interface.
An ESP32 WiFi companion or FULL ESP32 role with active WiFi is the alternative
source connection: use its dedicated seeder port with `motatool serve --tcp <host>:5001`.
An nRF52 Full Companion can instead pair with a phone or Linux host, subscribe
+6
View File
@@ -12,6 +12,12 @@ matching bootloader profiles. Earlier preview versions mentioned below
describe compatibility/migration history, not the current recommended download.
Full Companion is a MOTA source and normally updates itself over USB.
Before a Companion upgrade, export its contacts when possible. ESP32, RP2040
and STM32 can retain complete legacy records ahead of an interrupted final
record when no backup is reported present; nRF52 has separate migration rules.
See [legacy interrupted contact saves](research/companion_contact_cache.md#legacy-interrupted-contact-saves)
for the recovery limits and next-save behavior.
This guide is for **node operators**: how to update your MeshCore device's firmware over the radio, in
plain language. No cables, no programmer - your node can download a new firmware from a neighbour and
+36
View File
@@ -67,6 +67,36 @@ The path checksum also rejects
a cold path changed underneath a live handle; it does not add a new checksum
to the legacy ESP32 on-disk format.
### Legacy interrupted contact saves
ESP32, RP2040 and STM32 Companions can load the complete records before a
partial final record in a legacy `/contacts3` file. This includes cached and
uncached ESP32 builds. The file must contain at least one whole 152-byte
record, and every whole record must be readable.
The partial record is ignored; loading does not truncate the source. The next
successful ordinary contact save writes the complete loaded contacts through
the platform's existing transaction writer.
On ESP32 and RP2040, this salvage applies only when the presence check reports
`/contacts3.bak` absent. A readable complete backup takes precedence over the
incomplete primary. An unreadable backup keeps the existing bounded retry and
recovery behavior; the partial primary is not used to declare that backup
expendable. ESP32 also defers salvage when backup presence is uncertain.
RP2040's filesystem API does not distinguish a metadata I/O error from a
missing file. STM32 does not select a contact backup.
This recovers a readable prefix from an interrupted older in-place save, not
arbitrary corruption. Legacy records have no file checksum, and the existing
route validation and repair still apply. A file with no complete record, or
one that remains unreadable after recovery retries, can still be discarded by
contact-only recovery. Failure to remove damaged data leaves contacts volatile
and explicit saves unavailable, without erasing identity or unrelated settings.
nRF52 retains its separate legacy-size validation and paged-store migration;
this partial-tail salvage does not apply to nRF52. The existing
[ExtraFS recovery guide](../test-results/nrf52_companion_storage_recovery.md)
describes its separate mount and metadata recovery boundaries.
## Shared secrets and power
Both platforms reuse the 16 most recent secrets from RAM. Cache misses use a
@@ -188,6 +218,8 @@ change that layout or enable WiFi OTA.
```sh
python3 -B test/test_contact_cache.py
python3 -B test/test_companion_uncached_storage.py
python3 -B test/test_companion_contact_partial_tail.py
python3 -B test/test_companion_contact_persistence_contract.py
python3 -B test/test_companion_contact_stream_contract.py
python3 -B test/test_nrf52_extrafs_contract.py
@@ -202,6 +234,10 @@ adapters. They exercise 350 routes, eviction, snapshot rollback, page
migration, identity changes, read/write/rename faults, handle exhaustion,
packet release on a failed path read, and recovery after a simulated reset
between file renames. They do not simulate a physical flash power cut.
The partial-tail tests also check readable-prefix preservation, backup
precedence, deferred normalization on save and reload on ESP32, RP2040 and
STM32 using filesystem adapters. Real flash power-loss and full-volume
qualification remains separate from these host checks.
`tools/hil/contact_cache_serial_stress.py` checks all 350 paths over USB,
replaces them with a different generation, and optionally exercises secret
+20
View File
@@ -548,6 +548,26 @@ G2/Wio L1 selections in this matrix and all four STM32 Companions were rebuilt
at `29787c0b2`.
The final 95 related host tests and artifact-hash checks pass.
### PR21 contact-recovery size recheck, 2026-10-18 UTC
The combined PR17–21 merge tree `a40b1f662` was linked with
`v1.18.0.1-halo-keymind-cascade-dev`, `usa-cascade-fixed`, and the Cascade
profile. All four unchanged 229,376-byte application limits and runtime RAM
gates passed. These are build results, not on-device qualification.
| USB Companion | Application bytes | Free application bytes | Static RAM bytes |
| --- | ---: | ---: | ---: |
| RAK3x72 | 228,744 | 632 | 40,220 |
| Wio-E5 Mini | 228,760 | 616 | 40,252 |
| Wio-E5 Dev | 228,884 | 492 | 40,212 |
| Tiny Relay | 228,940 | 436 | 40,220 |
The earlier 508/452-byte margins above are historical checkpoints. Continue
linking every small STM32 Companion at full release-version length: these
margins do not justify relaxing the application, filesystem or runtime-RAM
gates. Physical storage and boot checks remain in the
[hardware checklist](../test-results/hardware_validation_checklist.md#pr1721-follow-up-qualification-2026-10-18-utc).
Margins remain narrow: RAK4631 Full Companion has 932 flash bytes free;
canonical/unified RAK4631 Full Repeater have 548/540 bytes above their RAM
budgets. W12/G2/G3 Full MQTT have 2,208/2,176/1,816 bytes above their budgets.
+25 -5
View File
@@ -225,11 +225,13 @@ read/write sessions remain transient; password-created administrators remain
retained. The existing permission byte is unchanged.
Guest-password logins do not allocate new durable login replay records, so
guest churn cannot fill the bounded replay store. Any existing record from a
previous privileged role still applies and is advanced. After reboot or
transient client eviction, an identity without such a record can have captured
guest login and message traffic accepted again. Assign an explicit read/write
role with `setperm <key> 2` when durable login replay protection is required.
guest churn cannot fill the bounded replay store. Existing records remain
authoritative and are advanced, including guest-password records created by
older firmware. This change does not reclaim space in an already full
128-identity replay store. After reboot or transient client eviction, an
identity without such a record can have captured guest login and message
traffic accepted again. Assign an explicit read/write role with `setperm <key> 2`
when durable login replay protection is required.
Room-post deduplication and per-sender post replay timestamps remain in RAM:
captured old posts can also be accepted after a legitimate newer login restores
a lost session.
@@ -408,6 +410,24 @@ notices; only administrators can publish or delete them. Each operation
rechecks credentials and bans. Use private Wi-Fi: the local page uses HTTP,
and network access alone does not grant administrator permission.
Room-browser password checks share one budget across all browsers and tokens.
Five newly counted wrong passwords exhaust a 30-second window measured from its
first counted failure. Until that window ends, every request with a nonempty
password is refused, including correct guest/admin passwords and polls from an
already connected admin tab. Correct passwords do not refund failures, and
refused requests do not extend the window. The last four wrong passwords are
remembered; repeats among those four do not count again. A wrong nonempty
password still counts when read-only access admits it as a guest. An empty
password never consumes this budget and remains usable
for explicitly enabled public read-only access.
This limit belongs to `/api/room`. The WebConfig admin login at `/api/login`
has its own address limits and shared budget for the same admin password;
neither endpoint clears or bypasses the other's limit. The room page does not
require a WebConfig session, and this browser limit does not change radio
logins. If password requests are blocked, wait for the window to end or use
the local console to manage the node.
The browser generates a secret token and its own moderation identity. It
does not import a radio private key or inherit a claimed radio key's ACL role.
The Access and history panel shows the complete browser identity for banning.
@@ -14,6 +14,86 @@ when its log identifies the physical device, firmware artifact, artifact hash,
command result, and cold/warm boot outcome. Do not infer success from a tool's
exit code when the tool has a documented false-success mode.
## PR17–21 follow-up qualification, 2026-10-18 UTC
The merged source checkpoint is `0a24279a3`. This audit adds host regressions,
operator documentation, and a C6 GPIO capability fix; it is not a hardware
qualification. No device was flashed or contacted during the audit.
Completed host coverage includes guest replay-store capacity and live-client
eviction; per-address/shared WebConfig limits and room-password windows across
`millis()` rollover; existing WebConfig sessions during login throttling;
migration credential precedence and failed-identity upload denial; generated
package instructions; and cached/uncached partial-contact recovery. The real
Chromium room and WebConfig fixtures use mocked HTTP responses, so they do not
prove the actual network/firmware interaction below.
The merge was compiled for `Heltec_v3_room_server`,
`heltec_v4_companion_radio_usb`, `esp32_s3_4mb_partition_migrator`, and all four
small STM32 USB Companions at release-version length. Follow-up builds cover
`Xiao_rp2040_companion_radio_usb` and Arduino 3's
`LilyGo_Tlora_C6_room_server_`. The C6 build initially exposed unavailable
global deep-sleep GPIO hold APIs; the helper now follows the SDK's per-pad
capability, with a fixture that omits the unavailable declarations. The CI
`cross-platform-smoke` job retains both RP2040 and C6 build checks.
Additional migration builds passed for `esp32_8mb_partition_migrator`,
`esp32_c3_4mb_partition_migrator`,
`heltec_v4_partition_migrator_lora_repeater`, `heltec_v4_partition_expander`,
and `esp32_s3_4mb_partition_migrator_usb`, including their application-size and
runtime-RAM gates. This covers representative chip families and Wi-Fi,
identity-only LoRa, Expander and USB code paths, rather than every board alias.
### Remaining physical acceptance checks
Record the exact clean source revision, firmware SHA-256, device identity,
observed result, and cold/warm boot outcome for each check. Record password
classes and success/failure, never the passwords themselves.
- [ ] **Migration credentials:** on cable-recoverable test hardware, join with
a distinct saved 8–15-character printable ASCII admin password. Reject the
wrong password and published fallback. Repeat with unusable/missing saved
credentials and verify the documented fallback. Forget or update the host's
saved `MeshCore-Migrate` network between different credentials.
- [ ] **Migration handoff:** test both source OTA slots and the distinct
identity-only LoRa and configuration-preserving Expander routes. Verify
recovery-AP credentials after expansion, actual browser upload, unchanged
identity/supported settings, final version, and cold-boot persistence.
Exercise supported interruption/retry points on sacrificial hardware; the
partition-table sector write is not atomic.
- [ ] **WebConfig:** use two distinct source addresses on LAN and on a
saved-network recovery AP. One address's five failures must not lock the
other out; exhausting the shared budget must reject even a correct new
login. An existing authorized session must remain usable. Verify recovery
at the six-second refill and 30-second address-lock boundaries. Clients
sharing one address also share its lock.
- [ ] **Room browser:** use separate real browser tabs/tokens for five
different wrong passwords. Nonempty credentials, including an already-open
admin tab, must wait for the shared window to expire; public empty-password
read-only access must remain available when enabled. Repeated stale-tab
passwords must not consume a new failure on every poll. Check visible error,
retry and unsaved-edit behavior against the real board.
- [ ] **Guest sessions:** churn transient guest identities, then admit a new
admin and an explicitly assigned writer. Power-cycle and verify privileged
login replay floors remain authoritative. Document the expected captured
guest-traffic replay boundary after transient state is lost; no durable
guest record is added and an already-full older store is not reclaimed.
- [ ] **Contact storage:** on ESP32 cached/uncached, RP2040 and STM32, exercise
legacy interrupted saves, full-volume/read failures and complete-backup
precedence. Require complete records to survive, the partial source to stay
unchanged until ordinary save, and identity/settings to remain untouched.
RP2040's `exists()` cannot distinguish absence from every metadata error;
include actual storage faults. nRF52 uses separate legacy migration rules
and is not covered by the partial-tail salvage change.
- [ ] **C6 terminal sleep:** measure the selected radio/FEM output levels
through terminal deep sleep and wake/reset, and verify that runtime/light
sleep does not latch unrelated live pins. A successful build and simulated
pad retention do not establish physical latch or current behavior.
Remaining automated follow-ups are browser throttle-error/retry/draft cases
and an executed configuration-restore-to-AP credential handoff. The host AP
fixture supplies pre/post-restore files; it does not run an entire migration.
## ESP32 web console and browser OTA release gates
The [2026-10-05 V4/XIAO checkpoint](hardware_validation_esp32_web_console_ota_2026-10-05.md)
+1
View File
@@ -7,6 +7,7 @@
Completed validation reports, experiments, and test guides are collected here. Older page addresses redirect to these copies. Results are tied to the hardware and firmware versions named in each report; they do not automatically qualify a newer build.
- [1.17.1.8 Preview 1 qualification and raw reports](preview-1.17.1.8/index.md)
- [PR17–21 remaining hardware acceptance checks](hardware_validation_checklist.md#pr1721-follow-up-qualification-2026-10-18-utc)
## Radio and RF