[U-Boot] *** Warning - bad CRC, using default environment

Detlev Zundel dzu at denx.de
Thu May 20 15:04:42 CEST 2010


Hi Nick,

> Yes, indeed! The warning was trying to let you know that your work flow is
> wrong. Flash can be eased in sectors. The env should be in a sector(s) on
> it's own. There is no need to erase that sector(s) to re-flash U-Boot.
>
> Erase only U-Boot before re-flashing U-Boot. This will keep all you env
> data (which is valuable) intact and the warning will not reappear. If it
> does reappear you've done /something/ wrong and the warning will catch
> that for you again.

Just for completeness, let me mention that we have configurations where
the environment is embedded into the U-Boot image, so there you have to
erase the env in flash to reprogram U-Boot.  Furtunately one usually
updates U-Boot out of a running copy of it, so after the reflash a
"saveenv" solves this specific problem nicely ;)

Cheers
  Detlev

-- 
Narren sind alle, die es scheinen, und die Haelfte derer, die es nicht
scheinen ..  Jedoch ist der groesste Narr, wer es nicht zu sein glaubt
und alle andern dafuer erklaert.
                                    --- Baltasar Gracian
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de


More information about the U-Boot mailing list