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

Issue 3343003: Add components which is requried to generate a GBB during factory. (Closed)

Created:
10 years, 3 months ago by Tom Wai-Hong Tam
Modified:
9 years, 5 months ago
CC:
chromium-os-reviews_chromium.org, sosa+cc_chromium.org, seano, ericli, petkov+cc_chromium.org, seano+cc_chromium.org, Tammo Spalink
Visibility:
Public.

Description

Add components which is requried to generate a GBB during factory. As the conclusion after discussed with Nick, Bill, and Randall, we need the following components in the component list: 'key_recovery', 'key_root', 'data_bitmap_fv', 'data_display_geometry', 'data_recovery_url'. Using this data can automatically generate a GBB during factory instead of a handcraftied one. The rootkey and recoverykey are used to detect existing keys in the firmware in order to differentiate the same BOM but different keys (dev or pvt keys). TEST=run it on Mario and compare with keys BUG=chrome-os-partner:501 Change-Id: If84686223cf769845e06889463fa2e1b51033d72

Patch Set 1 #

Patch Set 2 : fix typo #

Total comments: 4

Patch Set 3 : filecmp.cmp returns True/False #

Patch Set 4 : Add back print out in mock #

Patch Set 5 : Use GBBUtility #

Patch Set 6 : add back chrontel _not_present #

Patch Set 7 : fix comment #

Total comments: 10

Patch Set 8 : Change return value and remove to_file args #

Total comments: 12

Patch Set 9 : fix bugs #

Total comments: 7

Patch Set 10 : fix bugs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -12 lines) Patch
M client/common_lib/flashrom_util.py View 1 2 3 4 5 6 7 2 chunks +20 lines, -9 lines 0 comments Download
A client/common_lib/gbb_util.py View 5 6 7 8 9 1 chunk +104 lines, -0 lines 0 comments Download
M client/site_tests/hardware_Components/approved_components View 1 1 chunk +5 lines, -0 lines 0 comments Download
M client/site_tests/hardware_Components/hardware_Components.py View 1 2 3 4 5 6 7 8 9 6 chunks +24 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Tom Wai-Hong Tam
10 years, 3 months ago (2010-09-02 00:41:22 UTC) #1
Hung-Te
http://codereview.chromium.org/3343003/diff/3001/4001 File client/common_lib/flashrom_util.py (right): http://codereview.chromium.org/3343003/diff/3001/4001#newcode402 client/common_lib/flashrom_util.py:402: def gbb_utility(self, args='', output_file=''): I think GBB is beyond ...
10 years, 3 months ago (2010-09-02 02:03:49 UTC) #2
Tom Wai-Hong Tam
http://codereview.chromium.org/3343003/diff/3001/4001 File client/common_lib/flashrom_util.py (right): http://codereview.chromium.org/3343003/diff/3001/4001#newcode402 client/common_lib/flashrom_util.py:402: def gbb_utility(self, args='', output_file=''): That's OK. Since I think ...
10 years, 3 months ago (2010-09-02 02:47:41 UTC) #3
Tom Wai-Hong Tam
Now I moved all GBB things to a new library gbb_util.py and made flashrom_util only ...
10 years, 3 months ago (2010-09-02 23:17:17 UTC) #4
Tom Wai-Hong Tam
Please someone takes a look at it. Thanks!
10 years, 3 months ago (2010-09-03 18:25:01 UTC) #5
Hung-Te
http://codereview.chromium.org/3343003/diff/21001/22001 File client/common_lib/flashrom_util.py (right): http://codereview.chromium.org/3343003/diff/21001/22001#newcode500 client/common_lib/flashrom_util.py:500: return utils.system(cmd, ignore_status=True) I think no one cares about ...
10 years, 3 months ago (2010-09-04 00:31:01 UTC) #6
Tom Wai-Hong Tam
http://codereview.chromium.org/3343003/diff/21001/22001 File client/common_lib/flashrom_util.py (right): http://codereview.chromium.org/3343003/diff/21001/22001#newcode500 client/common_lib/flashrom_util.py:500: return utils.system(cmd, ignore_status=True) Done. http://codereview.chromium.org/3343003/diff/21001/22002 File client/common_lib/gbb_util.py (right): http://codereview.chromium.org/3343003/diff/21001/22002#newcode74 ...
10 years, 3 months ago (2010-09-04 01:27:05 UTC) #7
Hung-Te
Please do test it to run properly again :-) http://codereview.chromium.org/3343003/diff/29001/30002 File client/common_lib/gbb_util.py (right): http://codereview.chromium.org/3343003/diff/29001/30002#newcode60 client/common_lib/gbb_util.py:60: ...
10 years, 3 months ago (2010-09-04 02:48:27 UTC) #8
Hung-Te
Just tested this code with Tammo today, and found few bugs in code. http://codereview.chromium.org/3343003/diff/33001/34002 File ...
10 years, 3 months ago (2010-09-06 09:31:35 UTC) #9
Tom Wai-Hong Tam
Sorry. Since I was not in the office. I changed the code through VPN and ...
10 years, 3 months ago (2010-09-06 16:40:45 UTC) #10
Hung-Te
10 years, 3 months ago (2010-09-07 01:41:53 UTC) #11
LGTM

Powered by Google App Engine
This is Rietveld 408576698