All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alessandro Rubini <rubini-list@gnudd.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-BOOT] error: end address not on sector boundary	when I use saveenv cmd
Date: Wed, 5 Aug 2009 17:46:03 +0200	[thread overview]
Message-ID: <20090805154603.GA1860@mail.gnudd.com> (raw)
In-Reply-To: <5A47E75E594F054BAF48C5E4FC4B92AB0305FC60C1@dbde02.ent.ti.com>

>   I already looked at my  config file, but couldn't root cause the problem
>   Here are some of the definitions from my configs, incase anything wrong

>      CONFIG_SYS_FLASH_BASE  0x10000000
>      CONFIG_ENV_ADDR        0x10040000

Ok. But you'd better copy whole lines from config file instead of
choosing words from them. Sometimes the error is in the details.

>                 SECTOR_SIZE SZ_256K  // 256KB sector size

(the comment is redundant here)

so the environment is in the second sector (it starts at the
beginning of a sector). You problem is with the end, so
CFG_ENV_SIZE must be wrong in your config. It should be
256k as well. 

/alessandro

  reply	other threads:[~2009-08-05 15:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-05 10:14 [U-Boot] [U-BOOT] error: end address not on sector boundary when I use saveenv cmd Penda, Naveen Kumar
2009-08-05 10:39 ` Alessandro Rubini
2009-08-05 15:24   ` Penda, Naveen Kumar
2009-08-05 15:46     ` Alessandro Rubini [this message]
2009-08-05 16:01       ` Penda, Naveen Kumar
2009-08-05 19:56         ` Wolfgang Denk
2009-08-06 15:10           ` Penda, Naveen Kumar

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=20090805154603.GA1860@mail.gnudd.com \
    --to=rubini-list@gnudd.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.