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

Issue 3520019: Allow --repack option to change kernel version number. (Closed)

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

Description

Allow --repack option to change kernel version number. RFro TPM rollback testing we need to be able to change kernel version number. This Cl adds this ability to the vbutil_kernel utility. Change-Id: I156df9b0d3467043c20a43e1c75e6d0222704f3a BUG=chromium-os:1976 TEST=manual 1. On a target running off /dev/sda3 (as reported by 'rootdev -s') execute `/usr/bin/dev_debug_vboot' and take note of the kernel version number in the output section starting with 'TEST: verify HD kernel A with firmware A key', under 'Preamble' it should read 'Kernel version: 1' 2. copy the kernel into a file: dd if=/dev/sda2 of=/tmp/kernel 3.on the desktop (this step requires ssh setup to use the correct keys to reach the target): scp tests/devkeys/kernel_data_key.vbprivk <target>:/tmp 3. Modify kernel version vbutil_kernel --repack /tmp/repacked.k --version 2 --signprivate /tmp/kernel_data_key.vbprivk --oldblob /tmp/kernel 4. Install the updated kernel dd if=/tmp/repacked.k of=/dev/sda2 5. restart the system 6. Observe that it came up using /dev/sda3 as the root file system 7. run /usr/bin/dev_debug_vboot and observe that the kernel version is no set to 2 Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=858fffb

Patch Set 1 #

Patch Set 2 : Fixed indentation warnings. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -4 lines) Patch
M utility/vbutil_kernel.c View 1 3 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
vb
10 years, 2 months ago (2010-10-06 00:01:10 UTC) #1
vb
Randall, as Bill is OOO today, can you please look at this too, cheers, /v ...
10 years, 2 months ago (2010-10-06 15:44:49 UTC) #2
Randall Spangler
10 years, 2 months ago (2010-10-06 16:33:13 UTC) #3
LGTM

Powered by Google App Engine
This is Rietveld 408576698