fmap: Support images with multiple FMAP signatures.

Firmware images reading itself and searching for FMAP structure will have FMAP
signature in execution code, and cause decode_fmap to locate incorrect starting
address. To fix that, always check known version numbers.

TEST=manually: tested with peach_pit depthcharge firmware.

Change-Id: Ia6b6b11718140dbbb214b3df2426f254a08a890f
Tested-by: Hung-Te Lin <>
Reviewed-by: Vic Yang <>
Commit-Queue: Hung-Te Lin <>
1 file changed