diff options
author | Tom Hughes <tomhughes@chromium.org> | 2020-05-18 14:49:43 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-30 05:16:45 +0000 |
commit | 5a2c16ee17339b96eef8351157673253738b461b (patch) | |
tree | 20c58304edca68e7ef2edda3b43bec402d49d725 /test/build.mk | |
parent | a832f50a83e6d897cf22f306b4e01da4ee40fe4e (diff) | |
download | chrome-ec-5a2c16ee17339b96eef8351157673253738b461b.tar.gz |
test: Add test for flash write protection
This test demonstrates the inconsistency between STM32H743 (dartmonkey)
and STM32F412 (bloonchipper).
BRANCH=none
BUG=b:155897971
TEST=On bloonchipper after flashing flash_write_protect.bin test:
* Enable HW WP: dut-control fw_wp_en:on
* Reboot to RO: reboot ro
* Enable flash protection: runtest 1
=> PASS
* Reboot to RO: reboot ro
* Try to disable flash protection: runtest 2
=> FAIL
TEST=On dartmonkey after flashing flash_write_protect.bin test:
* Enable HW WP: dut-control fw_wp_en:on
* Reboot to RO: reboot ro
* Enable flash protection: runtest 1
=> PASS
* Reboot to RO: reboot ro
* Try to disable flash protection: runtest 2
=> PASS
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I6eb69257f84f79a6609984efbdad7dd37803c8f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2209419
Commit-Queue: Yicheng Li <yichengli@chromium.org>
Tested-by: Yicheng Li <yichengli@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'test/build.mk')
-rw-r--r-- | test/build.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/build.mk b/test/build.mk index af5ed3355e..8db465dedc 100644 --- a/test/build.mk +++ b/test/build.mk @@ -129,6 +129,7 @@ extpwr_gpio-y=extpwr_gpio.o fan-y=fan.o flash-y=flash.o flash_physical-y=flash_physical.o +flash_write_protect-y=flash_write_protect.o fpsensor-y=fpsensor.o fpsensor_crypto-y=fpsensor_crypto.o fpsensor_state-y=fpsensor_state.o |