[flashrom] Resolved M25P128 erase/write failed on raspberry pi

wangmengk at digitalchina.com wangmengk at digitalchina.com
Wed Mar 18 04:07:30 CET 2015


Hi all,
    I have encountered unstable failed when rewrite M25P128 via raspberry
pi, sometimes cannot read out chip id(0x00), sometimes failed @ erase/write
process, at beginning I'm confused because another chip(MX25L128) can work
fine on the same platform, I found similar issue at maillist(attached
below), but in my scenario the unconnected pin is HOLD(low is enable),
after connected HOLD pin to VCC(3.3Volt), M25P128 can work fine.



>[flashrom] MX25L128 Support

>Brian Rak brak at gameservers.com
>Thu Feb 6 02:19:00 CET 2014
>Previous message: [flashrom] MX25L128 Support
>Next message: [flashrom] status report (write works!)
>Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>So, I connected WP to ground (instead of leaving it unconnected), and
>reduced the speed (spispeed=8000).  Looking at a binary comparison of
>the original file versus what was actually written, it seems that it was
>writing parts of it successfully, but corrupting data every few bytes.
>
>I'm guessing either the raspberry pi can't handle the higher speeds, or
>I'm getting interference from something.
>
>Either way, I've done a couple erase, write, read cycles and it's been
>working fine.
>
>On 2/4/2014 8:16 PM, Brian Rak wrote:
>> So, after realizing that the MX25L256 was the wrong chip, I've
>> obtained a few of the correct chips (MX25L12845EMI-10G).  These are
>> detected by flashrom, but writes are failing.
>>
>> Erase/write done.
>> Verifying flash... FAILED at 0x00000002! Expected=0x55, Found=0x75,
>> failed byte count from 0x00000000-0x00ffffff: 0x3e5cb3
>> Your flash chip is in an unknown state.
>> Please report this on IRC at chat.freenode.net (channel #flashrom) or
>> mail flashrom at flashrom.org, thanks!
>>
>> This is using a raspberry pi as a programmer, and:
>>
>> ./flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=32000 -w
>> ../flashrom/ipmi/SMT_313.bin -o debug1
>>
>> -rw-r--r-- 1 root root 16777216 Jan  2
19:10 ../flashrom/ipmi/SMT_313.bin
>>
>>
>> Any suggestions here?  -o debug1 is attached
>>
>>
>> _______________________________________________
>> flashrom mailing list
>> flashrom at flashrom.org
>> http://www.flashrom.org/mailman/listinfo/flashrom


-------------------------------------------------------------------------------------------------------------------
免责声明(Disclaimer)
1.此电子邮件包含来自神州数码的信息,而且是机密的或者专用的信息。这些信息是供所有以上列出的个人或者团体使用的。如果您不是此邮件的预期收件人,请勿阅读、复制、转发或存储此邮件。如果已误收此邮件,请通知发件人。
This e-mail may contain confidential and/or privileged information from Digital China and is intended solely for the attention and use of the person(s) named above. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this email is strictly forbidden.
2.本公司不担保本电子邮件中信息的准确性、适当性或完整性,并且对此产生的任何错误或疏忽不承担任何责任。
The content provided in this e-mail can not be guaranteed and assured to be accurate, appropriate for all, and complete by Digital China, and Digital China can not be held responsible for any error or negligence derived therefrom.
3.接收方应在接收电子邮件或任何附件时检查有无病毒。本公司对由于转载本电子邮件而引发病毒产生的任何损坏不承担任何责任。
The internet communications through this e-mail can not be guaranteed or assured to be error or virus-free, and the sender do not accept liability for any errors, omissions or damages arising therefrom.





More information about the flashrom mailing list