mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-04 22:11:41 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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) \
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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) \
|
||||
|
||||
Reference in New Issue
Block a user