Complete ESP32 partition expander and adaptive LoRa OTA pacing

This commit is contained in:
mikecarper committed 2026-09-24 17:13:22 -07:00
1 parent e370db7f28
commit a74a09da56
33 files changed
+986 -66

No files matched your search

+21 -6
View File
@@ -860,13 +860,28 @@ build_flags =
build_src_filter = ${Heltec_lora32_v4.build_src_filter}
+<../examples/kiss_modem/>
; Self-hosted partition migration receiver for a legacy V4 1.25 MiB slot.
; This role keeps Wi-Fi recovery and receives the exact Full repeater over LoRa.
[env:heltec_v4_partition_expander]
extends = Heltec_lora32_v4
board = heltec_v4_migrator
board_build.partitions = default.csv
board_build.flash_mode = dio
board_upload.maximum_size = 1310720
build_src_filter = ${Heltec_lora32_v4.build_src_filter}
+<../examples/partition_expander/*.cpp>
build_flags = ${Heltec_lora32_v4.build_flags}
-D MESH_MIN_RUNTIME_HEAP=100352
-D MOTA_MIGRATION_TARGET_ID=0xe792a051
; Pipeline verified OTA blocks across one request turn. The adaptive window
; starts at one and grows only after clean flights, then shrinks on loss.
-D OTA_FETCH_PIPELINE=4
lib_deps = ${Heltec_lora32_v4.lib_deps}
${esp32_ota.lib_deps}
; One-time Wi-Fi-only migration bridge for legacy Heltec V4/V4.3 OLED
; repeaters that still use Arduino's 1.25 MiB OTA slots. It is deliberately
; linked against default.csv so the existing browser updater can install it.
; On first boot it stages /identity/_main.id in unchanged NVS, makes a
; CRC-verified copy of legacy SPIFFS, copies itself to app0 when necessary,
; then publishes default_16MB. It restores the identity after the larger
; SPIFFS region initializes and exposes a browser updater for the full image.
; repeaters that still use Arduino's 1.25 MiB OTA slots. It is linked against
; default.csv so the existing browser updater can install it.
[env:heltec_v4_partition_migrator]
platform = platformio/espressif32@6.11.0
board = heltec_v4_migrator
+20
View File
@@ -58,6 +58,26 @@ lib_deps =
${Xiao_S3_WIO.lib_deps}
${esp32_ota.lib_deps}
; Self-hosted Wi-Fi/LoRa receiver for the 1.25 MiB -> full-layout migration.
; The target ID is the exact successor Xiao_S3_WIO_repeater; this build must
; not automatically select an unrelated role. Hardware deployment still needs
; an A/B and power-interruption test before it is included in a release.
[env:Xiao_S3_WIO_partition_expander]
extends = Xiao_S3_WIO
board_build.partitions = default.csv
board_build.flash_mode = dio
board_upload.maximum_size = 1310720
build_src_filter = ${Xiao_S3_WIO.build_src_filter}
+<../examples/partition_expander/*.cpp>
build_flags = ${Xiao_S3_WIO.build_flags}
-D MESH_MIN_RUNTIME_HEAP=100352
-D MOTA_MIGRATION_TARGET_ID=0x9f19bcd1
; Same adaptive four-block window as the accelerated LoRa bridges: fewer
; request/proof turnarounds without weakening per-block verification.
-D OTA_FETCH_PIPELINE=4
lib_deps = ${Xiao_S3_WIO.lib_deps}
${esp32_ota.lib_deps}
; Generic source, XIAO-specific board definition. It is intentionally linked
; to default.csv so the stock legacy browser updater can install it.
[env:xiao_s3_partition_migrator]