From: Georg Schardt <schardt@team-ctech.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] saveenv problems
Date: Fri, 31 Oct 2008 11:57:32 +0100 [thread overview]
Message-ID: <490AE49C.80304@team-ctech.de> (raw)
-----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-----
next reply other threads:[~2008-10-31 10:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-31 10:57 Georg Schardt [this message]
2008-10-31 11:30 ` [U-Boot] saveenv problems Wolfgang Denk
2008-10-31 13:53 ` Georg Schardt
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=490AE49C.80304@team-ctech.de \
--to=schardt@team-ctech.de \
--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