Add in-place ESP32 Wi-Fi and LoRa partition migration packages
This commit is contained in:
1 parent
352c8aed8c
commit
f8a1e2ff96
11 files changed
+555
-28
No files matched your search
@@ -1,10 +1,11 @@
|
||||
# ESP32 legacy-partition migration over Wi-Fi
|
||||
# ESP32 legacy-partition migration over Wi-Fi or LoRa
|
||||
|
||||
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.
|
||||
It is designed for inaccessible repeaters: the bridge itself fits a legacy
|
||||
1.25 MiB slot, replaces the table from Wi-Fi, and then exposes Wi-Fi again for
|
||||
the full application image.
|
||||
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 retains the old
|
||||
OTA-capable repeater in the other expanded slot and returns to it after
|
||||
restoring identity, so it can fetch the full image over LoRa.
|
||||
|
||||
It currently has explicit, byte-for-byte generated target plans for Arduino
|
||||
ESP32 `default_8MB.csv` and `default_16MB.csv`. It does not guess a table for
|
||||
@@ -31,6 +32,9 @@ image is deliberately not raw-copied into an expanded partition: SPIFFS is not
|
||||
safe to resize that way. Other SPIFFS-backed settings can be recreated after
|
||||
the full image boots.
|
||||
|
||||
Migration does erase the 4 KiB partition-table sector and the destination app
|
||||
sectors. Expanded SPIFFS can be reformatted. It never issues a full-chip erase.
|
||||
|
||||
## Eligible source layout
|
||||
|
||||
The bridge only accepts a source table that has all of the following:
|
||||
@@ -76,6 +80,27 @@ bootloader and table offsets for cable flashing, not browser OTA.
|
||||
`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 repeater
|
||||
|
||||
The exact old repeater 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
|
||||
refused. It works from either legacy A or B. It copies legacy B to the future
|
||||
B address, boots the bridge once to restore the private key in expanded
|
||||
SPIFFS, then boots the preserved old repeater. That repeater can receive the
|
||||
full image into its now-expanded inactive slot.
|
||||
|
||||
The board-specific LoRa bridges are `heltec_v4_partition_migrator_lora_repeater`
|
||||
and `xiao_s3_partition_migrator_lora_repeater`. Build the final repeater with
|
||||
`bash build.sh build-firmware <target> --full-exact` so its mOTA target ID
|
||||
still matches the old repeater. `scripts/package_esp32_partition_migration.py`
|
||||
checks the images, partition tables, hashes and mOTA containers and creates
|
||||
separate Wi-Fi/LoRa migration ZIPs for those two boards. The ZIP README gives
|
||||
the exact `ota ls`, `ota pull <id> flash`, `ota install` sequence.
|
||||
|
||||
A stock repeater without LoRa mOTA cannot use the LoRa-only route. The
|
||||
Wi-Fi bridge remains the route for that device.
|
||||
|
||||
## Heltec V4 / V4.3
|
||||
|
||||
Build `heltec_v4_partition_migrator`, upload it through the legacy Wi-Fi
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Heltec V4 legacy-partition migration over Wi-Fi
|
||||
|
||||
Heltec V4/V4.3 OLED repeaters with their normal 16 MiB flash use the shared
|
||||
[ESP32 Wi-Fi partition migration](esp32_wifi_partition_migration.md) bridge.
|
||||
[ESP32 partition migration](esp32_wifi_partition_migration.md) bridge.
|
||||
It changes Arduino's old `default.csv` layout, with two 1.25 MiB OTA slots,
|
||||
to `default_16MB.csv`, with two 6.25 MiB OTA slots.
|
||||
|
||||
@@ -20,3 +20,8 @@ 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.
|
||||
|
||||
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.
|
||||
Reference in new issue
Block a user