cgpt: Enable fast-verify when writing back to NOR

flashrom has been fixed, we could enable this flag for better
performance.

BUG=None
BRANCH=None
TEST=cgpt show /dev/mtd0 works much faster now.

Change-Id: I7a6f5b8649b4293d9b4b4878ae8e599ea1c35289
Reviewed-on: https://chromium-review.googlesource.com/242292
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Tested-by: Nam Nguyen <namnguyen@chromium.org>
Commit-Queue: Nam Nguyen <namnguyen@google.com>
This commit is contained in:
Nam T. Nguyen
2015-01-21 10:04:38 -08:00
committed by ChromeOS Commit Bot
parent 5492057875
commit 4e1a9569c3

View File

@@ -231,12 +231,12 @@ int WriteNorFlash(const char *dir) {
ret++;
int nr_fails = 0;
if (ForkExecL(dir, FLASHROM_PATH, "-i", "RW_GPT_PRIMARY:rw_gpt_1",
"-w", NULL) != 0) {
"-w", "--fast-verify", NULL) != 0) {
Warning("Cannot write the 1st half of rw_gpt back with flashrom.\n");
nr_fails++;
}
if (ForkExecL(dir, FLASHROM_PATH, "-i", "RW_GPT_SECONDARY:rw_gpt_2",
"-w", NULL) != 0) {
"-w", "--fast-verify", NULL) != 0) {
Warning("Cannot write the 2nd half of rw_gpt back with flashrom.\n");
nr_fails++;
}