[U-Boot] saveenv problems

Georg Schardt schardt at team-ctech.de
Fri Oct 31 11:57:32 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hi,

i have a strange problem with the saveenv command, or maybe with my
config :)

After booting a fresh compiled u-boot with the default environment i
can save the env without any problems. U-boot unprotect, erase and
write the flash. but after add a new env-variable, e.g. bootargs,
saveenv will unprotect the flash, erase the flash but then u-boot will
not write the flash because the "Flash not Erased" error.

Is there a different in addressing the env during boot-time, or read
and write ?

#define CONFIG_ENV_IS_IN_FLASH   1
#define CONFIG_ENV_SIZE                    0x2000  // a 8k sector at
the beginning of the flash
#define CONFIG_ENV_SECT_SIZE         0x2000
#define CONFIG_SYS_ENV_OFFSET     0x0000
#define CONFIG_ENV_ADDR                 
(CONFIG_SYS_FLASH_BASE+CONFIG_SYS_ENV_OFFSET)

TEXT_BASE = 0xFFC00000
CONFIG_SYS_FLASH_BASE = 0xFFC0000


Thanks
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iEYEARECAAYFAkkK5JwACgkQUicxT/v10Zu2igCeNnAhiiCejeyubKK83rJPclVo
EJsAoKBcL1+TjxVtGRmSB1XqgQkAoIKZ
=CHB9
-----END PGP SIGNATURE-----



More information about the U-Boot mailing list