Merge branch 'keymindCascade' of github.com:mikecarper/MeshCore into keymindCascade
# Conflicts: # test/test_nrf52_ble_startup.py
This commit is contained in:
commit
bbb5c14fba
50 files changed
+3450
-261
No files matched your search
@@ -0,0 +1,93 @@
|
||||
; Board-independent ESP32-S3 Wi-Fi bridge for 4 MiB dual-OTA nodes. This
|
||||
; utility uses Wi-Fi, NVS and SPIFFS only; no board GPIO or PSRAM is needed.
|
||||
; DIO and disabled USB CDC minimize board-specific boot assumptions.
|
||||
[env:esp32_s3_4mb_partition_migrator]
|
||||
platform = platformio/espressif32@6.11.0
|
||||
board = esp32-s3-devkitc-1
|
||||
framework = arduino
|
||||
board_build.partitions = default.csv
|
||||
board_build.flash_mode = dio
|
||||
board_upload.flash_size = 4MB
|
||||
board_upload.maximum_size = 4194304
|
||||
extra_scripts = post:scripts/check_firmware_ram.py
|
||||
build_flags =
|
||||
-D ESP32_PLATFORM
|
||||
-D ARDUINO_USB_CDC_ON_BOOT=0
|
||||
-D MESH_MIN_RUNTIME_HEAP=100352
|
||||
-I src
|
||||
build_src_filter =
|
||||
-<*>
|
||||
+<../examples/esp32_partition_migrator>
|
||||
lib_deps =
|
||||
ESP32Async/AsyncTCP @ 3.5.0
|
||||
ESP32Async/ESPAsyncWebServer @ 3.12.0
|
||||
file://arch/esp32/AsyncElegantOTA
|
||||
|
||||
; The same board-independent bridge with a 16 MiB app image header. The
|
||||
; source updater still sees Arduino default.csv's 1.25 MiB slots.
|
||||
[env:esp32_s3_16mb_partition_migrator]
|
||||
extends = env:esp32_s3_4mb_partition_migrator
|
||||
board_upload.flash_size = 16MB
|
||||
board_upload.maximum_size = 16777216
|
||||
|
||||
[env:esp32_s3_8mb_partition_migrator]
|
||||
extends = env:esp32_s3_4mb_partition_migrator
|
||||
board_upload.flash_size = 8MB
|
||||
board_upload.maximum_size = 8388608
|
||||
|
||||
; LoRa first-stage variants derive the exact board/role target from the EndF
|
||||
; appended by the packager and verify the old receiver's EndF before changing
|
||||
; flash. The bridge itself uses no board-specific radio GPIO.
|
||||
[env:esp32_s3_4mb_partition_migrator_lora]
|
||||
extends = env:esp32_s3_4mb_partition_migrator
|
||||
build_flags =
|
||||
${env:esp32_s3_4mb_partition_migrator.build_flags}
|
||||
-D MESHCORE_MIGRATION_RESUME_OTA=1
|
||||
|
||||
[env:esp32_s3_8mb_partition_migrator_lora]
|
||||
extends = env:esp32_s3_8mb_partition_migrator
|
||||
build_flags =
|
||||
${env:esp32_s3_8mb_partition_migrator.build_flags}
|
||||
-D MESHCORE_MIGRATION_RESUME_OTA=1
|
||||
|
||||
[env:esp32_s3_16mb_partition_migrator_lora]
|
||||
extends = env:esp32_s3_16mb_partition_migrator
|
||||
build_flags =
|
||||
${env:esp32_s3_16mb_partition_migrator.build_flags}
|
||||
-D MESHCORE_MIGRATION_RESUME_OTA=1
|
||||
|
||||
; Heltec V2 and other first-generation ESP32 (non-S3) 8 MiB boards need a
|
||||
; matching chip-family image. The migration logic still verifies the live
|
||||
; partition table and flash size before touching flash.
|
||||
[env:esp32_8mb_partition_migrator]
|
||||
extends = env:esp32_s3_8mb_partition_migrator
|
||||
board = esp32dev
|
||||
|
||||
[env:esp32_8mb_partition_migrator_lora]
|
||||
extends = env:esp32_8mb_partition_migrator
|
||||
build_flags =
|
||||
${env:esp32_8mb_partition_migrator.build_flags}
|
||||
-D MESHCORE_MIGRATION_RESUME_OTA=1
|
||||
|
||||
; The 4 MiB C3 bridge covers historical default.csv images such as the
|
||||
; Heltec CT62. It never assumes the old app slots are exactly 1.25 MiB: the
|
||||
; live table must still pass the common geometry and identity checks.
|
||||
[env:esp32_c3_4mb_partition_migrator]
|
||||
extends = env:esp32_s3_4mb_partition_migrator
|
||||
board = esp32-c3-devkitm-1
|
||||
|
||||
[env:esp32_c3_4mb_partition_migrator_lora]
|
||||
extends = env:esp32_c3_4mb_partition_migrator
|
||||
build_flags =
|
||||
${env:esp32_c3_4mb_partition_migrator.build_flags}
|
||||
-D MESHCORE_MIGRATION_RESUME_OTA=1
|
||||
|
||||
[env:esp32_4mb_partition_migrator]
|
||||
extends = env:esp32_s3_4mb_partition_migrator
|
||||
board = esp32dev
|
||||
|
||||
[env:esp32_4mb_partition_migrator_lora]
|
||||
extends = env:esp32_4mb_partition_migrator
|
||||
build_flags =
|
||||
${env:esp32_4mb_partition_migrator.build_flags}
|
||||
-D MESHCORE_MIGRATION_RESUME_OTA=1
|
||||
@@ -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
|
||||
@@ -894,6 +909,15 @@ lib_deps =
|
||||
ESP32Async/ESPAsyncWebServer @ 3.12.0
|
||||
file://arch/esp32/AsyncElegantOTA
|
||||
|
||||
; LoRa-delivered first stage for an OTA-enabled heltec_v4_repeater. It keeps
|
||||
; that exact old application bootable after the table change, restores its
|
||||
; private identity, and returns to it for the expanded-slot LoRa update.
|
||||
[env:heltec_v4_partition_migrator_lora_repeater]
|
||||
extends = env:heltec_v4_partition_migrator
|
||||
build_flags =
|
||||
${env:heltec_v4_partition_migrator.build_flags}
|
||||
-D MESHCORE_MIGRATION_RESUME_OTA=1
|
||||
|
||||
; Disposable-hardware harness: leaves a ten-minute Wi-Fi OTA window for
|
||||
; installing the production bridge into legacy slot B. This is not a release
|
||||
; profile.
|
||||
|
||||
@@ -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]
|
||||
@@ -81,6 +101,13 @@ lib_deps =
|
||||
ESP32Async/ESPAsyncWebServer @ 3.12.0
|
||||
file://arch/esp32/AsyncElegantOTA
|
||||
|
||||
; LoRa-delivered first stage for an OTA-enabled Xiao_S3_WIO_repeater.
|
||||
[env:xiao_s3_partition_migrator_lora_repeater]
|
||||
extends = env:xiao_s3_partition_migrator
|
||||
build_flags =
|
||||
${env:xiao_s3_partition_migrator.build_flags}
|
||||
-D MESHCORE_MIGRATION_RESUME_OTA=1
|
||||
|
||||
; Disposable-hardware seed. It reproduces a real legacy identity file and
|
||||
; exposes browser OTA without trying to squeeze a current full repeater into
|
||||
; its historical 1.25 MiB app slot.
|
||||
|
||||
Reference in new issue
Block a user