1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 14:33:18 +02:00

Remove false alarm of erase/write, use verify '-v' if you are not sure about the integrity

Corresponding to flashrom svn r19 and coreboot v2 svn r1486.
This commit is contained in:
Ollie Lho
2004-03-27 00:18:15 +00:00
parent 070647d114
commit 8b8897a5fd
8 changed files with 77 additions and 138 deletions

View File

@ -33,8 +33,8 @@
int write_49lf040(struct flashchip *flash, unsigned char *buf)
{
int i;
int total_size = flash->total_size * 1024, page_size =
flash->page_size;
int total_size = flash->total_size * 1024;
int page_size = flash->page_size;
volatile char *bios = flash->virt_addr;
printf("Programming Page: ");
@ -48,8 +48,7 @@ int write_49lf040(struct flashchip *flash, unsigned char *buf)
printf("%04d at address: 0x%08x ", i, i * page_size);
write_sector_jedec(bios, buf + i * 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");
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);
}
printf("\n");