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

Issue 1752013: Vboot Reference: Make kernel signing utility more flexible. (Closed)

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

Description

Vboot Reference: Make kernel signing utility more flexible. The CL adds the --config and --vblock option to kernel_utility. --config <file> uses the file to populate the configuration portion within a signed vbootimage Currently, the configuration file is assumed to only contain command line options to be passed to the kernel. In the future, we might want to change it so that it contains information about the kernel load address, entry points, etc. (refer to rspangler@ drive map design doc) --vblock makes the tool only output the verification header instead of a one monolithic signed kernel image containing the verification information (with config information contained within it) followed by the actual kernel image

Patch Set 1 #

Total comments: 4

Patch Set 2 : review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -16 lines) Patch
M src/platform/vboot_reference/utility/firmware_utility.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/platform/vboot_reference/utility/include/firmware_utility.h View 1 chunk +1 line, -1 line 0 comments Download
M src/platform/vboot_reference/utility/include/kernel_utility.h View 2 chunks +7 lines, -0 lines 0 comments Download
M src/platform/vboot_reference/utility/kernel_utility.cc View 1 8 chunks +27 lines, -5 lines 0 comments Download
M src/platform/vboot_reference/vkernel/include/kernel_image.h View 1 chunk +3 lines, -1 line 0 comments Download
M src/platform/vboot_reference/vkernel/kernel_image.c View 1 3 chunks +18 lines, -8 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
gauravsh
10 years, 8 months ago (2010-04-24 03:19:35 UTC) #1
Bill Richardson
LGTM, with a couple of minor nits. http://codereview.chromium.org/1752013/diff/1/5 File src/platform/vboot_reference/utility/kernel_utility.cc (right): http://codereview.chromium.org/1752013/diff/1/5#newcode260 src/platform/vboot_reference/utility/kernel_utility.cc:260: Memset(image_->options.cmd_line + ...
10 years, 8 months ago (2010-04-26 17:54:59 UTC) #2
gauravsh
10 years, 8 months ago (2010-04-26 18:42:48 UTC) #3
Fixed and submitted, Thanks!

http://codereview.chromium.org/1752013/diff/1/5
File src/platform/vboot_reference/utility/kernel_utility.cc (right):

http://codereview.chromium.org/1752013/diff/1/5#newcode260
src/platform/vboot_reference/utility/kernel_utility.cc:260:
Memset(image_->options.cmd_line + len, 0,  // Fill the rest with 0x00s.
On 2010/04/26 17:54:59, Bill Richardson wrote:
> Why not just have KernelImageNew() initialize .options to all zeros?
> 
> 

Good idea, Done.

http://codereview.chromium.org/1752013/diff/1/7
File src/platform/vboot_reference/vkernel/kernel_image.c (right):

http://codereview.chromium.org/1752013/diff/1/7#newcode330
src/platform/vboot_reference/vkernel/kernel_image.c:330: debug("Couldn't write
Kenrel Image Verification block to file: %s\n",
On 2010/04/26 17:54:59, Bill Richardson wrote:
> Typo "Kenrel"

Done.

Powered by Google App Engine
This is Rietveld 408576698