Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Issue 3328008: Make SAFT use layout retrieved from the BIOS image. (Closed)

Created:
10 years, 3 months ago by vb
Modified:
9 years, 6 months ago
Reviewers:
Hung-Te
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

Make 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -327 lines) Patch
M saft/flashrom_handler.py View 6 chunks +8 lines, -17 lines 0 comments Download
M saft/saft_utility.py View 1 chunk +1 line, -0 lines 0 comments Download
M saft/test_kernel_handler.py View 1 chunk +1 line, -2 lines 0 comments Download
M x86-generic/flashrom_util.py View 1 2 5 chunks +187 lines, -308 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
vb
10 years, 3 months ago (2010-09-05 22:23:59 UTC) #1
Hung-Te
LGTM except some comment / coding style minor suggestions. P.S: one more thing - since ...
10 years, 3 months ago (2010-09-06 14:13:28 UTC) #2
vb
On 2010/09/06 14:13:28, Hung-Te wrote: > LGTM except some comment / coding style minor suggestions. ...
10 years, 3 months ago (2010-09-06 19:35:03 UTC) #3
Hung-Te
10 years, 3 months ago (2010-09-07 01:29:44 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698