cbfstool: MediaTek: Hash bootblock.bin for CBFS_VERIFICATION

Hardware / Coreboot - Yu-Ping Wu [chromium.org] - 5 May 2022 14:18 UTC

MediaTek's bootROM expects a SHA256 of the bootblock data at the end of bootblock.bin (see util/mtkheader/gen-bl-img.py). To support CBFS
verification (CONFIG_CBFS_VERIFICATION) on MediaTek platforms, we need to re-generate the hash whenever a file is added to or removed from CBFS.

BUG=b:229670703 TEST=sudo emerge coreboot-utils TEST=emerge-corsola coreboot chromeos-bootimage TEST=Kingler booted with CONFIG_CBFS_VERIFICATION=y

Change-Id: Iaf5900df605899af699b25266e87b5d557c4e830

f1a8dde147 cbfstool: MediaTek: Hash bootblock.bin for CBFS_VERIFICATION
util/cbfstool/platform_fixups.c | 96 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 96 insertions(+)

Upstream: review.coreboot.org


  • Share