DescriptionMake SAFT use layout retrieved from the BIOS image.
This CL modifies x86-generic/fashrom_util.py to use the
mosys tool to retrieve the flashrom memory map from the
BIOS image and use it unless explicitly overridden by the
caller.
flashrom_handler.py is being modified not to pass layout
on most flash read/write operations. Only in case the whole
flash write is requested - a custom map is used.
A cllass (LayoutScraper) is introduced in flashrom_util.py
to retrieve the text map from the image (using mosys) and
convert it into a layout dictionary. Default maps, ec
support and layout compiler are being deleted from this
file, as it is not used by any other package, and SAFT does
not require these features. The upcoming CL will move
flashrom_util.py into saft subdirectory.
Change-Id: Ifcdc59e4c2567b2d815de9f64fb41c30f0f83c97
BUG=chrome-os-partner:920
TEST=manual. Ran SAFT on a target, it still fails complaining
about wrong BINF values when both firmware images are
corrupted. Once this issue is fixed by the vendor full log
will be posted here.
Patch Set 1 : Make SAFT use layout retrieved from the BIOS image. #
Total comments: 8
Patch Set 2 : Addressed review comments. #Patch Set 3 : Cosmetic changes before committing. #
Messages
Total messages: 4 (0 generated)
|