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

Issue 2283005: Modifying the kernel_utility tool to create our magic blob. (Closed)

Created:
10 years, 7 months ago by Bill Richardson
Modified:
9 years, 6 months ago
CC:
chromium-os-reviews_chromium.org, gauravsh
Base URL:
ssh://git@chromiumos-git/chromeos
Visibility:
Public.

Description

Modifying the kernel_utility tool to create our magic blob. For the --generate operation, the --in <file> option is gone and there are three new required options: --vmlinuz <file> Embedded kernel image --config <file> Embedded kernel command-line parameters --bootloader <file> Embedded bootloader stub This takes the specified kernel, extracts the 32-bit component, and combines that with the configuration file (essentially just the kernel cmdline string) and the bootstub image . The resulting blob is signed and ready to put in a kernel partition. There's also an optional --padding parameter, to specify how much extra (unsigned) space to leave between the signature header and the kernel blob. The default is 0x4000, which is about four times as much needed when using the largest signature size we currently support.

Patch Set 1 #

Total comments: 24

Patch Set 2 : respond to feedback #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+424 lines, -70 lines) Patch
M src/platform/vboot_reference/tests/gen_fuzz_test_cases.sh View 2 chunks +5 lines, -1 line 0 comments Download
M src/platform/vboot_reference/utility/include/kernel_utility.h View 2 chunks +4 lines, -0 lines 0 comments Download
M src/platform/vboot_reference/utility/kernel_utility.cc View 10 chunks +117 lines, -41 lines 0 comments Download
M src/platform/vboot_reference/vboot_firmware/include/utility.h View 1 1 chunk +11 lines, -0 lines 0 comments Download
M src/platform/vboot_reference/vboot_firmware/stub/utility_stub.c View 1 chunk +14 lines, -0 lines 0 comments Download
A src/platform/vboot_reference/vkernel/include/kernel_blob.h View 1 1 chunk +50 lines, -0 lines 0 comments Download
M src/platform/vboot_reference/vkernel/include/kernel_image.h View 1 chunk +12 lines, -0 lines 0 comments Download
M src/platform/vboot_reference/vkernel/kernel_image.c View 1 15 chunks +211 lines, -28 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
Bill Richardson
10 years, 7 months ago (2010-05-27 03:59:32 UTC) #1
gauravsh
http://codereview.chromium.org/2283005/diff/1/5 File src/platform/vboot_reference/vboot_firmware/include/utility.h (right): http://codereview.chromium.org/2283005/diff/1/5#newcode90 src/platform/vboot_reference/vboot_firmware/include/utility.h:90: * On success, return a meaningless but non-NULL pointer ...
10 years, 7 months ago (2010-05-27 10:05:38 UTC) #2
Bill Richardson
10 years, 7 months ago (2010-05-27 17:55:36 UTC) #3
Bill Richardson
Try this. http://codereview.chromium.org/2283005/diff/1/9 File src/platform/vboot_reference/vkernel/kernel_image.c (right): http://codereview.chromium.org/2283005/diff/1/9#newcode164 src/platform/vboot_reference/vkernel/kernel_image.c:164: StatefulMemcpy(&st, image->kernel_signature, kernel_signature_len); On 2010/05/27 10:05:38, gauravsh ...
10 years, 7 months ago (2010-05-27 17:55:46 UTC) #4
gauravsh
lgtm http://codereview.chromium.org/2283005/diff/1/9 File src/platform/vboot_reference/vkernel/kernel_image.c (right): http://codereview.chromium.org/2283005/diff/1/9#newcode164 src/platform/vboot_reference/vkernel/kernel_image.c:164: StatefulMemcpy(&st, image->kernel_signature, kernel_signature_len); On 2010/05/27 17:55:47, Bill Richardson ...
10 years, 7 months ago (2010-05-27 18:06:04 UTC) #5
Randall Spangler
10 years, 7 months ago (2010-05-27 20:30:16 UTC) #6
lgtm

Powered by Google App Engine
This is Rietveld 408576698