Back to projects
Solo project

Firmware Update Tester

An update can leave an embedded device unable to boot or run its application. I built a test harness around an ARM64 Linux guest to see whether a signed A/B update can recover automatically and keep persistent data. The CLI records which slot booted, whether the app responded, and what happened to saved data.

12 interruption trials preserved persistent dataAll 35 supported Apple Silicon trials and 16 hosted Linux trials passed in QEMU.
  • C
  • QEMU
  • RAUC
  • U-Boot
A signed release installs to slot B but fails its application check. After three failed boots, U-Boot returns to healthy slot A and the tester verifies persistent data. Open video · Open screenshot

How automatic rollback works

RAUC verifies a signed bundle and writes the inactive slot. U-Boot tracks attempts in persistent storage. A C health service confirms the new slot only after the application responds and the data checks pass. If the app fails, reboots exhaust the new slot's attempts and U-Boot selects the previous release.

To reproduce the demo, install QEMU and run ./firmware-test prepare to download and verify the reference fixtures. Then run ./firmware-test demo rollback. The release includes the fixtures, checksum, and build instructions.

Implementation references

Cutting an install at known phases

Interrupted installs are a separate test. The controller uses RAUC progress and evidence of disk writes to cut QEMU before, during, or after installation. It reopens the same disk and verifies the booted slot, release, application health, and persistent data.

Persistent data survived all 12 interruption trials. The v0.2.0 suite passed all 35 supported trials on Apple Silicon and 16 hosted Linux trials. The tests exercise virtual recovery. Physical power-loss behavior and hardware-in-the-loop validation require hardware tests.

Interruption trials preserved data
12 / 12
Supported Apple Silicon QEMU trials
35 passed
Hosted Linux integration trials
16 passed
Generated validation report showing a passed rollback trial and the final healthy slot A boot
The CLI turns its JSON results into an HTML report with checks for each trial. · Open full-size image