<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/coreboot/vboot.git, branch stabilize-4512.B</title>
<subtitle>review.coreboot.org: vboot.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/'/>
<entry>
<title>Add a script to remove /boot and its contents from an image.</title>
<updated>2013-08-06T02:16:24+00:00</updated>
<author>
<name>Don Garrett</name>
<email>dgarrett@google.com</email>
</author>
<published>2013-07-03T00:17:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=7a3a4676672525231c38612e6c8a820305d99de5'/>
<id>7a3a4676672525231c38612e6c8a820305d99de5</id>
<content type='text'>
This is a helper script intended for the signing servers to use to strip
out the /boot directory from images just before signing.

BUG=chromium:210352
TEST=Manually used to strip and image and validated the results.
BRANCH=None

Change-Id: I814522284143d8f90651e13000d428718aeca1e4
Reviewed-on: https://gerrit.chromium.org/gerrit/60828
Reviewed-by: Mike Frysinger &lt;vapier@chromium.org&gt;
Commit-Queue: Don Garrett &lt;dgarrett@chromium.org&gt;
Tested-by: Don Garrett &lt;dgarrett@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a helper script intended for the signing servers to use to strip
out the /boot directory from images just before signing.

BUG=chromium:210352
TEST=Manually used to strip and image and validated the results.
BRANCH=None

Change-Id: I814522284143d8f90651e13000d428718aeca1e4
Reviewed-on: https://gerrit.chromium.org/gerrit/60828
Reviewed-by: Mike Frysinger &lt;vapier@chromium.org&gt;
Commit-Queue: Don Garrett &lt;dgarrett@chromium.org&gt;
Tested-by: Don Garrett &lt;dgarrett@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix some issues with LBA vs byte offsets</title>
<updated>2013-07-31T22:40:23+00:00</updated>
<author>
<name>Albert Chaulk</name>
<email>achaulk@chromium.org</email>
</author>
<published>2013-07-19T19:56:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=494646dbadedae88776d6fced396e3ee8af38e54'/>
<id>494646dbadedae88776d6fced396e3ee8af38e54</id>
<content type='text'>
In several places the existing code assumes LBA, but was improperly converted
to use byte offsets, so multiply by the sector size to correct it and maintain
the same interface between MTD &amp; GPT.

Also, since we will need to cgpt create on /dev/fts, which isn't a stat()able
device, allow providing the disk size on the commandline.

BRANCH=none
BUG=chromium:221745
TEST=make runtests; cgpt create -s 12345 on MTD image

Change-Id: Icc89a4505aba9a3dfc39b176a372f6e12d106aed
Reviewed-on: https://gerrit.chromium.org/gerrit/62675
Reviewed-by: Bill Richardson &lt;wfrichar@chromium.org&gt;
Tested-by: Albert Chaulk &lt;achaulk@chromium.org&gt;
Commit-Queue: Albert Chaulk &lt;achaulk@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In several places the existing code assumes LBA, but was improperly converted
to use byte offsets, so multiply by the sector size to correct it and maintain
the same interface between MTD &amp; GPT.

Also, since we will need to cgpt create on /dev/fts, which isn't a stat()able
device, allow providing the disk size on the commandline.

BRANCH=none
BUG=chromium:221745
TEST=make runtests; cgpt create -s 12345 on MTD image

Change-Id: Icc89a4505aba9a3dfc39b176a372f6e12d106aed
Reviewed-on: https://gerrit.chromium.org/gerrit/62675
Reviewed-by: Bill Richardson &lt;wfrichar@chromium.org&gt;
Tested-by: Albert Chaulk &lt;achaulk@chromium.org&gt;
Commit-Queue: Albert Chaulk &lt;achaulk@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add labels to MTD partitions.</title>
<updated>2013-07-31T22:40:04+00:00</updated>
<author>
<name>Albert Chaulk</name>
<email>achaulk@chromium.org</email>
</author>
<published>2013-07-25T18:32:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=32fd6dead10a8255fea27f6e5ce9ba92d8716008'/>
<id>32fd6dead10a8255fea27f6e5ce9ba92d8716008</id>
<content type='text'>
Add labels to MTD partitions and clean up some of the show code, adding more
info on the MTD prints and eliminating duplicated code.

