From: Sughosh Ganu <urwithsughosh@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] help:error occured when 'saveenv'
Date: Tue, 23 Oct 2007 22:01:25 -0400 [thread overview]
Message-ID: <20071024020125.GB6563@GNU> (raw)
In-Reply-To: <200710232019279531436@163.com>
Hi,
> when running the 'saveenv' ,it promted out
>
> "Saving Environment to Flash...
> Error: start address not on sector boundary"
>
> #define PHYS_FLASH_1 0x10000000
> #define PHYS_FLASH_SIZE 0x1000000 /* 16 megs main flash */
> #define CFG_FLASH_BASE PHYS_FLASH_1
> #define CFG_MAX_FLASH_BANKS 1
> #define CFG_MAX_FLASH_SECT 128
>
> #define CFG_ENV_IS_IN_FLASH 1
> #ifdef CONFIG_SKIP_LOWLEVEL_INIT
> #define CFG_ENV_ADDR (PHYS_FLASH_1 + 0x60000) /* after u-boot.bin */
This seems ok, as the above address is on the sector boundary
(multiple of 128k).
> #define CFG_ENV_SIZE 0x10000 /* sectors are 64K here */
> #else
> #define CFG_ENV_ADDR (PHYS_FLASH_1 + 0xe000) /* between
> #boot.bin and u-boot.bin.gz */
This seems to be the problem area. Change the offset 0xe000
so that the address is a multiple of 128k.
--
sughosh
next prev parent reply other threads:[~2007-10-24 2:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-23 12:19 [U-Boot-Users] help:error occured when 'saveenv' xbc_5419
2007-10-24 2:01 ` Sughosh Ganu [this message]
2007-11-01 6:08 ` Verma
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=20071024020125.GB6563@GNU \
--to=urwithsughosh@gmail.com \
--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