Am Montag, den 13.09.2010, 22:22 +0200 schrieb Mattias Mattsson:
I did som testing. It seems like flashrom have to run its erase routine twice to get error-free output after something is written to the flash chip:
# flashrom -w random.bin
# flashrom -VE (...) Erasing flash chip... Looking at blockwise erase function 0... trying... 0x000000-0x01ffff, 0x020000-0x037fff, 0x038000-0x039fff, 0x03a000-0x03bfff, 0x03c000-0x03ffff, ERASE FAILED at 0x0003c000! Expected=0xff, Read=0x41, failed byte count from 0x0003c000-0x0003ffff: 0x3fb9 ERASE FAILED!
Looking at blockwise erase function 1... trying... 0x000000-0x03ffff, SUCCESS.
# flashrom -VE (again) (...) Erasing flash chip... Looking at blockwise erase function 0... trying... 0x000000-0x01ffff, 0x020000-0x037fff, 0x038000-0x039fff, 0x03a000-0x03bfff, 0x03c000-0x03ffff, SUCCESS.
Looks like the "block erase" command fails for the boot block, but the "chip erase" command works for the boot block. Maybe this is some boot block protection mode. You should check the datasheet.
Regards, Michael Karcher