1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 22:43:17 +02:00

Can now burn 82802ab

Corresponding to coreboot v1 svn r633.
This commit is contained in:
Ronald G. Minnich
2002-09-06 16:58:14 +00:00
parent 6041bcda7a
commit 5643942750
6 changed files with 251 additions and 1 deletions

View File

@ -74,9 +74,13 @@ int write_jedec (struct flashchip * flash, char * buf)
{
int i;
int total_size = flash->total_size *1024, page_size = flash->page_size;
volatile char * bios = flash->virt_addr;
volatile unsigned char * bios = flash->virt_addr;
erase_jedec (flash);
if (*bios != (unsigned char ) 0xff) {
printf("ERASE FAILED\n");
return -1;
}
printf ("Programming Page: ");
for (i = 0; i < total_size/page_size; i++) {
printf ("%04d at address: 0x%08x", i, i * page_size);