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.
- C
- QEMU
- RAUC
- U-Boot
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
