Files
OpenCellular/common
Randall Spangler ab727c4941 Add more paranoia for flash write protect
If the entire flash is protected (as it normally is after software
sync), fail all flash write/erase operations.

Add a shadow copy of the all_now flag.

BUG=chrome-os-partner:16727
BRANCH=link
TEST=manual

Verify that flash operations work properly before all_now.  Then enable HW WP
and
   flashwp enable
   flashwp now
and try
   flasherase 0x38000 0x1000
   flashwrite 0x38000 0x100
Those commands should fail with error 7

From the host side
   ectool flasherase 0x38000 0x1000
   echo 'Khaaaaaaaaaaan' > /tmp/b16727
   ectool flashwrite 0x38000 /tmp/b16727
should also fail.

Change-Id: I99a4d2bb86080bd12c900582a8fbdfc79c99916c
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/39517
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
2012-12-10 15:42:21 -08:00
..
2012-10-24 10:09:20 -07:00
2012-10-26 09:49:38 -07:00
2012-10-26 09:49:38 -07:00
2012-07-17 13:11:44 -07:00
2012-07-17 13:11:44 -07:00
2012-10-24 19:07:20 -07:00
2012-10-29 16:52:49 -07:00
2012-10-25 11:24:02 -07:00
2012-10-30 15:33:25 -07:00
2012-10-25 11:23:59 -07:00
2012-10-23 17:32:01 -07:00
2012-10-29 16:52:49 -07:00
2012-10-26 09:49:38 -07:00
2012-10-25 14:12:11 -07:00
2012-10-25 14:12:10 -07:00
2012-10-25 17:03:44 -07:00
2012-08-09 17:40:37 -07:00
2012-10-29 16:52:49 -07:00
2012-10-30 12:42:43 -07:00
2012-11-26 14:49:49 -08:00
2012-10-26 09:49:37 -07:00
2012-07-23 23:30:33 -07:00