Hi Scott,
In IBM's case, judging by the address offset (0x1000), it is likely that the management engine (assuming this is an Intel-based machine) is blocking access to that portion of the firmware ROM. They can modify the flash descriptor to allow read access to that region, or they can use a layout file to tell flashrom not to attempt to read the ME region.
In Ericson's case, it could be that the timeout period for polling SCIP is too low. ich7_run_opcode() and ich9_run_opcode() in ichspi.c use a 60ms delay. Perhaps that is not enough time for a bulk erase on the N25Q128?
On Mon, Jun 8, 2015 at 3:09 PM, Scott Emmart (semmart) semmart@micron.com wrote:
Hi I have 2 customers experiencing issues with Bulk erase with our
Micron/Numonyx/ST
N25Q128..3E
16384
SPI
OK
OK
OK
OK
2.700
3.600
What can I do to help get this situation looked at? I am working on getting board names is there any other information you need??
From IBM:
Found Micron/Numonyx/ST flash chip "N25Q128..3E" (16384 kB, SPI).
This chip may contain one-time programmable memory. flashrom cannot read
and may never be able to write it, hence it may not be able to completely
clone the contents of this chip (see man page for details).
Write/erase is not working yet on your programmer in its current configuration.
Continuing anyway.
Flash image seems to be a legacy BIOS. Disabling coreboot-related checks.
Reading old flash chip contents... Transaction error!
SSFS: SCIP=0, FDONE=1, FCERR=1, AEL=0
SSFC: SCGO=0, ACS=0, SPOP=0, COP=1, DBC=63, SME=0, SCF=0
Running OPCODE 0x03 failed at address 0x001000 (payload length was 64).
FAILED.
From Ericson………
N25Q128A13ESF40F
Send OPCODE 0xC7 to flash chip ask for bulk erase, sometimes it work, sometimes it stuck no response back.
Same experiment for Spansion flash works fine.
Open source tool flashrom clear SRWD and BP0, BP1, BP2 and BP3 bits of Status Register prior to erase and write for sure.
Flashrom for "Micron/Numonyx/ST" go 4KB subsector erase in default. Enforce OPCOED 0xD8 performing 64KB erase
“bulk erase” is unstable, and SPI bus stuck in SCIP SPI Cycle in progress. If you have time, we can co-work debugging it about bulk erase bus cycle jam issue.
Found Micron/Numonyx/ST flash chip "N25Q128..3E" (16384 kB, SPI) mapped at physical address 0x00000000ff000000.
Reading old flash chip contents... done.
Erasing and writing flash chip... timeout, ICH9_REG_SSFS=0xf8007401
spi_chip_erase_c7 failed during command execution
Reading current flash chip contents... Error: SCIP never cleared!
Can't read anymore! Aborting.
FAILED!
Uh oh. Erase/write failed. Checking if anything has changed.
Reading current flash chip contents... Error: SCIP never cleared!
Can't even read anymore!
Your flash chip is in an unknown state.
Get help on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom@flashrom.org with the subject "FAILED: <your board name>"!
Thank you,
*Scott Emmart*
Micron Technology, Inc.
Senior Manager | World Wide Customer Engineering Labs http://www.micron.com/solutions/global-customer-labs T: 208 368-3022 I M: 208 585-7337 I semmart@micron.com
[image: logo-micron] http://www.micron.com/
*[image: micron_tag_line]*
flashrom mailing list flashrom@flashrom.org http://www.flashrom.org/mailman/listinfo/flashrom