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

Issue 3026018: Add script for re-signing final firmware images with the correct keys. (Closed)

Created:
10 years, 5 months ago by gauravsh
Modified:
9 years, 6 months ago
Reviewers:
v.b, vb
CC:
chromium-os-reviews_chromium.org, Randall Spangler, gauravsh, Luigi Semenzato, Bill Richardson
Visibility:
Public.

Description

Add script for re-signing final firmware images with the correct keys. Also add a script for splitting a firmware image into component firmware data, vblocks and the GBB. Note: The script uses fmap_decode, a utility to parse flashmap of a firmware image, and a part of the flashmap project: http://code.google.com/p/flashmap/ BUG=3496 TEST=Tested with newer builds of firmware images with flashmaps enabled. Steps to verify: 1) Use script to re-sign an existing image with a new set of keys. 2) Use unpack_firmwarefd.sh to get individual firmware data and vblocks. 3) Use vbutil_firmware with the new keys. Verification should succeed with the newer keys but fail with the older ones.

Patch Set 1 #

Patch Set 2 : . #

Total comments: 3

Patch Set 3 : Don't use hardcoded offsets for parsing fmap_decode output #

Total comments: 6

Patch Set 4 : Add a comment describing how the script operates. #

Patch Set 5 : Review fixes #

Total comments: 2

Patch Set 6 : nit fixes #

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -4 lines) Patch
M firmware/version.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M scripts/image_signing/cros_resign_image_standalone.sh View 2 chunks +3 lines, -3 lines 0 comments Download
A scripts/image_signing/resign_firmwarefd.sh View 1 2 3 4 5 6 1 chunk +136 lines, -0 lines 0 comments Download
A scripts/image_signing/unpack_firmwarefd.sh View 1 chunk +56 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
gauravsh
10 years, 5 months ago (2010-07-22 01:51:45 UTC) #1
gauravsh
ping?
10 years, 5 months ago (2010-07-23 17:31:35 UTC) #2
gauravsh
On Fri, Jul 23, 2010 at 11:30 AM, Vadim Bendebury (вб) <vbendeb@google.com> wrote: > On ...
10 years, 5 months ago (2010-07-23 18:35:08 UTC) #3
gauravsh
10 years, 5 months ago (2010-07-23 22:28:10 UTC) #4
gauravsh
10 years, 5 months ago (2010-07-27 00:04:44 UTC) #5
vb
Gaurav, sorry for the delay. Some comments are duplicated as they seemed to be lost, ...
10 years, 5 months ago (2010-07-27 00:13:26 UTC) #6
gauravsh
On Mon, Jul 26, 2010 at 5:13 PM, <vbendeb@chromium.org> wrote: > Gaurav, sorry for the ...
10 years, 5 months ago (2010-07-27 01:28:19 UTC) #7
vb
10 years, 5 months ago (2010-07-27 17:40:15 UTC) #8
LGTM

Thank you for addressing my concerns. A few more nits, and you were right, curly
brackets are just fine in this case.

http://codereview.chromium.org/3026018/diff/15001/14004
File scripts/image_signing/resign_firmwarefd.sh (right):

http://codereview.chromium.org/3026018/diff/15001/14004#newcode30
scripts/image_signing/resign_firmwarefd.sh:30: # area_offset="0x001c0000"
area_size="0x00040000" area_name="Boot Stub" area_flags_raw="0x01"
area_flags="static"
please wrap the long lines.

http://codereview.chromium.org/3026018/diff/15001/14004#newcode50
scripts/image_signing/resign_firmwarefd.sh:50: "kernel_subkey"
a space got lost in transition

Powered by Google App Engine
This is Rietveld 408576698