Hi, sorry for delay, still busy... Today I tested flashrom on my PC (P31/ICH7) with my SPI prog & Macronix MX25L1605 chip. It seems to work OK but noticably slower than my SPIPGM. E.g. reading is guess 2x longer but erase was extremely long ~3min vs 10sec. Well I use chip erase instruction to do it fastest as possible and flashrom probably erase sector by sector... Also it would be good to add some progress indicator (it's stupid when looking at "wait..." message several minutes and tempting to hit ctrl-c/reset :)
Martin
--------------------------------------------------
flashrom v0.9.2-r1039 on MS-DOS 7 (i686), built with libpci 3.1.5, GCC 4.3.2, little endian flashrom is free software, get the source code at http://www.flashrom.org
Calibrating delay loop... OS timer resolution is 50000 usecs, 3178M loops per second, 10 myus = 0 us, 100 myus = 0 us, 1000 myus = 0 us, 10000 myus = 0 us, 200000 myus = 220000 us, OK. Initializing rayer_bitbang_spi programmer Using port 0x378 as I/O base for parallel port access. ... Probing for Macronix MX25L1605, 2048 KB: probe_spi_rdid_generic: id1 0xc2, id2 0x2015 Chip status register is 00 Chip status register: Status Register Write Disable (SRWD) is not set Chip status register: Bit 6 is not set Chip status register: Bit 5 / Block Protect 3 (BP3) is not set Chip status register: Bit 4 / Block Protect 2 (BP2) is not set Chip status register: Bit 3 / Block Protect 1 (BP1) is not set Chip status register: Bit 2 / Block Protect 0 (BP0) is not set Chip status register: Write Enable Latch (WEL) is not set Chip status register: Write In Progress (WIP/BUSY) is not set Found chip "Macronix MX25L1605" (2048 KB, SPI) at physical address 0xffe00000. ... === This flash part has status UNTESTED for operations: ERASE The test status of this chip may have been updated in the latest development version of flashrom. If you are running the latest development version, please email a report to flashrom@flashrom.org if any of the above operations work correctly for you with this flash part. Please include the flashrom output with the additional -V option for all operations you tested (-V, -Vr, -Vw, -VE), and mention which mainboard or programmer you tested. Thanks for your help! === No operations were specified.
Carl-Daniel Hailfinger wrote:
I found a bug in the bitbanging SPI core (buffer confusion) and fixed it. This version also reduces reach chunk size to 256 bytes instead of 65536 bytes. That makes buffer management more efficient (only one round of memory allocations).
I did't tested lpt-spi yet, I'll have to prepare some flash chip first...
It would be cool if you could test the lpt-spi code. New flashrom.exe is available at http://khepri.openbios.org/~idwer/flashrom/r1039-patchwork-1441/
flashrom -p rayer_bitbang_spi -V
Regards, Carl-Daniel