Step 29 of 36 · Manufacturing and field
Firmware updates in the field
Field updates are your only way to fix shipped units, and a failed one can kill a device. Decide the update design early.
A field update is the one way to fix a unit after it leaves the factory. It is also the fastest way to disable every unit at once. A device that loses power mid-update and cannot recover is a return, a service visit or a dead product.
The ability to update safely is decided at hardware design time: enough memory for a second image or a recovery loader, a bootloader that verifies signatures and falls back to the last good image, and a plan for devices that stay offline for a year. Ask for these at architecture review, before the memory is sized.
Then manage the matrix. Each release must be tested on every hardware revision still in the field and from every version customers actually run.
Try this week
- Cut power to a test unit at random points during an update, many times, and confirm it always recovers.
- List hardware revisions and firmware versions in the field and check which combinations your release tests cover.
Signs you've got it
- No update can leave a device unrecoverable, and you have test evidence of it.
- Release testing covers every fielded hardware revision and the oldest supported starting version.
Resources
- paperRFC 9019: A Firmware Update Architecture for Internet of Things (opens in a new tab)Brendan Moran, Hannes Tschofenig, David Brown and Milosch Meriac
- articleDevice Firmware Update Cookbook (opens in a new tab)François Baldassari
- paperRFC 8240: Report from the Internet of Things Software Update (IoTSU) Workshop 2016 (opens in a new tab)Hannes Tschofenig and Stephen Farrell
- guideSP 800-193: Platform Firmware Resiliency Guidelines (opens in a new tab)NIST