Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Unified Diff: gft_wpfw.py

Issue 6778007: gooftool: always process EC before BIOS (workaround for buggy EC) (Closed) Base URL: ssh://gitrw.chromium.org:9222/factory_test_tools.git@master
Patch Set: improve wpfw command Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gft_report.py ('k') | gooftool » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gft_wpfw.py
diff --git a/gft_wpfw.py b/gft_wpfw.py
index 6480c9f0615edd5306b6c54fd3c0d0fa6a2ad60b..e113ed41309e3b41494a76f0e4c005f554e8173f 100755
--- a/gft_wpfw.py
+++ b/gft_wpfw.py
@@ -100,6 +100,11 @@ def EnableWriteProtect(target):
flashrom.disable_write_protect()
if not flashrom.verify_write_protect(layout, 'ro'):
ErrorDie('wpfw: not write-protected (modifiable status): ' + name)
+
+ # Always restore the target to BIOS(spi). Some platforms may fail to reboot if
+ # target is EC(lpc).
+ if target != flashrom.TARGET_BIOS:
+ flashrom.select_target(flashrom.TARGET_BIOS)
return True
« no previous file with comments | « gft_report.py ('k') | gooftool » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698