summaryrefslogtreecommitdiff
path: root/board/bds
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-06-22 12:56:56 -0700
committerGerrit <chrome-bot@google.com>2012-06-25 15:37:42 -0700
commit900c0215b4f47551c850259ef7c716285c46e8b5 (patch)
treed467eb3c50b9a3def174db18b7dc6dcfb110ab43 /board/bds
parentaab92d552d7274f00e624bc8bc74ec41d3101b6d (diff)
downloadchrome-ec-900c0215b4f47551c850259ef7c716285c46e8b5.tar.gz
Add hash support
EC computes a SHA-256 hash of its RW code on boot. Also adds host and console commands to tell the EC to recompute the hash, or hash a different section of flash memory. BUG=chrome-os-partner:10777 TEST=manual 1) ectool echash -> should match what the EC precomputed 2a) ectool echash recalc 0 0x10000 5 2b) on EC console, 'hash 0 0x10000 5' 2c) results should agree 3a) on ec console, 'hash 0 0x3e000' then quickly 'hash abort' 3b) ectool echash -> status should be unavailable 4) ectool echash start 0 0x3e000 6 && ectool echash && ectool echash abort && sleep 2 && ectool echash status should be busy, then unavailable Signed-off-by: Randall Spangler <rspangler@chromium.org> Change-Id: I6806d7b4d4dca3a74f476092551b4dba875d558e Reviewed-on: https://gerrit.chromium.org/gerrit/26023
Diffstat (limited to 'board/bds')
-rw-r--r--board/bds/ec.tasklist1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/bds/ec.tasklist b/board/bds/ec.tasklist
index beaaec5552..c8cf1637e0 100644
--- a/board/bds/ec.tasklist
+++ b/board/bds/ec.tasklist
@@ -15,5 +15,6 @@
*/
#define CONFIG_TASK_LIST \
TASK(WATCHDOG, watchdog_task, NULL) \
+ TASK(VBOOTHASH, vboot_hash_task, NULL) \
TASK(LIGHTBAR, lightbar_task, NULL) \
TASK(CONSOLE, console_task, NULL)