Why the Delta Lands in the Inactive Bank: An ADR on Recoverability When the Update Path Fails
We decided that every ECU receiving a differential update rebuilds the new image in an inactive flash bank, using the running bank as the delta source. We rejected in-place delta patching with a resumable journal. That option was cheaper and not obviously worse. This record explains why the cheaper option still lost and what would have reversed the outcome.
The option we turned down
In-place patching deserves a fair hearing, because on paper it does everything the regulators and the security framework ask of it. Modern delta generators can order block operations so that no write lands on a source region that has not been read yet. Combined with a journal in a small reserved sector, the patch can resume after a power cut at the exact block where it stopped. Uptane's metadata chain still checks the final image hash against what the Director and Image repositories signed, so a tampered or corrupted result gets rejected before the ECU runs it. The saving is real. Across the controller population in scope it cuts flash by an estimated 15 to 20 percent, and on body and comfort controllers that difference decides the part number.
Where it breaks
The weakness only shows up once you ask what the ECU can still boot when the update goes wrong. If the journal survives but the reconstructed image fails verification, because of a bit error in the delta transfer, a source image that drifted from the version the server assumed, or a bug in the patcher itself, the old image is already partly overwritten and no known-good copy is left on the device. Recovery then depends on the primary or the central gateway sending a full image. That is the same component that streamed the bad delta and the one most likely to be degraded when the campaign failed. Uptane does its job here: it refuses the bad image. But refusing a bad image is not the same as keeping the vehicle drivable, and the in-place design ties the ECU's recovery to the health of the very node it would need to recover from.
What we chose and how it fails safe
With dual banks, the delta is applied into the inactive bank while the active bank stays untouched and keeps running. The bootloader switches the boot pointer only after the full image hash matches the signed target metadata. After the switch, the new application has to report a boot confirmation within 90 s. If that confirmation does not arrive, the bootloader goes back to the previous bank on the next reset without contacting anyone. That turns the recovery obligation in the software update and cybersecurity type-approval regulations into a property of the ECU itself, rather than a process that depends on the gateway, the backend and a cellular link all working at the same moment. A failed campaign then leaves behind a vehicle on its old software with an error report, not a vehicle that needs a tow.
The condition that would have reversed it
The rule we take into the freeze is this: an ECU may use in-place delta only if it carries no safety or availability function the driver depends on, its bootloader can enter reflash mode over the diagnostic bus without a working application, and the full fallback image sits in storage whose failure is independent of whatever interrupted the update, and because most current gateway designs keep that image on the gateway itself and so fail the third test, the decision still open is whether to pay for a second bank in each controller or for a second, independent copy of the fallback images outside the gateway.
Technical FAQ: Doesn't Uptane already cover a corrupted delta, which would make the second bank redundant?
Uptane covers integrity and authenticity: the ECU will never run an image the repositories did not sign. It says nothing about which image the ECU boots after it rejects one. The second bank answers that availability question locally, which is why the two complement each other and neither replaces the other.