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

Issue 1088001: Add --describe flag to {firmware|kernel}_utility. (Closed)

Created:
10 years, 9 months ago by gauravsh
Modified:
9 years, 6 months ago
Reviewers:
Chris Masone
CC:
chromium-os-reviews_chromium.org, gauravsh
Visibility:
Public.

Description

Add --describe flag to {firmware|kernel}_utility. This spews out useful information about a verified boot firmware/kernel image. Also adds a helper function to calculate header checksum. That code was being duplicated at multiple places.

Patch Set 1 #

Patch Set 2 : Remove crud. #

Total comments: 4

Patch Set 3 : Review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -106 lines) Patch
M src/platform/vboot_reference/include/firmware_image.h View 1 chunk +9 lines, -0 lines 0 comments Download
M src/platform/vboot_reference/include/firmware_utility.h View 3 chunks +5 lines, -0 lines 0 comments Download
M src/platform/vboot_reference/include/kernel_image.h View 1 chunk +9 lines, -0 lines 0 comments Download
M src/platform/vboot_reference/include/kernel_utility.h View 3 chunks +5 lines, -0 lines 0 comments Download
M src/platform/vboot_reference/tests/firmware_image_tests.c View 3 chunks +1 line, -16 lines 0 comments Download
M src/platform/vboot_reference/tests/kernel_image_tests.c View 3 chunks +1 line, -19 lines 0 comments Download
M src/platform/vboot_reference/utils/firmware_image.c View 4 chunks +32 lines, -4 lines 0 comments Download
M src/platform/vboot_reference/utils/firmware_utility.cc View 1 2 7 chunks +25 lines, -19 lines 0 comments Download
M src/platform/vboot_reference/utils/kernel_image.c View 5 chunks +40 lines, -14 lines 0 comments Download
M src/platform/vboot_reference/utils/kernel_utility.cc View 1 2 8 chunks +37 lines, -34 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
gauravsh
Re-created the old botched code review.
10 years, 9 months ago (2010-03-18 04:51:01 UTC) #1
Chris Masone
On 2010/03/18 04:51:01, gauravsh wrote: > Re-created the old botched code review. lgtm w/nits
10 years, 9 months ago (2010-03-18 05:32:17 UTC) #2
Chris Masone
http://codereview.chromium.org/1088001/diff/2001/3002 File src/platform/vboot_reference/include/firmware_utility.h (right): http://codereview.chromium.org/1088001/diff/2001/3002#newcode28 src/platform/vboot_reference/include/firmware_utility.h:28: // Print descriptio of verified boot firmware image. n? ...
10 years, 9 months ago (2010-03-18 05:32:28 UTC) #3
gauravsh
On Wed, Mar 17, 2010 at 10:32 PM, <cmasone@chromium.org> wrote: > http://codereview.chromium.org/1088001/diff/2001/3002 > File src/platform/vboot_reference/include/firmware_utility.h ...
10 years, 9 months ago (2010-03-18 20:10:40 UTC) #4
gauravsh
10 years, 9 months ago (2010-03-18 20:11:08 UTC) #5
And Submitted...

On Thu, Mar 18, 2010 at 1:10 PM, Gaurav Shah <gauravsh@chromium.org> wrote:
> On Wed, Mar 17, 2010 at 10:32 PM,  <cmasone@chromium.org> wrote:
>> http://codereview.chromium.org/1088001/diff/2001/3002
>> File src/platform/vboot_reference/include/firmware_utility.h (right):
>>
>> http://codereview.chromium.org/1088001/diff/2001/3002#newcode28
>> src/platform/vboot_reference/include/firmware_utility.h:28: // Print
>> descriptio of verified boot firmware image.
>> n?
>
> Done.
>
>>
>> http://codereview.chromium.org/1088001/diff/2001/3008
>> File src/platform/vboot_reference/utils/firmware_utility.cc (right):
>>
>> http://codereview.chromium.org/1088001/diff/2001/3008#newcode238
>> src/platform/vboot_reference/utils/firmware_utility.cc:238: cerr << "One
>> of --generate or --verify must be specified.\n";
>> Correct this comment?  It seems like, "If not passing --describe, one
>> and only one of --generate or --verify must be specified." would be more
>> appropriate.
>
> Done. (Actually had to fix the check, since the intention is that only
> one of the 3 flags can be specified).
>
>>
>> http://codereview.chromium.org/1088001/diff/2001/3010
>> File src/platform/vboot_reference/utils/kernel_utility.cc (right):
>>
>> http://codereview.chromium.org/1088001/diff/2001/3010#newcode284
>> src/platform/vboot_reference/utils/kernel_utility.cc:284: cerr << "One
>> of --generate or --verify must be specified.\n";
>> fix comment?
>
> Done.
>
>>
>> http://codereview.chromium.org/1088001/diff/2001/3010#newcode340
>> src/platform/vboot_reference/utils/kernel_utility.cc:340:
>> vboot_reference::KernelUtility fu;
>> Technically...s/ku/fu/g, right?
>
> Done.
>
>>
>> http://codereview.chromium.org/1088001
>>
>
> --
> -g
>



-- 
-g

Powered by Google App Engine
This is Rietveld 408576698