mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-26 19:25:02 +00:00
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:
committed by
ChromeOS Commit Bot
parent
5492057875
commit
4e1a9569c3
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user