public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tolunay Orkun <listmember@orkun.us>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] CFI driver does not verify writes in buffered mode -	feature?
Date: Wed, 09 May 2007 15:25:34 -0500	[thread overview]
Message-ID: <46422E3E.40703@orkun.us> (raw)
In-Reply-To: <m27iriarft.fsf@sowhat.denx.de>

Detlev Zundel wrote:
> Hi,
> 
> when using the CFI flash driver with CFG_FLASH_USE_BUFFER_WRITE the
> "usual" verification whether the write did indeed happen correctly is
> not done:
> 
>   => erase fc000000 +1
>   
>   . done
>   Erased 1 sectors
>   => mw 200000 55555555 100
>   => cp.b 200000 fc000000 100
>   Copy to Flash... done
>   => md fc000000
>   fc000000: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc000010: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc000020: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc000030: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc000040: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc000050: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc000060: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc000070: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc000080: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc000090: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc0000a0: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc0000b0: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc0000c0: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc0000d0: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc0000e0: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc0000f0: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   => mw 200000 ffffffff 100
>   => cp.b 200000 fc000000 100
>   Copy to Flash... done
>   => md fc000000
>   fc000000: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc000010: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc000020: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc000030: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc000040: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc000050: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc000060: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc000070: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc000080: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc000090: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc0000a0: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc0000b0: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc0000c0: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc0000d0: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc0000e0: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   fc0000f0: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU
>   
> 
> So the write did indeed *not proceed* correctly without the expected
> "flash not erased" error message appearing.

In the above example you are overwriting the same data. Which is OK to 
write without erasing first. You can turn 1 bits to 0 or re-write the 
same data without erasing which is OK. The redundant environment 
implementation takes advantage of this in U-Boot. This is not an error.

Am I missing something?

Tolunay

  reply	other threads:[~2007-05-09 20:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-09 16:32 [U-Boot-Users] CFI driver does not verify writes in buffered mode - feature? Detlev Zundel
2007-05-09 20:25 ` Tolunay Orkun [this message]
2007-05-09 22:33   ` Wolfgang Denk
2007-05-10  3:40     ` Tolunay Orkun
2007-05-10  6:53       ` Detlev Zundel
2007-05-14  3:05         ` Tolunay Orkun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46422E3E.40703@orkun.us \
    --to=listmember@orkun.us \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox