[flashrom] [PATCH] Real partial writes

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Thu Oct 21 02:05:53 CEST 2010


On 20.10.2010 23:42, Richard A. Smith wrote:
> Here's the result of a write test with this patch.

Thanks!

> rsmith at sparky:/home/src/flashrom$ ./flashrom -p dediprog -Vw
> ~/olpc/ec/ec-1.75/image/ecimage.bin
> flashrom v0.9.3-r1215 on Linux 2.6.36-020636rc7-generic (i686), built
> with libpci 3.0.0, GCC 4.4.3, little endian
> flashrom is free software, get the source code at http://www.flashrom.org
> Calibrating delay loop... OS timer resolution is 2 usecs, 2777M loops
> per second, 10 myus = 11 us, 100 myus = 101 us, 1000 myus = 996 us,
> 10000 myus = 10010 us, 8 myus = 9 us, OK.
> Initializing dediprog programmer
> Found USB device (0483:dada).
> Found a SF100   V:5.1.5
> Setting SPI voltage to 3.500 V
> Probing for Winbond W25x10, 128 KB: probe_spi_rdid_generic: id1 0xef,
> id2 0x3011
> Chip status register is 00
> Found chip "Winbond W25x10" (128 KB, SPI) at physical address 0xfffe0000.
> ===
> This flash part has status UNTESTED for operations: PROBE READ ERASE
> WRITE

Right, we need to add that chip to the tested list.


> Reading old flash chip contents...
> Erasing and writing flash chip... Looking at blockwise erase function
> 0... trying... 0x000000-0x000fff, 0x001000-0x001fff,
> 0x002000-0x002fff, 0x003000-0x003fff, 0x004000-0x004fff,
> 0x005000-0x005fff, 0x006000-0x006fff, 0x007000-0x007fff,
> 0x008000-0x008fff, 0x009000-0x009fff, 0x00a000-0x00afff,
> 0x00b000-0x00bfff, 0x00c000-0x00cfff, 0x00d000-0x00dfff,
> 0x00e000-0x00efff, 0x00f000-0x00ffff, 0x010000-0x010fff,
> 0x011000-0x011fff, 0x012000-0x012fff, 0x013000-0x013fff,
> 0x014000-0x014fff, 0x015000-0x015fff, 0x016000-0x016fff,
> 0x017000-0x017fff, 0x018000-0x018fff, 0x019000-0x019fff,
> 0x01a000-0x01afff, 0x01b000-0x01bfff, 0x01c000-0x01cfff,
> 0x01d000-0x01dfff, 0x01e000-0x01efff, 0x01f000-0x01ffff,
> SUCCESS.
> COMPLETE.

Those messages should only be printed if erase worked everywhere. This
also means that we're probably writing garbage.

> Verifying flash... VERIFY FAILED at 0x00001000! Expected=0xfe,
> Read=0x85, failed byte count from 0x00000000-0x0001ffff: 0x32c8

Regards,
Carl-Daniel

-- 
http://www.hailfinger.org/





More information about the flashrom mailing list