How mabbott2011/skl-ota works
SKL-OTA is an ESP32 Arduino library for signed, rollback-safe firmware updates, plus a host-side release tool. The main device workflow checks a manifest, verifies the signed release, waits for an install request, streams and validates an image into the alternate OTA slot, then relies on a self-test to confirm the new build or trigger rollback. The graph also preserves release signing and compressed-image support. Source excerpts are partial; README statements support documented behavior where implementation details were not shown.
Main entry points: SKLOta.cpp Image download · SKLOta.h OTA API · ota_release.py Keygen and signing · SKLOtaInflate.h Zlib inflater
Components 18
Release preparation
- Keygen and signing
tools/ota_release.py - Web host
Device update
- Running firmware
- OTA API
src/SKLOta.h - Check scheduler
src/SKLOta.cpp - Manifest check
src/SKLOta.cpp - Signature gate
src/SKLOta.cpp - Install task
src/SKLOta.cpp - Image download
src/SKLOta.cpp - Zlib inflater
src/SKLOtaInflate.h - Hash verification
src/SKLOta.cpp - OTA slot writer
src/SKLOta.cpp - Self-test
src/SKLOta.cpp - Result persistence
src/SKLOta.cpp - Status callbacks
src/SKLOta.cpp
ESP32 platform
- ESP32 bootloader
- A/B app slots
Other components
- Developer
Connections 23
- Developer → Keygen and signing: prepares release
README.md - Keygen and signing → Web host: publishes files
README.md - Developer → Running firmware: configures API
- Running firmware → OTA API: requests checks
src/SKLOta.h - Running firmware → OTA API: requests installs
src/SKLOta.h - Check scheduler → Manifest check: starts checks
src/SKLOta.cpp - OTA API → Check scheduler: queues requests
src/SKLOta.cpp - Manifest check → Web host: fetches manifest
README.md - Manifest check → Signature gate: checks release
src/SKLOta.cpp - Signature gate → Install task: offers release
README.md - Install task → Image download: starts download
src/SKLOta.cpp - Image download → Web host: fetches image
README.md - Image download → Zlib inflater: inflates stream
README.md - Image download → OTA slot writer: writes image
src/SKLOta.cpp - OTA slot writer → Hash verification: hashes image
src/SKLOta.cpp - Hash verification → A/B app slots: validates image
src/SKLOta.cpp - OTA slot writer → ESP32 bootloader: selects slot
src/SKLOta.cpp - ESP32 bootloader → Running firmware: boots new build
README.md - Running firmware → Self-test: runs health check
- Self-test → ESP32 bootloader: marks valid or rolls back
README.md - Self-test → Result persistence: saves outcome
src/SKLOta.cpp - Check scheduler → Status callbacks: delivers status
src/SKLOta.cpp - Install task → Status callbacks: posts log
src/SKLOta.cpp