diff options
author | Ronald G. Minnich <rminnich@gmail.com> | 2002-09-06 16:58:14 +0000 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2002-09-06 16:58:14 +0000 |
commit | 56439427500146bf125b081406275be55fa5d9e3 (patch) | |
tree | 5a0b1c587d80a2fcc65fe89acdaa8f203d0d31b3 /jedec.c | |
parent | 6041bcda7ac8c8a7470bba58e8b26cdfd5746679 (diff) | |
download | ast2050-flashrom-56439427500146bf125b081406275be55fa5d9e3.zip ast2050-flashrom-56439427500146bf125b081406275be55fa5d9e3.tar.gz |
Can now burn 82802ab
Corresponding to coreboot v1 svn r633.
Diffstat (limited to 'jedec.c')
-rw-r--r-- | jedec.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |