Attention is currently required from: Karthik Ramasubramanian, Shelley Chen.

Keith Short uploaded patch set #2 to this change.

View Change

util/cbfstool: Fallback to linear search

When the image size is a power of 2, cbfstool attempts to find the FMAP
region using a binary search. However, if the FMAP location isn't
aligned on a 16 byte boundary the binary search fails.

Fall back to linear search if binary search fails.

TEST=make -C util/cbfstool

Change-Id: Ifa9f6f57d1c59114fd1d4ace2d82b62e953cf6a8
Signed-off-by: Keith Short <keithshort@chromium.org>
---
M util/cbfstool/flashmap/fmap.c
1 file changed, 6 insertions(+), 3 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/08/80308/2

To view, visit change 80308. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Ifa9f6f57d1c59114fd1d4ace2d82b62e953cf6a8
Gerrit-Change-Number: 80308
Gerrit-PatchSet: 2
Gerrit-Owner: Keith Short <keithshort@chromium.org>
Gerrit-Reviewer: Karthik Ramasubramanian <kramasub@google.com>
Gerrit-Reviewer: Shelley Chen <shchen@google.com>
Gerrit-Attention: Shelley Chen <shchen@google.com>
Gerrit-Attention: Karthik Ramasubramanian <kramasub@google.com>
Gerrit-MessageType: newpatchset