From: Michael Lawnick <nospam_lawnick@gmx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] saveenv command erases flash u-boot
Date: Mon, 23 Feb 2009 13:24:44 +0100 [thread overview]
Message-ID: <gnu4ic$s43$1@ger.gmane.org> (raw)
In-Reply-To: <22159964.post@talk.nabble.com>
rudresh said the following:
[quoting repaired]
> Michael Lawnick wrote:
>>
>> rudresh said the following:
>>> i'm using u-boot -1.3.0 in MPC8313 evaluation board, it having a NAND ,
>>> NOR
>>> Flash , u-boot stored in NOR flash. when i do the saveenv , reset command
>>> the u-boot is erased. i'm not able to fix this issue. help me to fix
>>> this
>>> issue
>>
>> Sounds U-Boot and environment share a flash sector.
>> You'll have to give more info for correct diagnostic:
>> Flash size, sector size, u-boot start address and size, position of
>> environment data and if applicable of redundancy data.
> Details are as follows .. the flash size 16Mbyte Nor flash.. NAND flash
> 256MB.
> /*
> * Environment
> */
>
> #if defined(CONFIG_NAND_U_BOOT)
...
> #elif !defined(CFG_RAMBOOT)
...
> #else
...
> #endif
And now you expect me to guess your boot setting?
Assuming neither CONFIG_NAND_U_BOOT nor CFG_RAMBOOT are set: check
u-boot image size against 256k, as the offset of environment seems to be
set to CFG_MONITOR_BASE + 0x40000
Or is ONFIG_NAND_U_BOOT set (would be the explanation why you mention
NAND at all ...)? With u-boot in NOR this indicates a general
code/configuration problem in your image.
HTH
--
Michael
next prev parent reply other threads:[~2009-02-23 12:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-23 7:56 [U-Boot] saveenv command erases flash u-boot rudresh
2009-02-23 8:11 ` Michael Lawnick
2009-02-23 11:40 ` rudresh
2009-02-23 12:24 ` Michael Lawnick [this message]
2009-02-23 9:34 ` Wolfgang Denk
2009-02-23 11:46 ` rudresh
2009-02-23 12:04 ` Wolfgang Denk
2009-02-24 9:09 ` Norbert van Bolhuis
2009-02-24 9:56 ` Frank Svendsbøe
2009-02-24 11:46 ` rudresh
2009-02-24 12:01 ` Norbert van Bolhuis
2009-02-24 13:07 ` Frank Svendsbøe
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='gnu4ic$s43$1@ger.gmane.org' \
--to=nospam_lawnick@gmx.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 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.