mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 23:22:37 +02:00
Reduce serial output, otherwise flashing will fail very often
This has been tested on hardware by me. Corresponding to flashrom svn r327 and coreboot v2 svn r3682. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
parent
394131ef14
commit
1b0f61f80b
@ -52,12 +52,14 @@ int write_49lf040(struct flashchip *flash, uint8_t *buf)
|
|||||||
erase_sector_jedec(bios, i * page_size);
|
erase_sector_jedec(bios, i * page_size);
|
||||||
|
|
||||||
/* write to the sector */
|
/* write to the sector */
|
||||||
printf("%04d at address: 0x%08x ", i, i * page_size);
|
if (i % 10 == 0)
|
||||||
|
printf("%04d at address: 0x%08x ", i, i * page_size);
|
||||||
|
|
||||||
write_sector_jedec(bios, buf + i * page_size,
|
write_sector_jedec(bios, buf + i * page_size,
|
||||||
bios + i * page_size, page_size);
|
bios + i * page_size, page_size);
|
||||||
|
|
||||||
printf("\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b");
|
if (i % 10 == 0)
|
||||||
|
printf("\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user