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

Issue 3822002: make_dev_firmware: new script to change firmware to dev key (Closed)

Created:
10 years, 2 months ago by Hung-Te
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, Randall Spangler, gauravsh, Luigi Semenzato, Bill Richardson, vb
Visibility:
Public.

Description

make_dev_firmware: new script to change firmware to dev key The make_dev_firmware.sh is made for devinstall shim to change firmware rootkey/HWID/BMPFV smoothly. - HWID will be changed to "$ORIGINAL_FWID DEV" (no change if already postfixed with DEV) - rootkey/recoverykey will be changed by keyset from --keys - FVMAIN/FVMAINB will be resigned by keyset from --keys - BMPFV will be changed to anything assigned by --bmpfv If --from and --to are omitted, the system firmware will be changed. A new ebuild is be created to put all resources (bmpfv and keyset) into devinstall shim (ref: http://codereview.chromium.org/3776003) BUG=chrome-os-partner:1276 TEST=sudo ./make_dev_firmware.sh --from input_bios.bin --to output_bios.in \ --keys ../../tests/devkeys --bmpfv some_bmpfv.bin HWID is changed from "XXX MARIO EVT DDDD" to "XXX MARIO EVT DDDD DEV". System can then boot a USB signed with devkey without developer mode. Change-Id: Id80126495dcbf4d993a4372af645580cd4b60ca6 Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=3bdfc46

Patch Set 1 #

Patch Set 2 : improve compatibility on device and better user response #

Patch Set 3 : expose verbose messages of flashrom in debug mode #

Patch Set 4 : fix typo and refine comments/style #

Total comments: 15

Patch Set 5 : Refine by reviewer's comments #

Patch Set 6 : add todo of firmware verification #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -1 line) Patch
M scripts/image_signing/common.sh View 1 chunk +1 line, -1 line 0 comments Download
A scripts/image_signing/make_dev_firmware.sh View 1 2 3 4 5 1 chunk +231 lines, -0 lines 9 comments Download

Messages

Total messages: 12 (0 generated)
Hung-Te
10 years, 2 months ago (2010-10-14 09:04:03 UTC) #1
Hung-Te
randall: please confirm if the behavior is compliant to what you expected gauravsh: please review ...
10 years, 2 months ago (2010-10-14 09:05:31 UTC) #2
Bill Richardson
Some comments. http://codereview.chromium.org/3822002/diff/11001/12002 File scripts/image_signing/make_dev_firmware.sh (right): http://codereview.chromium.org/3822002/diff/11001/12002#newcode98 scripts/image_signing/make_dev_firmware.sh:98: # should we also consider {GUID} as ...
10 years, 2 months ago (2010-10-14 16:52:55 UTC) #3
v.b
Hung-Te, looks good, just a few comments to your discretion. Also, it would be great ...
10 years, 2 months ago (2010-10-14 17:28:18 UTC) #4
Hung-Te
Thanks for your review. Here's the revised version. http://codereview.chromium.org/3822002/diff/11001/12002 File scripts/image_signing/make_dev_firmware.sh (right): http://codereview.chromium.org/3822002/diff/11001/12002#newcode49 scripts/image_signing/make_dev_firmware.sh:49: # ...
10 years, 2 months ago (2010-10-14 17:47:06 UTC) #5
Bill Richardson
LGTM, with one comment. http://codereview.chromium.org/3822002/diff/11001/12002 File scripts/image_signing/make_dev_firmware.sh (right): http://codereview.chromium.org/3822002/diff/11001/12002#newcode220 scripts/image_signing/make_dev_firmware.sh:220: We can make this a ...
10 years, 2 months ago (2010-10-14 18:11:19 UTC) #6
v.b
LGTM thank you for addressing my concerns. On 2010/10/14 17:47:06, Hung-Te wrote: > Thanks for ...
10 years, 2 months ago (2010-10-14 18:14:20 UTC) #7
gauravsh
lgtm My main comment is about clearly demarcating this script from the other signing and ...
10 years, 2 months ago (2010-10-14 19:21:07 UTC) #8
Randall Spangler
LGTM http://codereview.chromium.org/3822002/diff/17001/18002 File scripts/image_signing/make_dev_firmware.sh (right): http://codereview.chromium.org/3822002/diff/17001/18002#newcode17 scripts/image_signing/make_dev_firmware.sh:17: DEFINE_string from "" "Path of input file (empty ...
10 years, 2 months ago (2010-10-14 19:46:22 UTC) #9
Hung-Te
Yes, because I thought "live firmware" is more natural than using the technical term "EEPROM". ...
10 years, 2 months ago (2010-10-14 23:45:29 UTC) #10
Hung-Te
http://codereview.chromium.org/3822002/diff/17001/18002 File scripts/image_signing/make_dev_firmware.sh (right): http://codereview.chromium.org/3822002/diff/17001/18002#newcode165 scripts/image_signing/make_dev_firmware.sh:165: # valid, so that we can know both they ...
10 years, 2 months ago (2010-10-14 23:52:35 UTC) #11
Hung-Te
10 years, 2 months ago (2010-10-15 00:28:52 UTC) #12
http://codereview.chromium.org/3822002/diff/17001/18002
File scripts/image_signing/make_dev_firmware.sh (right):

http://codereview.chromium.org/3822002/diff/17001/18002#newcode1
scripts/image_signing/make_dev_firmware.sh:1: #!/bin/sh
Just want to comment, this script can run on a live system but it also works
fine on the host machine to process a firmware image.

But the main purpose of this script is still to run for live system - so I agree
refactoring should be fine.

Powered by Google App Engine
This is Rietveld 408576698