diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2012-08-06 16:57:41 +0000 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-08-06 12:06:44 -0700 |
commit | d8e04f0db75a0088121981df3bd57c3dccb10945 (patch) | |
tree | 28fd04950455a56042cc13275be1691a622db224 | |
parent | 7c5c4792e9db9e7ff69ef2fd40fb4d6c05179580 (diff) | |
download | chrome-ec-d8e04f0db75a0088121981df3bd57c3dccb10945.tar.gz |
snow daisy: compute RW firmware hash
Activate the VBOOT code to compute the SHA256 hash of the RW partition
of the EC firmware.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=None
TEST=On Snow, reset the EC and see the hash is computed at startup.
Change-Id: Id1930f823ef516e459b4905c7d0f301568fddf0f
Reviewed-on: https://gerrit.chromium.org/gerrit/29279
Reviewed-by: Vic Yang <victoryang@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r-- | board/daisy/board.h | 4 | ||||
-rw-r--r-- | board/daisy/ec.tasklist | 1 | ||||
-rw-r--r-- | board/snow/board.h | 4 | ||||
-rw-r--r-- | board/snow/ec.tasklist | 1 |
4 files changed, 10 insertions, 0 deletions
diff --git a/board/daisy/board.h b/board/daisy/board.h index ba9c44854c..f8ca5cad56 100644 --- a/board/daisy/board.h +++ b/board/daisy/board.h @@ -22,6 +22,10 @@ #define CONFIG_PANIC_NEW_STACK #define CONFIG_ASSERT_HELP +/* compute RW firmware hash at startup */ +#define CONFIG_VBOOT +#define CONFIG_VBOOT_HASH + /* Allow dangerous commands all the time, since we don't have a write protect * switch. */ /* TODO: (crosbug.com/p/9986) This is a serious security hole and should be diff --git a/board/daisy/ec.tasklist b/board/daisy/ec.tasklist index 91e4d353c0..c9785dd4a9 100644 --- a/board/daisy/ec.tasklist +++ b/board/daisy/ec.tasklist @@ -15,6 +15,7 @@ */ #define CONFIG_TASK_LIST \ TASK(WATCHDOG, watchdog_task, NULL) \ + TASK(VBOOTHASH, vboot_hash_task, NULL) \ TASK(POWERLED, power_led_task, NULL) \ TASK(PMU_TPS65090_CHARGER, pmu_charger_task, NULL) \ TASK(KEYSCAN, keyboard_scan_task, NULL) \ diff --git a/board/snow/board.h b/board/snow/board.h index 5d7c2dab2d..f84917a814 100644 --- a/board/snow/board.h +++ b/board/snow/board.h @@ -26,6 +26,10 @@ #undef CONFIG_TASK_PROFILING #define CONFIG_WATCHDOG_HELP +/* compute RW firmware hash at startup */ +#define CONFIG_VBOOT +#define CONFIG_VBOOT_HASH + #ifndef __ASSEMBLER__ /* By default, enable all console messages except keyboard */ diff --git a/board/snow/ec.tasklist b/board/snow/ec.tasklist index 91e4d353c0..c9785dd4a9 100644 --- a/board/snow/ec.tasklist +++ b/board/snow/ec.tasklist @@ -15,6 +15,7 @@ */ #define CONFIG_TASK_LIST \ TASK(WATCHDOG, watchdog_task, NULL) \ + TASK(VBOOTHASH, vboot_hash_task, NULL) \ TASK(POWERLED, power_led_task, NULL) \ TASK(PMU_TPS65090_CHARGER, pmu_charger_task, NULL) \ TASK(KEYSCAN, keyboard_scan_task, NULL) \ |