Hi all,
I have a T420 with Macronix MX25L6406E flash. flashrom's first erase algorithm fails, the second succeeds, which is obviously not fatal, but means an unimportant (internal flasher), annoying (raspi) to painful (arduino) delay. Would be awesome if the second erase algorithm could be default for this chip!
best regards,
Arian
bad quality pictures: https://semioptimal.net/t420_flash_side.jpg https://semioptimal.net/t420_onlyflash.jpg
relevant flashrom output: Found Macronix flash chip "MX25L6405" (8192 kB, SPI) mapped at physical address 0x00000000ff800000. Reading old flash chip contents... done. Erasing and writing flash chip... FAILED at 0x00001000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x0000ffff: 0x1653 ERASE FAILED! Reading current flash chip contents... done. Looking for another erase function. Erase/write done. Verifying flash... VERIFIED.
On Fri, 19 Aug 2016 00:33:01 +0200 Arian Sanusi coreboot@semioptimal.net wrote:
Hi all,
I have a T420 with Macronix MX25L6406E flash. flashrom's first erase algorithm fails, the second succeeds, which is obviously not fatal, but means an unimportant (internal flasher), annoying (raspi) to painful (arduino) delay. Would be awesome if the second erase algorithm could be default for this chip!
You could also just select the right chip definition :) Your log looks very much as if you got a MX25L64* with 4 kB sectors (e.g. MX25L6406E as you wrote) but the chip set definition you chose (MX25L6405) has 64 kB sectors in the smallest eraser.
You could also just select the right chip definition :) Your log looks very much as if you got a MX25L64* with 4 kB sectors (e.g. MX25L6406E as you wrote) but the chip set definition you chose (MX25L6405) has 64 kB sectors in the smallest eraser.
Ah thank you, I didn't even notice...
I don't remember how I settled for the *05, however, attempting the 06E results in:
root@kiso:~# flashrom -p internal:laptop=force_I_want_a_brick -c MX25L640E -w coreboot.rom flashrom v0.9.9-r1954 on Linux 4.7.0-rc7-amd64 (x86_64) flashrom is free software, get the source code at https://flashrom.org
Error: Unknown chip 'MX25L640E' specified. Run flashrom -L to view the hardware supported in this flashrom version.
and the 06E appears in "flashrom -L"'s output...
Best regards, Arian
On Sun, 21 Aug 2016 12:15:20 +0200 Arian Sanusi coreboot@semioptimal.net wrote:
You could also just select the right chip definition :) Your log looks very much as if you got a MX25L64* with 4 kB sectors (e.g. MX25L6406E as you wrote) but the chip set definition you chose (MX25L6405) has 64 kB sectors in the smallest eraser.
Ah thank you, I didn't even notice...
I don't remember how I settled for the *05, however, attempting the 06E results in:
root@kiso:~# flashrom -p internal:laptop=force_I_want_a_brick -c MX25L640E -w coreboot.rom flashrom v0.9.9-r1954 on Linux 4.7.0-rc7-amd64 (x86_64) flashrom is free software, get the source code at https://flashrom.org
Error: Unknown chip 'MX25L640E' specified. Run flashrom -L to view the hardware supported in this flashrom version.
and the 06E appears in "flashrom -L"'s output...
The *06E is part of a definition comprising multiple chip names. You need to use the complete string as parameter for -c.