Fix bootloader version discovery and tolerate legacy OTA probes

This commit is contained in:
mikecarper committed 2026-09-08 16:17:43 -07:00
1 parent aab46c7c84
commit e5f8eb46a3
12 files changed
+723 -36

No files matched your search

+20
View File
@@ -4028,6 +4028,26 @@ This setting is used only by `bridge.format wrapped`; raw mode ignores it.
#### View the bootloader version (nRF52 only)
**Usage:** `get bootloader.ver`
Applies to every nRF52 board/role that exposes this getter, including Companion,
repeater, and room-server firmware. It reads the installed bootloader region
selected by the MBR/UICR boot address and bounded by the chip's flash geometry;
it does not search application firmware or staged update files.
The reader preserves a complete Adafruit/UF2 version string, including OTAFIX,
preview, and vendor/build suffixes. If that string is absent or ambiguous, it
uses the existing whole-image CRC and unique BLMF/BLM2 validation to read the
embedded OTAFIX version (for example, `> OTAFIX2.4.6`). Some current release
images, including MeshTower V2 SD 2.4.6, omit the UF2 text entirely. As a last
fallback, the Adafruit core's startup-captured version is explicitly labelled
`(base)`; it cannot identify an OTAFIX/fork revision.
`unknown` remains possible for a bootloader exposing none of these version
sources, invalid geometry/vectors, or unresolved ambiguity. There is no universal
version field shared by every third-party bootloader. This is diagnostic only:
displaying a version neither grants OTA capability nor bypasses install checks.
The fix is in MeshCore application firmware; installing another bootloader alone
does not update an older application's version reader.
---
#### View power management support