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

Issue 3303018: New tools to help debug vboot failures. (Closed)

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

Description

New tools to help debug vboot failures. This adds some tools to help us figure out why a particular kernel isn't booting. Often we suspect it's because it was signed with the wrong keys, or has flags restricting its use to certain boot modes. This change adds some tools to extract and display all the keys from the BIOS, and try them on the various kernels. We also display the sha1sum of all the keys we find, to make comparing them easier. Change-Id: I38e447bf95cb6c3a0b87aa949611bb135f2f94b4 BUG=chromeos-partner:888 TEST=manual To test, obtain a root shell, and run dev_debug_vboot. You should see lots of useful information go by.

Patch Set 1 #

Total comments: 14

Patch Set 2 : Respond to comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -21 lines) Patch
M host/include/host_misc.h View 1 chunk +2 lines, -0 lines 0 comments Download
M host/lib/host_misc.c View 1 chunk +10 lines, -0 lines 0 comments Download
M utility/Makefile View 3 chunks +11 lines, -1 line 0 comments Download
A utility/dev_debug_vboot View 1 1 chunk +67 lines, -0 lines 0 comments Download
A utility/dump_fmap.c View 1 1 chunk +192 lines, -0 lines 0 comments Download
M utility/vbutil_firmware.c View 1 6 chunks +28 lines, -8 lines 0 comments Download
M utility/vbutil_kernel.c View 1 1 chunk +13 lines, -1 line 0 comments Download
M utility/vbutil_key.c View 3 chunks +2 lines, -11 lines 0 comments Download
M utility/vbutil_keyblock.c View 1 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Bill Richardson
10 years, 3 months ago (2010-09-08 22:20:07 UTC) #1
Randall Spangler
http://codereview.chromium.org/3303018/diff/1/3 File utility/dev_debug_vboot (right): http://codereview.chromium.org/3303018/diff/1/3#newcode20 utility/dev_debug_vboot:20: dump_fmap -x ${BIOS} || echo "FAILED" Some extra echo's ...
10 years, 3 months ago (2010-09-09 00:02:13 UTC) #2
gauravsh
I am curious, why not just directly use fmap_decode (part of the dhendrix's flashmap package) ...
10 years, 3 months ago (2010-09-09 00:26:46 UTC) #3
Bill Richardson
I need to extract the pieces. I didn't know about fmap_decode until I'd already written ...
10 years, 3 months ago (2010-09-09 00:33:44 UTC) #4
gauravsh
On Wed, Sep 8, 2010 at 5:33 PM, <wfrichar@chromium.org> wrote: > I need to extract ...
10 years, 3 months ago (2010-09-09 00:43:34 UTC) #5
dhendrix
http://codereview.chromium.org/3303018/diff/1/4 File utility/dump_fmap.c (right): http://codereview.chromium.org/3303018/diff/1/4#newcode172 utility/dump_fmap.c:172: for (i=0; i<sb.st_size; i++) { You can increment by ...
10 years, 3 months ago (2010-09-09 01:24:42 UTC) #6
dhendrix1
On Wed, Sep 8, 2010 at 5:43 PM, Gaurav Shah <gauravsh@chromium.org> wrote: > On Wed, ...
10 years, 3 months ago (2010-09-09 01:25:34 UTC) #7
vb
On 2010/09/09 00:43:34, gauravsh wrote: > On Wed, Sep 8, 2010 at 5:33 PM, <mailto:wfrichar@chromium.org> ...
10 years, 3 months ago (2010-09-09 13:54:26 UTC) #8
Bill Richardson
10 years, 3 months ago (2010-09-09 18:36:36 UTC) #9
Bill Richardson
New changes uploaded. I'm going to keep the dump_fmap utility here for now. We can ...
10 years, 3 months ago (2010-09-09 18:40:33 UTC) #10
Randall Spangler
10 years, 3 months ago (2010-09-09 21:48:39 UTC) #11
LGTM

Powered by Google App Engine
This is Rietveld 408576698