diff options
author | Bill Richardson <wfrichar@chromium.org> | 2016-04-09 20:52:35 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-04-12 19:00:31 -0700 |
commit | 4246bfa62f2c4ab273ade29101c46937ca720dae (patch) | |
tree | 2049b2003a63d2259b1a1a78af4c1583943d16bb /extra | |
parent | 650d4716748fd8aef1675e72277baec5360068f2 (diff) | |
download | chrome-ec-4246bfa62f2c4ab273ade29101c46937ca720dae.tar.gz |
Cr50: New usb_upgrade module for RW updates
This re-factors the existing firmware upgrade facility, which worked as
a TPM command extension.
The same code processing upgrade blocks prepended by the truncated
SHA1 and the load address is now used by both extended TPM command and
the USB upgrader.
To accommodate USB communications using a smaller message payloads a
reassembly layer is introduced which accumulates short USB payloads
into a single block which can be passed to the firmware upgrade
routine. USB encapsulation adds one 4 byte header at the beginning of
the block to hold the total block size. The reassembly layer keeps
receiving USB messages, concatenating their payloads until the full
block is received.
A config option is added to make sure the module is not compiled when
not needed.
BUG=chrome-os-partner:50707
BRANCH=none
TEST=make buildall; test on Cr50 - with the rest of the patches
applied it is possible to upgrade firmware using the USB utility
on the host..
Change-Id: Ib30b381c4ab196ea9d352f3c6b8f46dc23ddd599
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/338087
Diffstat (limited to 'extra')
0 files changed, 0 insertions, 0 deletions