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

Issue 6594114: saft: update 'flashrom_util' to use new syntax (Closed)

Created:
9 years, 9 months ago by Hung-Te
Modified:
9 years, 7 months ago
Reviewers:
vb
CC:
chromium-os-reviews_chromium.org, Randall Spangler, josephsih1
Visibility:
Public.

Description

saft: update 'flashrom_util' to use new syntax Using 'iotools' to control flashrom target is obsoleted. The new parameter provided by 'flashrom' utility is better and prevents potential race condition, so all scripts using flashrom should apply the new syntax. BUG=chromium-os:11339 TEST=passed SAFT on CR48 (by josephsih) Change-Id: Ia5f7d7ea3bc087b4506a101407a21087b4e278b7 Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=b25ef92

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -8 lines) Patch
M saft_flashrom_util.py View 3 chunks +5 lines, -8 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Hung-Te
9 years, 9 months ago (2011-03-02 07:41:43 UTC) #1
vb
LGTM in general, with a comment below and a few nits: In the cl description, ...
9 years, 9 months ago (2011-03-02 17:50:08 UTC) #2
Hung-Te
9 years, 9 months ago (2011-03-03 06:52:29 UTC) #3
On 2011/03/02 17:50:08, vb wrote:
> In the cl description, please include reference to a document describing
> flashrom command line options (I hope one exists :P).
   Unfortunately no. Upstream flashrom does not support such command,
   and that's only in chromiumos branch, without manual...

> Do we need need to worry about the case when SAFT running on a platform with
> older flashrom?
   No, because this was supported long long ago, for more than three months (or
even half a year).

http://codereview.chromium.org/6594114/diff/1/saft_flashrom_util.py
File saft_flashrom_util.py (right):

http://codereview.chromium.org/6594114/diff/1/saft_flashrom_util.py#newcode226
saft_flashrom_util.py:226: self._target_command = '-p internal:bus=spi'
On 2011/03/02 17:50:08, vb wrote:
> why not to make it 'flashrom -p internal:bus=spi' - just a thought.
 Because I'm not sure if SAFT will need to deal with EC in the future, so trying
to keep max flexibility here.

Powered by Google App Engine
This is Rietveld 408576698