Go to file
Vadim Bendebury 43ec46b4ee usb_updater: when communicating over tpm treat upgrades differently
All extension and vendor commands' payloads need to be passed to the
processing functions the same way, whether they arrive over /dev/tpm0
or over USB. The upgrade PDUs sent over USB need to include two
additional fields which are stripped off by the reassembly layer on
the Cr50.

This patch makes sure that none of other than EXTENSION_FW_UPGRADE
commands sent over /dev/tpm0 by usb_updater have the extra
encapsulation.

BRANCH=cr50
BUG=b:62106898
TEST=verified that updates work the same way over TPM and USB (which
     includes sending the 'turn_update_on' commands. Before this patch
     the turn_update_on command sent by usb_updater over TPM was not
     processed properly (the timeout value was wrong).

Change-Id: I3f4ab7330037f6eb1ce8bac7c63faa5d7c309c94
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/517416
Reviewed-by: Andrey Pronin <apronin@chromium.org>
(cherry picked from commit bd0f74a6f4)
Reviewed-on: https://chromium-review.googlesource.com/538561
2017-06-19 18:00:23 +00:00
board cr50: add a function to read TPM NVMEM locations 2017-03-24 16:53:14 +00:00
builtin builtin: Expands string.h / stdint.h 2017-02-17 01:46:31 +00:00
chip g: add code to corrupt new header until further notice and move rw to 0.0.19 2017-03-24 16:45:13 +00:00
common cr50: allow vendor command to turn update on even in prod images 2017-05-23 17:44:37 +00:00
core cleanup: Remove charge_state_v1 2017-02-06 14:50:32 -08:00
cts eCTS: Test task priority 2016-11-10 21:28:33 -08:00
docs USB Serial: Add README and update CCD docs 2016-06-15 17:54:51 -07:00
driver driver: Add polling mode support to Si114x ALS sensor 2017-02-20 14:28:02 -08:00
extra usb_updater: when communicating over tpm treat upgrades differently 2017-06-19 18:00:23 +00:00
include cr50: add vendor command to restore corrupted header 2017-03-24 16:45:08 +00:00
power power/skylake: Use power_get_signals instead of power_has_signals 2017-02-18 03:11:00 -08:00
test cr50: Store console lock state in NvMem vars. 2017-03-02 18:15:19 +00:00
util cr50: prepare to release version 0.0.20 2017-05-23 17:44:34 +00:00
.checkpatch.conf checkpatch: prevent stupid complaints about description title 2016-07-21 13:13:27 -07:00
.gitignore Makefile.rules: Add targets to see file size differences 2016-11-15 17:43:21 -08:00
COMMIT-QUEUE.ini COMMIT-QUEUE.ini: add strago-no-vmtest-pre-cq 2017-02-21 14:07:42 -08:00
LICENSE Add LICENSE file to project 2012-05-11 09:11:52 -07:00
Makefile makefile: allow different RO and RW CONFIG 2017-01-26 14:23:01 -08:00
Makefile.rules rwsig: Add support for rwsig image types 2017-02-17 04:09:37 -08:00
Makefile.toolchain Support alignment for EC host command structures 2016-10-19 20:07:09 -07:00
OWNERS Add OWNERS files 2014-04-02 19:58:53 +00:00
PRESUBMIT.cfg Put a newline at the end of PRESUBMIT.cfg 2016-10-07 16:47:02 -07:00
README README: Add link to quick-build instructions 2015-12-07 13:49:35 -08:00
README.fmap Update EC config and FMAP to reserve room for vboot signatures 2012-05-04 14:42:58 -07:00
setup.py ec3po: Add setup script. 2015-12-08 20:05:05 -08:00

README

For an overview of the Embedded Controller firmware, refer to

http://www.chromium.org/chromium-os/2014-firmware-summit

For instructions on building from source, refer to

http://www.chromium.org/chromium-os/ec-development/getting-started-building-ec-images-quickly