Hi coreboot folks, We'd like to propose a way for newer RW firmware to run safely on top of older, write-protected RO firmware.
Once a board ships, its RO bootblock and verstage are frozen for the life of the device, while RW can keep picking up updates from main for years. Over that kind of version gap, four things RW assumes about RO stop holding: the vboot workbuf and legacy stage formats change, the pre-RAM CAR layout and timer setup move around, vendor binaries like the Intel ME and AMD PSP firmware outgrow fixed slots or shift handoff buffers, and the frozen RO flash map locks down RW partition layouts. The proposal has two parts. For new boards, RO and RW share a small forward-compatible contract (an append-only vboot workbuf, a memory layout record at the top of CAR, the timer frequency passed at runtime, and a signed RW flash map for reshaping RW-only regions when RO leaves headroom), so future RW updates don't need per-version shims. For boards that have already shipped, default-off Kconfig options add compatibility shims in RW only (plus disk-backed Extended CBFS when a board outgrows SPI flash). On the 19 Intel, AMD, MediaTek, and Qualcomm boards we tested on hardware, the shims cost about 4-6 KiB in romstage and 1-2 ms of boot time. This should help anyone shipping RW updates from main on write-protected hardware, including Chromebooks, Linux laptops, embedded and industrial systems, and ODMs, without forking a vendor branch or asking users to disable write protect. Design doc: RO/RW Backward Compatibility Architecture <https://docs.google.com/document/d/1anORPwxT865B-bWZWjfGpJcOEdHjNhw2ha35M8mgR6E/preview?tab=t.0#heading=h.jdsf6reh3mro> coreboot base patches: ro-rw-compat-base (12 CLs) <https://review.coreboot.org/q/topic:%22ro-rw-compat-base%22> coreboot board patches: ro-rw-compat-boards (19 CLs) <https://review.coreboot.org/q/topic:%22ro-rw-compat-boards%22> vboot_reference patches: ro-rw-compat-vboot (7 CLs) <https://chromium-review.googlesource.com/q/topic:%22ro-rw-compat-vboot%22> The design doc covers the details and the alternatives we considered, and the patches are up for review on Gerrit. Thanks, Jon and Karthik
_______________________________________________ coreboot mailing list -- [email protected] To unsubscribe send an email to [email protected]

