From 4e1a9569c352e90da32e3d7bff461c4197dfac67 Mon Sep 17 00:00:00 2001 From: "Nam T. Nguyen" Date: Wed, 21 Jan 2015 10:04:38 -0800 Subject: [PATCH] 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 Tested-by: Nam Nguyen Commit-Queue: Nam Nguyen --- cgpt/cgpt_nor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cgpt/cgpt_nor.c b/cgpt/cgpt_nor.c index 17502a73b1..95c2f495d3 100644 --- a/cgpt/cgpt_nor.c +++ b/cgpt/cgpt_nor.c @@ -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++; }