← Back to the chapter · Previous detail · Next detail →
Technical detail · Safe Over-the-Air Updates
Target-specific confirmation records
MCUboot is a bootloader used by some devices to verify and start firmware images, including update candidates. An OTA partition is a reserved region of device storage that can hold an update image. Swap state records the bootloader’s progress when it exchanges or selects images, so it can recover after interruption. A systemd unit describes a Linux service and how it starts or runs. Record these details along with a health test, since a boot alone cannot prove the service works.
Start with a lab fixture that can offer the right package, an incompatible package, a corrupt package, and an interrupted download. For ESP-IDF, record OTA partition slots, esp_ota_mark_app_valid_cancel_rollback, image size, project version, secure boot or signing choice, and the health signal used before confirmation. For MCUboot-based Zephyr or Nordic builds, record slot layout, image version, signing key identity, boot status, swap state, and how the firmware confirms the new image. For Linux gateways, record the systemd unit, package source, checksum, service health check, and rollback command.