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.

BUG=chromium:236347
TEST=manually: tested with peach_pit depthcharge firmware.

Change-Id: Ia6b6b11718140dbbb214b3df2426f254a08a890f
Reviewed-on: https://gerrit.chromium.org/gerrit/59363
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Vic Yang <victoryang@chromium.org>
Commit-Queue: Hung-Te Lin <hungte@google.com>
1 file changed