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>
This commit is contained in:
Vincent Palatin
2012-08-06 16:57:41 +00:00
committed by Gerrit
parent 7c5c4792e9
commit d8e04f0db7
4 changed files with 10 additions and 0 deletions

View File

@@ -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

View File

@@ -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) \

View File

@@ -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 */

View File

@@ -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) \