Discussion:
[flashrom] New chip erase function
M***@gmx.de
2018-10-28 17:59:41 UTC
Permalink
Hi,
i have a problem with flashing a new blank bios chip. It´s a MX25L3206E chip.

Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
Found Macronix flash chip "MX25L3206E/MX25L3208E" (4096 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x00000fff: 0xffb
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase function.
FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x0000ffff: 0xc2e5
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase function.
FAILED at 0x00000136! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x0000ffff: 0xb25d
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase function.
FAILED at 0x00000157! Expected=0xff, Found=0xfe, failed byte count from 0x00000000-0x003fffff: 0x2ef018
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase function.
FAILED at 0x00000073! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x003fffff: 0x2ed6f7
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase function.
Looking for another erase function.
Looking for another erase function.
No usable erase functions left.
FAILED!
Uh oh. Erase/write failed. Checking if anything has changed.
Reading current flash chip contents... done.
Apparently at least some data has changed.
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail ***@flashrom.org, thanks!

I started flashrom with : " sudo flashrom -n --programmer linux_spi:dev=/dev/spidev0.0,spispeed=512 --chip "MX25L3206E/MX25L3208E" -f --write /tmp/t430.rom "

I can´t skip the erase function, my thought -n and -f would help but no difference.

For any help i would be thankful.

Regards,

max
Nico Huber
2018-10-28 21:18:24 UTC
Permalink
Hello Max,
Post by M***@gmx.de
Hi,
i have a problem with flashing a new blank bios chip. It´s a MX25L3206E chip.
the failed byte counts in the log look rather random, which usually
means the hardware setup is failing. Did you try to read+verify with
this setup? only if reading is 100% reliable, writing will work.

Do you have the plain chip connected or is it already soldered to the
board? If the former, make sure to connect all input pins, i.e. /HOLD
and /WP too. If the latter, power supply can be a problem; using the
regular laptop PSU works best (might have to get it into a wake-on-lan
state). Also, the T530 lacks pull-ups on the /CS lines of both flash
chips. If that is the case for the T430 too, idk, but if, you should
make sure that the /CS of the chip you _don't_ want to access is
pulled high.

Hope that helps,
Nico

Continue reading on narkive:
Loading...