Hi Idwer,
Here is the output working with a N25Q064 chip. Note I'm using a dediprog to talk to the chip and not an internal programmer. Hope the output is sufficient, is there any other output you need?
I also updated the email addresses in the patch, I wrote the patch a long time ago and did not realize I switched email since....
* Probe $ ./flashrom --programmer dediprog flashrom v0.9.5.2-rN25Q on Linux 3.2.13-1-ARCH (x86_64), built with libpci 3.1.9, GCC 4.7.0 20120324 (prerelease), little endian flashrom is free software, get the source code at http://www.flashrom.org
Calibrating delay loop... OK. Found Numonyx flash chip "N25Q064" (8192 kB, SPI) on dediprog. No operations were specified.
* Read $ ./flashrom --programmer dediprog -r dump.bin flashrom v0.9.5.2-rN25Q on Linux 3.2.13-1-ARCH (x86_64), built with libpci 3.1.9, GCC 4.7.0 20120324 (prerelease), little endian flashrom is free software, get the source code at http://www.flashrom.org
Calibrating delay loop... OK. Found Numonyx flash chip "N25Q064" (8192 kB, SPI) on dediprog. Reading flash... done.
* Erase $ ./flashrom --programmer dediprog -E flashrom v0.9.5.2-rN25Q on Linux 3.2.13-1-ARCH (x86_64), built with libpci 3.1.9, GCC 4.7.0 20120324 (prerelease), little endian flashrom is free software, get the source code at http://www.flashrom.org
Calibrating delay loop... OK. Found Numonyx flash chip "N25Q064" (8192 kB, SPI) on dediprog. Erasing and writing flash chip... Erase/write done.
Note: The erase operation took a long time (~20min) but I verifyd that the chip was indeed erased correctly.
* Write $ ./flashrom --programmer dediprog -w flashrom v0.9.5.2-rN25Q on Linux 3.2.13-1-ARCH (x86_64), built with libpci 3.1.9, GCC 4.7.0 20120324 (prerelease), little endian flashrom is free software, get the source code at http://www.flashrom.org
Calibrating delay loop... OK. Found Numonyx flash chip "N25Q064" (8192 kB, SPI) on dediprog. Reading old flash chip contents... done. Erasing and writing flash chip... Erase/write done. Verifying flash... VERIFIED.
// Niklas
Signed-off-by: Niklas Söderlund niklas.soderlund@ericsson.com --- flashchips.c | 29 +++++++++++++++++++++++++++++ flashchips.h | 1 + 2 files changed, 30 insertions(+)
diff --git a/flashchips.c b/flashchips.c index b6296c5..114bcf2 100644 --- a/flashchips.c +++ b/flashchips.c @@ -5010,6 +5010,35 @@ const struct flashchip flashchips[] = { },
{ + .vendor = "Numonyx", + .name = "N25Q064", + .bustype = BUS_SPI, + .manufacture_id = ST_ID, + .model_id = ST_N25Q064, + .total_size = 8192, + .page_size = 256, + .tested = TEST_OK_PREW, + .probe = probe_spi_rdid, + .probe_timing = TIMING_ZERO, + .block_erasers = + { + { + .eraseblocks = { {4 * 1024, 2048 } }, + .block_erase = spi_block_erase_20, + }, { + .eraseblocks = { {64 * 1024, 128} }, + .block_erase = spi_block_erase_d8, + }, { + .eraseblocks = { {8 * 1024 * 1024, 1} }, + .block_erase = spi_block_erase_c7, + } + }, + .unlock = spi_disable_blockprotect, + .write = spi_chip_write_256, + .read = spi_chip_read, + }, + + { .vendor = "PMC", .name = "Pm25LV010", .bustype = BUS_SPI, diff --git a/flashchips.h b/flashchips.h index de3c79d..89d20bb 100644 --- a/flashchips.h +++ b/flashchips.h @@ -574,6 +574,7 @@ #define ST_M29W010B 0x23 #define ST_M29W040B 0xE3 #define ST_M29W512B 0x27 +#define ST_N25Q064 0xBA17
#define SYNCMOS_MVC_ID 0x40 /* SyncMOS (SM) and Mosel Vitelic Corporation (MVC) */ #define MVC_V29C51000T 0x00
On Tue, Apr 10, 2012 at 05:11:14PM +0200, Niklas Söderlund wrote:
Signed-off-by: Niklas Söderlund niklas.soderlund@ericsson.com
Thanks, committed in r1518.
Uwe.