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

Issue 6840047: vboot_reference: check developer firmware before running make_dev_ssd (Closed)

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

Description

vboot_reference: check developer firmware before running make_dev_ssd Developers may turn on developer switch, enter shell, and then try to run make_dev_ssd without switching to developer firmware / dev root key. And that would make the system showing "NO GOOD" or "INSERT" screen after reboot. For sanity check, we should check if firmware type is "developer" before running make_dev_ssd. BUG=none TEST=(using normale firmware) make_dev_ssd # seeing the error messages sudo chromeos-firmwareupdate --mode=todev; sudo reboot (using developer firmware) make_dev_ssd # not seeing error Change-Id: Id62959c91c39b0bbcca604c9e83fd087e3727b8b R=rspangler@chromium.org Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=83728d0

Patch Set 1 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -1 line) Patch
M scripts/image_signing/make_dev_ssd.sh View 3 chunks +32 lines, -1 line 10 comments Download

Messages

Total messages: 3 (0 generated)
Hung-Te
9 years, 8 months ago (2011-04-14 08:48:50 UTC) #1
Randall Spangler
LGTM with suggestions. http://codereview.chromium.org/6840047/diff/1/scripts/image_signing/make_dev_ssd.sh File scripts/image_signing/make_dev_ssd.sh (right): http://codereview.chromium.org/6840047/diff/1/scripts/image_signing/make_dev_ssd.sh#newcode299 scripts/image_signing/make_dev_ssd.sh:299: debug_msg "Firmware compatbility sanity check" compatibility ...
9 years, 8 months ago (2011-04-14 16:19:10 UTC) #2
Hung-Te
9 years, 8 months ago (2011-04-15 03:06:59 UTC) #3
http://codereview.chromium.org/6840047/diff/1/scripts/image_signing/make_dev_...
File scripts/image_signing/make_dev_ssd.sh (right):

http://codereview.chromium.org/6840047/diff/1/scripts/image_signing/make_dev_...
scripts/image_signing/make_dev_ssd.sh:299: debug_msg "Firmware compatbility
sanity check"
On 2011/04/14 16:19:10, Randall Spangler wrote:
> compatibility

Done.

http://codereview.chromium.org/6840047/diff/1/scripts/image_signing/make_dev_...
scripts/image_signing/make_dev_ssd.sh:312: sudo chromeos-firmwareupdate --force
--mode=todev
On 2011/04/14 16:19:10, Randall Spangler wrote:
> If --force is required now, also should change the banner/motd for the root
> shell (in a separate CL, of course)

 It actually not required - but just to make sure people won't get confused if
they get a system with that disabled, I add --force in the instruction.
 Maybe the better place is to add "disabled, please add --force" inside the
updater itself.
 I'll remove the --force and make another CL inside the updater to describe the
--force.

http://codereview.chromium.org/6840047/diff/1/scripts/image_signing/make_dev_...
scripts/image_signing/make_dev_ssd.sh:314: - To change system rootkey: disable
write protection, then type command:
On 2011/04/14 16:19:10, Randall Spangler wrote:
> disable firmware write protection

Done.

http://codereview.chromium.org/6840047/diff/1/scripts/image_signing/make_dev_...
scripts/image_signing/make_dev_ssd.sh:319: command again with -f param:
On 2011/04/14 16:19:10, Randall Spangler wrote:
> -f --> --force

Done.

http://codereview.chromium.org/6840047/diff/1/scripts/image_signing/make_dev_...
scripts/image_signing/make_dev_ssd.sh:321: sudo ./make_dev_ssd.sh --force
On 2011/04/14 16:19:10, Randall Spangler wrote:
> Bonus points for echoing the original args ($@) + --force.

Done.

Powered by Google App Engine
This is Rietveld 408576698