[U-Boot-Users] CFI driver does not verify writes in buffered mode - feature?

Detlev Zundel dzu at denx.de
Wed May 9 18:32:22 CEST 2007


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.

The behaviour is not consistent, so either we should do verification
of the write or we should have some kind of warning here.  Does anyone
see an easy way to become consistent here?

Thanks
  Detlev

-- 
Emacs seems a more likely candidate  to contain a mail system than the
mail system to contain an Emacs, so this is the way it was done.
                                            -- Bernard S. Greenberg
--
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office: Kirchenstr. 5, D-82194 Groebenzell, Germany +49 8142 66989 40




More information about the U-Boot mailing list