
Attention is currently required from: Aaron Durbin, Furquan Shaikh, Julius Werner. Hung-Te Lin has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/37262?usp=email ) Change subject: util: cbfstool: Add '%<alignment>' in flashmap descriptor ...................................................................... Patch Set 13: (1 comment) File util/cbfstool/default.fmd: https://review.coreboot.org/c/coreboot/+/37262/comment/3cbc7b74_c4696d80 : PS13, Line 18: %0
Do we really want to not enforce alignment for CBFS? After all we do have the -a flag for cbfstool w […] When I try to build a image (Minimal x86 fake board):
# name start end size
FMAP 00000000 00000200 00000200
COREBOOT 00000200 00800000 007ffe00
BIOS 00000000 00800000 00800000
And emulation image for QEMU AArch64 (virt): ```` # name start end size -entire flash- 00000000 00800000 00800000 COREBOOT 00020200 00800000 007dfe00 FMAP 00020000 00020200 00000200 00800000 00020000 ff820000 // gap in -entire flash- BIOS 00000000 00800000 00800000 00020000 00000000 fffe0000 // gap in -entire flash- BOOTBLOCK 00000000 00020000 00020000 ```` So COREBOOT is usually not aligned, due to FMAP is not aligned. To fix that, we have to change the FMAP_SIZE calculation to be aligned, that also takes more space (from 512 bytes to 4K). -- To view, visit https://review.coreboot.org/c/coreboot/+/37262?usp=email To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings Gerrit-Project: coreboot Gerrit-Branch: master Gerrit-Change-Id: I26b394590c28667a4afcd521c7caa2009b5b98a9 Gerrit-Change-Number: 37262 Gerrit-PatchSet: 13 Gerrit-Owner: Hung-Te Lin <hungte@chromium.org> Gerrit-Reviewer: Arthur Heymans <arthur@aheymans.xyz> Gerrit-Reviewer: Furquan Shaikh <furquan.m.shaikh@gmail.com> Gerrit-Reviewer: Hung-Te Lin <hungte@chromium.org> Gerrit-Reviewer: Julius Werner <jwerner@chromium.org> Gerrit-Reviewer: Yu-Ping Wu <yupingso@google.com> Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org> Gerrit-CC: Aaron Durbin <adurbin@chromium.org> Gerrit-CC: Paul Menzel <paulepanter@mailbox.org> Gerrit-CC: Wim Vervoorn <wvervoorn@eltan.com> Gerrit-Attention: Furquan Shaikh <furquan.m.shaikh@gmail.com> Gerrit-Attention: Julius Werner <jwerner@chromium.org> Gerrit-Attention: Aaron Durbin <adurbin@chromium.org> Gerrit-Comment-Date: Thu, 15 Jun 2023 05:24:09 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: Julius Werner <jwerner@chromium.org> Gerrit-MessageType: comment