BRANCH=none
TEST=make runtests &amp; manual cgpt add -l "label"; cgpt show to verify labels
BUG=none

Change-Id: I59736128f394c2aca937a3a0bb5fc5d42b0149a9
Reviewed-on: https://gerrit.chromium.org/gerrit/63367
Reviewed-by: Bill Richardson &lt;wfrichar@chromium.org&gt;
Commit-Queue: Albert Chaulk &lt;achaulk@chromium.org&gt;
Tested-by: Albert Chaulk &lt;achaulk@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add labels to MTD partitions and clean up some of the show code, adding more
info on the MTD prints and eliminating duplicated code.

BRANCH=none
TEST=make runtests &amp; manual cgpt add -l "label"; cgpt show to verify labels
BUG=none

Change-Id: I59736128f394c2aca937a3a0bb5fc5d42b0149a9
Reviewed-on: https://gerrit.chromium.org/gerrit/63367
Reviewed-by: Bill Richardson &lt;wfrichar@chromium.org&gt;
Commit-Queue: Albert Chaulk &lt;achaulk@chromium.org&gt;
Tested-by: Albert Chaulk &lt;achaulk@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix build error when DEBUG is enabled</title>
<updated>2013-07-30T20:40:32+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@chromium.org</email>
</author>
<published>2013-06-22T00:32:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=05f5944a40dca2a92070f26dad0bfbb57f59aca1'/>
<id>05f5944a40dca2a92070f26dad0bfbb57f59aca1</id>
<content type='text'>
firmware/lib/flash_ts.c: In function 'flash_ts_find_writeable_spot':
firmware/lib/flash_ts.c:180:5: error:
	implicit declaration of function 'VbExDebug' [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors

BUG=None
TEST=`make` works
TEST=`make DEBUG=1` works
BRANCH=none

Change-Id: Id529ca885828ca38d5230f41f81d4b87395c5e65
Reviewed-on: https://gerrit.chromium.org/gerrit/59654
Reviewed-by: Bill Richardson &lt;wfrichar@chromium.org&gt;
Commit-Queue: Mike Frysinger &lt;vapier@chromium.org&gt;
Tested-by: Mike Frysinger &lt;vapier@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
firmware/lib/flash_ts.c: In function 'flash_ts_find_writeable_spot':
firmware/lib/flash_ts.c:180:5: error:
	implicit declaration of function 'VbExDebug' [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors

BUG=None
TEST=`make` works
TEST=`make DEBUG=1` works
BRANCH=none

Change-Id: Id529ca885828ca38d5230f41f81d4b87395c5e65
Reviewed-on: https://gerrit.chromium.org/gerrit/59654
Reviewed-by: Bill Richardson &lt;wfrichar@chromium.org&gt;
Commit-Queue: Mike Frysinger &lt;vapier@chromium.org&gt;
Tested-by: Mike Frysinger &lt;vapier@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>VbInit(): printout gbb flags as well</title>
<updated>2013-07-26T22:02:01+00:00</updated>
<author>
<name>Aaron Durbin</name>
<email>adurbin@chromium.org</email>
</author>
<published>2013-07-26T20:07:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=d79f111427ab11919d9f91aa4f54c893f9e9986a'/>
<id>d79f111427ab11919d9f91aa4f54c893f9e9986a</id>
<content type='text'>
It's extremely helpful to know what a device's gbb flags are when
running vboot. It aids in debugging issues by providing more
information and context.

BUG=None
BRANCH=None
TEST=Built and booted. Checked log.

Change-Id: I663de6f617f0e8c74e2b2f3b7a2be63f4a9c020a
Signed-off-by: Aaron Durbin &lt;adurbin@chromium.org&gt;
Reviewed-on: https://gerrit.chromium.org/gerrit/63489
Reviewed-by: Randall Spangler &lt;rspangler@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's extremely helpful to know what a device's gbb flags are when
running vboot. It aids in debugging issues by providing more
information and context.

BUG=None
BRANCH=None
TEST=Built and booted. Checked log.

Change-Id: I663de6f617f0e8c74e2b2f3b7a2be63f4a9c020a
Signed-off-by: Aaron Durbin &lt;adurbin@chromium.org&gt;
Reviewed-on: https://gerrit.chromium.org/gerrit/63489
Reviewed-by: Randall Spangler &lt;rspangler@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't always enable MTD mode unless MTD device is specified</title>
<updated>2013-07-25T01:08:22+00:00</updated>
<author>
<name>Albert Chaulk</name>
<email>achaulk@chromium.org</email>
</author>
<published>2013-07-19T18:12:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=d41000ed64bb144704fcbf2db3db840de30d069d'/>
<id>d41000ed64bb144704fcbf2db3db840de30d069d</id>
<content type='text'>
On MTD devices, don't always enable MTD mode - the installer needs to
be able to access both the GPT disk and the MTD disk, so only
enable it if we install to /dev/fts

BRANCH=none
BUG=chromium:221745
TEST=make runtests

Change-Id: I7688e6bc758ef47cfb9d468c1224ef43b2043d02
Reviewed-on: https://gerrit.chromium.org/gerrit/62662
Reviewed-by: Randall Spangler &lt;rspangler@chromium.org&gt;
Commit-Queue: Albert Chaulk &lt;achaulk@chromium.org&gt;
Tested-by: Albert Chaulk &lt;achaulk@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On MTD devices, don't always enable MTD mode - the installer needs to
be able to access both the GPT disk and the MTD disk, so only
enable it if we install to /dev/fts

BRANCH=none
BUG=chromium:221745
TEST=make runtests

Change-Id: I7688e6bc758ef47cfb9d468c1224ef43b2043d02
Reviewed-on: https://gerrit.chromium.org/gerrit/62662
Reviewed-by: Randall Spangler &lt;rspangler@chromium.org&gt;
Commit-Queue: Albert Chaulk &lt;achaulk@chromium.org&gt;
Tested-by: Albert Chaulk &lt;achaulk@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed sign_official_build.sh to work with PARTUUID</title>
<updated>2013-07-24T19:09:45+00:00</updated>
<author>
<name>Paul Taysom</name>
<email>taysom@chromium.org</email>
</author>
<published>2013-07-13T00:22:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=f5c62bd7dc1ef3d76d6e5f9119ad73ec95a926d7'/>
<id>f5c62bd7dc1ef3d76d6e5f9119ad73ec95a926d7</id>
<content type='text'>
Fixed sign_official_build.sh to work with PARTUUID in the linux format,
PARTUUID=%U/PARTNROFF=1. Had to handle the '/'.

Also fixed a misspelled variable name, devcie -&gt; device. It worked
before because a NULL string generated the right results in the
current configuration.

BUG=chromium:224066
TEST=~/trunk/src/platform/vboot_reference/scripts/image_signing/sign_official_build.sh recovery /home/taysom/trunk/src/build/images/$B/latest/recovery_image.bin /home/taysom/trunk/src/platform/vboot_reference/tests/devkeys /tmp/taysom.bin
BRANCH=none

Change-Id: Id201885a63c6eba4cdb7c9216c0d3d35e6d3f0c4
Reviewed-on: https://gerrit.chromium.org/gerrit/61889
Tested-by: Paul Taysom &lt;taysom@chromium.org&gt;
Reviewed-by: Gaurav Shah &lt;gauravsh@chromium.org&gt;
Commit-Queue: Paul Taysom &lt;taysom@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixed sign_official_build.sh to work with PARTUUID in the linux format,
PARTUUID=%U/PARTNROFF=1. Had to handle the '/'.

Also fixed a misspelled variable name, devcie -&gt; device. It worked
before because a NULL string generated the right results in the
current configuration.

BUG=chromium:224066
TEST=~/trunk/src/platform/vboot_reference/scripts/image_signing/sign_official_build.sh recovery /home/taysom/trunk/src/build/images/$B/latest/recovery_image.bin /home/taysom/trunk/src/platform/vboot_reference/tests/devkeys /tmp/taysom.bin
BRANCH=none

Change-Id: Id201885a63c6eba4cdb7c9216c0d3d35e6d3f0c4
Reviewed-on: https://gerrit.chromium.org/gerrit/61889
Tested-by: Paul Taysom &lt;taysom@chromium.org&gt;
Reviewed-by: Gaurav Shah &lt;gauravsh@chromium.org&gt;
Commit-Queue: Paul Taysom &lt;taysom@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>rollback_index: Remove recovery_mode parameter to SetupTPM.</title>
<updated>2013-07-23T19:37:04+00:00</updated>
<author>
<name>Shawn Nematbakhsh</name>
<email>shawnn@chromium.org</email>
</author>
<published>2013-07-22T23:19:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=472d93c146403c0f95b656e182b972e15ff11835'/>
<id>472d93c146403c0f95b656e182b972e15ff11835</id>
<content type='text'>
SetupTPM no longer uses recovery_mode parameter for anything other than
a debug print. This change moves the debug print to a caller function,
then removes recovery_mode from SetupTPM and some caller functions that
no longer have a use for it.

BUG=chrome-os-partner:20913.
TEST=Manual. Boot factory install shim in recovery mode and verify TPM
clear operations succeed. Boot in dev mode and verify "Lock physical
presence" print on UART.
BRANCH=None.

Signed-off-by: Shawn Nematbakhsh &lt;shawnn@chromium.org&gt;
Change-Id: I2f671f6680a6e67cf722855e659e99752bc0783c
Reviewed-on: https://gerrit.chromium.org/gerrit/62916
Reviewed-by: Randall Spangler &lt;rspangler@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SetupTPM no longer uses recovery_mode parameter for anything other than
a debug print. This change moves the debug print to a caller function,
then removes recovery_mode from SetupTPM and some caller functions that
no longer have a use for it.

BUG=chrome-os-partner:20913.
TEST=Manual. Boot factory install shim in recovery mode and verify TPM
clear operations succeed. Boot in dev mode and verify "Lock physical
presence" print on UART.
BRANCH=None.

Signed-off-by: Shawn Nematbakhsh &lt;shawnn@chromium.org&gt;
Change-Id: I2f671f6680a6e67cf722855e659e99752bc0783c
Reviewed-on: https://gerrit.chromium.org/gerrit/62916
Reviewed-by: Randall Spangler &lt;rspangler@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>rollback_index: Add recovery parameter to RollbackKernelLock.</title>
<updated>2013-07-23T06:14:11+00:00</updated>
<author>
<name>Shawn Nematbakhsh</name>
<email>shawnn@chromium.org</email>
</author>
<published>2013-07-22T20:33:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=964144bf2f3befe8c8a010000439cb5e5dccf00d'/>
<id>964144bf2f3befe8c8a010000439cb5e5dccf00d</id>
<content type='text'>
RollbackKernelLock previously checked a global to determine recovery
mode state. Since we have two copies of vboot_reference in firmware
(in coreboot and depthcharge), this creates a problem with
synchronization. Remove the global entirely and instead pass the
recovery state to RollbackKernelLock.

BUG=chrome-os-partner:20913.
TEST=Manual. Boot factory install shim in recovery mode and verify TPM
clear operations succeed. Boot in dev mode and verify "Lock physical
presence" print on UART.
BRANCH=FalcoPeppy.

Signed-off-by: Shawn Nematbakhsh &lt;shawnn@chromium.org&gt;
Change-Id: I4e751d4a9ca60cd57c5c662ce86eba595fb22ba2
Reviewed-on: https://gerrit.chromium.org/gerrit/62874
Reviewed-by: Aaron Durbin &lt;adurbin@chromium.org&gt;
Reviewed-by: Randall Spangler &lt;rspangler@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
RollbackKernelLock previously checked a global to determine recovery
mode state. Since we have two copies of vboot_reference in firmware
(in coreboot and depthcharge), this creates a problem with
synchronization. Remove the global entirely and instead pass the
recovery state to RollbackKernelLock.

BUG=chrome-os-partner:20913.
TEST=Manual. Boot factory install shim in recovery mode and verify TPM
clear operations succeed. Boot in dev mode and verify "Lock physical
presence" print on UART.
BRANCH=FalcoPeppy.

Signed-off-by: Shawn Nematbakhsh &lt;shawnn@chromium.org&gt;
Change-Id: I4e751d4a9ca60cd57c5c662ce86eba595fb22ba2
Reviewed-on: https://gerrit.chromium.org/gerrit/62874
Reviewed-by: Aaron Durbin &lt;adurbin@chromium.org&gt;
Reviewed-by: Randall Spangler &lt;rspangler@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add MTD test script</title>
<updated>2013-07-16T20:19:03+00:00</updated>
<author>
<name>Albert Chaulk</name>
<email>achaulk@chromium.org</email>
</author>
<published>2013-04-02T21:38:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=42c08cb2dac102509491810361e239fbde52b9e0'/>
<id>42c08cb2dac102509491810361e239fbde52b9e0</id>
<content type='text'>
So the quick &amp; dirty hack is to just modify the cgpt command to be
cgpt -N=&lt;MTD magic&gt; &lt;rest of the commands&gt;

There are a couple limitations of the MTD command versions that will cause
them to always fail, so they're skipped if the second argument is empty - boot,
adding unknown GUIDs and more than 15 partitions.

BUG=chromium:221745
TEST=MTD version of run_cgpt_tests.sh passes
BRANCH=none

Original-Change-Id: Ida0debdefdc736f38e616801f6a40e67d393f405
Reviewed-on: https://gerrit.chromium.org/gerrit/47177
Reviewed-by: Bill Richardson &lt;wfrichar@chromium.org&gt;
Reviewed-by: Randall Spangler &lt;rspangler@chromium.org&gt;
Commit-Queue: Albert Chaulk &lt;achaulk@chromium.org&gt;
Tested-by: Albert Chaulk &lt;achaulk@chromium.org&gt;
(cherry picked from commit 53fd488fc772e2ed964331fe98eaa21d2a1e471b)

Change-Id: Id7af245cc0e8c2dc00fe9ceab9ce0be0e47882ec
Reviewed-on: https://gerrit.chromium.org/gerrit/49796
Reviewed-by: Randall Spangler &lt;rspangler@chromium.org&gt;
Commit-Queue: Albert Chaulk &lt;achaulk@chromium.org&gt;
Tested-by: Albert Chaulk &lt;achaulk@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
So the quick &amp; dirty hack is to just modify the cgpt command to be
cgpt -N=&lt;MTD magic&gt; &lt;rest of the commands&gt;

There are a couple limitations of the MTD command versions that will cause
them to always fail, so they're skipped if the second argument is empty - boot,
adding unknown GUIDs and more than 15 partitions.

BUG=chromium:221745
TEST=MTD version of run_cgpt_tests.sh passes
BRANCH=none

Original-Change-Id: Ida0debdefdc736f38e616801f6a40e67d393f405
Reviewed-on: https://gerrit.chromium.org/gerrit/47177
Reviewed-by: Bill Richardson &lt;wfrichar@chromium.org&gt;
Reviewed-by: Randall Spangler &lt;rspangler@chromium.org&gt;
Commit-Queue: Albert Chaulk &lt;achaulk@chromium.org&gt;
Tested-by: Albert Chaulk &lt;achaulk@chromium.org&gt;
(cherry picked from commit 53fd488fc772e2ed964331fe98eaa21d2a1e471b)

Change-Id: Id7af245cc0e8c2dc00fe9ceab9ce0be0e47882ec
Reviewed-on: https://gerrit.chromium.org/gerrit/49796
Reviewed-by: Randall Spangler &lt;rspangler@chromium.org&gt;
Commit-Queue: Albert Chaulk &lt;achaulk@chromium.org&gt;
Tested-by: Albert Chaulk &lt;achaulk@chromium.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
