diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2015-01-09 10:29:53 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-01-15 01:07:14 +0000 |
commit | 64ada6e3d8220e51a64b30ff15878f1abff11a47 (patch) | |
tree | b59b0dd7e696a2b0c76fa68b0baa3d3941fcad8f /common/rwsig.c | |
parent | bd85bc46360e43b74aa1864565c5ad49b719a804 (diff) | |
download | chrome-ec-64ada6e3d8220e51a64b30ff15878f1abff11a47.tar.gz |
pd: log important events for accessories
Record in the PD log when we fail to verify the RW signature and when
the RW partition is erased.
Also log the faults on the power supplies.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=samus
BUG=chrome-os-partner:32785
TEST=flash a bad rw on Zinger.
Change-Id: Ib62dcb0d407867151af0aaecc405533e894d773e
Reviewed-on: https://chromium-review.googlesource.com/239913
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Trybot-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common/rwsig.c')
-rw-r--r-- | common/rwsig.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/rwsig.c b/common/rwsig.c index 92b8d1838c..2065a3d215 100644 --- a/common/rwsig.c +++ b/common/rwsig.c @@ -8,10 +8,12 @@ */ #include "console.h" +#include "ec_commands.h" #include "rsa.h" #include "sha256.h" #include "shared_mem.h" #include "system.h" +#include "usb_pd.h" #include "util.h" /* Console output macros */ @@ -64,6 +66,7 @@ void check_rw_signature(void) system_run_image_copy(SYSTEM_IMAGE_RW); } else { CPRINTS("RSA verify FAILED\n"); + pd_log_event(PD_EVENT_ACC_RW_FAIL, 0, 0, NULL); /* RW firmware is invalid : do not jump there */ if (system_is_locked()) system_disable_jump(); |