Dear Manuel,

in message <[EMAIL PROTECTED]> you wrote:
> 
> My problem the structure of the enviroment:
> If I understand:
> 4 byte crc; 1 byte flags, 0x20000-5 byte data.

Correct - the flag byte is only present if you use redundant
environment.

> The CRC is over the data bytes,( not the flags byte included) , right ??

Correct. That's because the flasg byte indicates  the  state  of  the
environment  copy  (current  ->  bit = 1, or obsolete -> bit = 0). It
relies on the feature of NOR flash that you can  always  program  '1'
bits to '0', even single bits in a single byte.

> What about the flag byte, which values should I have to write here ?

See above. But you might have problems doing such  a  thing  on  NAND
storage.

Best regards,

Wolfgang Denk

-- 
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: [EMAIL PROTECTED]
I have a very small mind and must live with it.    -- Edsger Dijkstra

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to