Skip to contentSkip to conversation

Memory testing of flash

U-Boot vk 2 participants 4 messages Jan 31, 2012 – Feb 1, 2012 3 messages not in the archive

lore
Share & tools
lore

vk

author
#0 lore raw

Is it safer to test flash during bootup...what if power gets off half a way while writing data on address at which uboot source code is located?Then uboot will never get started??

#1 lore raw

Dear vk,

Quoted 3 lines · In message <[email protected]> you wrote:

Is it safer to test flash during bootup...what if power gets off half a way while writing data on address at which uboot source code is located?Then uboot will never get started??

Write testing of flash devices on a regular base (like as part of the POST at every power-on or even at every boot cycle has never been a clever idea. It is risky. And I doubt if people who design such a test understant the failure mechanisms of such devices, and what can be done to prevent problems.

In most cases I've seen so far the tests did not do anything good. They only reduced the life time of the devices. A really stupid thing to do.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The first 90% of a project takes 90% of the time, the last 10%  takes
the other 90% of the time.

A message that is not in the archive (sent off-list or not yet received): CAHD55i3Odt_e9PdEAoyE=JhRwb5jaKem=xp7PRB-Oe1rqN9EJg@mail.gmail.com

#3 lore raw

Dear Vaibhav Kothari,

please keep the ML on Cc:

Quoted 6 lines · In message <CAHD55i3Odt_e9PdEAoyE=JhRwb5jaKem=xp7PRB-Oe1rqN9EJg@mail.gmail.com>…

Thank you very much....your answer is really very helpful..

Though if i wanted to test flash all sectors but not one which contains uboot code ...is it possible to do so??how?

Sure. Try for example:

=> erase all

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
What is research but a blind date with knowledge?      -- Will Harvey

A message that is not in the archive (sent off-list or not yet received): CAHD55i12Pbk+8RD+MrBaquQPE79UFVy8kRD5jMiNQh81CB06xQ@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw

Thnx for the previous post

You said that it is not fruitful idea to test flash post test at every boot up as it is reduces the life cycle of flash??is there any mechanism to prevent that?

and also i am using spi serial w25x32 flash and i dont know if it is CFI complaint or not but i know the board specific flash data...Do i need to build a board specific flash driver??