ARM: fmap: Align the GBB on a 4K boundary.
A comment in the fmap said that the GBB should be aligned on a 4K boundary,
but the actual layout of the image had it at an offset. This caused some GBB
related utilities like gbb_set_flags.sh (used during FAFT tests) to misbehave
and wipe out other parts of the image, specifically the read only firmware id.
This change fixes things by switching the RO firmware id and the GBB while
keeping everything the same size and all the other sections in place. The
GBB's size isn't a multiple of 4K which is assumed to be ok.
TEST=Built and booted on pit with this change. Ran
/usr/share/vboot/bin/set_gbb_flags.sh and verified that the RO firmware ID was
still intact by rebooting and running crossystem. Before this change the RO
firmware ID would be replaced with all zeroes.
Signed-off-by: Gabe Black <firstname.lastname@example.org>
Reviewed-by: Stefan Reinauer <email@example.com>
Reviewed-by: Randall Spangler <firstname.lastname@example.org>
Commit-Queue: Gabe Black <email@example.com>
Tested-by: Gabe Black <firstname.lastname@example.org>
3 files changed