Repository navigation
loader: add ota - #424
Merged
Merged
loader: add ota#424
Conversation
gibix
marked this pull request as ready for review
May 14, 2026 10:25
gibix
force-pushed
the
feat/ota
branch
2 times, most recently
from
June 15, 2026 09:28
05e8558 to
6d33c9d
Compare
andreagilardoni
force-pushed
the
feat/ota
branch
3 times, most recently
from
July 21, 2026 13:07
f39142e to
d756b49
Compare
|
This PR needs to be merged on top of #550 |
andreagilardoni
force-pushed
the
feat/ota
branch
9 times, most recently
from
July 28, 2026 12:29
c1d6b90 to
c20d6e5
Compare
This comment was marked as outdated.
This comment was marked as outdated.
andreagilardoni
force-pushed
the
feat/ota
branch
2 times, most recently
from
September 29, 2026 13:20
c2e8646 to
b8712b8
Compare
pennam
previously approved these changes
Sep 29, 2026
pillo79
requested changes
Sep 29, 2026
Comment on lines
+15
to
+17
| int ota_sketch_ready(); | ||
| int ota_sketch_start(); | ||
|
|
There was a problem hiding this comment.
Please document what these functions do and how they are supposed to be used.
There was a problem hiding this comment.
Indeed, but this fix got lost in the many pushes - the ota.h file is back to being uncommented 🙁
There was a problem hiding this comment.
i see the comments in the ota.h file, can you doublecheck?
andreagilardoni
force-pushed
the
feat/ota
branch
from
September 30, 2026 06:12
b8712b8 to
32cdd72
Compare
andreagilardoni
force-pushed
the
feat/ota
branch
from
September 30, 2026 06:16
32cdd72 to
66e1451
Compare
pennam
force-pushed
the
feat/ota
branch
2 times, most recently
from
September 30, 2026 07:12
4b7e6c2 to
bde73ef
Compare
andreagilardoni
force-pushed
the
feat/ota
branch
from
September 30, 2026 07:51
bde73ef to
91ed2ec
Compare
gibix
force-pushed
the
feat/ota
branch
3 times, most recently
from
September 30, 2026 08:55
f9a5105 to
c0748d4
Compare
On boot, install /ota:/UPDATE_SKETCH.BIN into the user_sketch partition when the file is present. Validates the inner sketch header and bounds, and keeps UPDATE_SKETCH.BIN on post-erase failure so the next boot can retry. Signed-off-by: Gilberto Conti <g.conti@arduino.cc>
enable ota support for tested boards Signed-off-by: Andrea Gilardoni <a.gilardoni@arduino.cc>
extend the ota api to allow performing loader updates by means of bootloader
pennam
previously approved these changes
Sep 30, 2026
Signed-off-by: Gilberto Conti <g.conti@arduino.cc>
Built
|
| Artifact | Board | Core | Tests | RAM | Sketches | Warnings | Errors |
|---|---|---|---|---|---|---|---|
✅ zephyr_contrib |
ek_ra8d1
| 1 🏷️ | ✅ |
12.0% |
2 | - | - |
frdm_mcxn947
| 7 🏷️ | ✅ |
53.4% |
2 | - | - | |
frdm_rw612
| 3 🏷️ | ✅ |
76.5% |
2 | - | - | |
✅* zephyr_main |
giga
| 11 🏷️ | ✅* |
39.6% |
78 | 2 | - |
nano33ble
| 6 🏷️ | ✅ |
78.8% |
42 | - | - | |
nano_connect
| 4 🏷️ | ✅ |
48.5% |
32 | - | - | |
nano_matter
| 4 🏷️ | ✅ |
|
22 | - | - | |
nicla_sense
| 4 🏷️ | ✅ |
|
18 | - | - | |
nicla_vision
| 11 🏷️ | ✅ |
38.7% |
62 | - | - | |
opta
| 11 🏷️ | ✅ |
42.3% |
76 | - | - | |
portentac33
| 6 🏷️ | ✅ |
|
72 | - | - | |
portentah7
| 10 🏷️ | ✅* |
40.7% |
94 | 2 | - | |
✅ zephyr_unoq |
unoq
| 2 🏷️ | ✅ |
43.5% |
56 | - | - |
ventunoq
| 5 🏷️ | ✅ |
23.7% |
48 | - | - |
Legend
Board Test Status description 🔥 🔥 Test run failed to complete. ❌ 🔴 Test completed with unexpected errors. ⁉️ ⁉️ Test was expected to fail but passed; exception entry is outdated. ✔️* 🚫 Test completed with errors, but all are known/expected. ✅* 🟡 Test completed with some warnings; no errors detected. ✅ 🟢 Test passed successfully, with no warnings or errors. 🌑 🌑 Test was skipped.
pennam
approved these changes
Sep 30, 2026
|
Memory usage change @ 8c83036
Click for full report table
Click for full report CSV |
pillo79
approved these changes
Oct 1, 2026
pillo79
left a comment
There was a problem hiding this comment.
Wow, GH glitch, sorry did not notice the message!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds over-the-air firmware update support with two paths: sketch-only (raw .elf-zsk.bin staged on QSPI, installed by the Zephyr loader on next boot) and full (headerless -bundle.bin containing loader + sketch, written to the FAT-formatted OTA partition and applied by the platform bootloader after reboot). The bundle omits the .ota header because the bootloader validates the first word as a legal ARM stack pointer. Implementation lives under loader/ota/ behind CONFIG_OTA, exports the update API as LLEXT symbols, and includes a pre-reboot integrity check. Four examples (Ethernet/WiFi × sketch/full), CI-gated to supported boards, packaged in zephyr_main only.