Files
OpenCellular/common
Randall Spangler 900c0215b4 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
2012-06-25 15:37:42 -07:00
..
2012-06-25 15:37:42 -07:00
2012-05-25 13:34:06 -07:00
2012-06-22 15:35:41 -07:00
2012-06-25 15:37:41 -07:00
2012-06-25 07:15:50 -07:00
2012-05-31 18:56:47 +08:00
2012-05-25 13:34:06 -07:00
2012-06-07 14:33:26 -07:00
2012-06-25 15:37:42 -07:00
2012-05-25 13:34:06 -07:00
2012-05-25 13:34:06 -07:00
2012-05-14 13:35:03 -07:00
2012-06-25 15:37:42 -07:00
2012-06-20 23:30:02 -07:00
2012-06-19 09:53:03 -07:00