From: Thies Peter Thiesen <TP.Thiesen@gmx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] MPC8641HPVN saveenv, newstart u-boot stops
Date: Wed, 27 Jun 2012 16:19:26 +0200 [thread overview]
Message-ID: <20120627141926.5090@gmx.net> (raw)
MPC8641HPVN saveenv, newstart u-boot stops
Hi All,
ich used the board freescale HPCN8641D board with nwest u-boot.
only after saveenv and following power off and on, u-boot stops directly without serial output.
Because analyse ich have seen:
The command "saveenv" writes environment variable directy the code-area from u-boot(flash).
I thing, the hard coded offset to flash "environment variable " after the .text area in the flash
is to be small actually.
I give some informations:
Power PC MPC8641D
Flash area u-boot:
version_string: 0xeff00004 .... __bss_end__ 0xeff7a360 size = 0x7a360
In command saveenv...env_flash.c
Routine saveenv
if (flash_sect_erase((long)flash_addr, end_addr))
used following addresses:
flash_addr = 0xeff60000 end_addr = 0xeff6ffff
static env_t *flash_addr = (env_t *)CONFIG_ENV_ADDR;
File MPC8641HPCN.h
#ifndef CONFIG_SYS_RAMBOOT
#define CONFIG_ENV_IS_IN_FLASH 1
#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE + 0x60000)
#define CONFIG_ENV_SECT_SIZE 0x10000 /* 64K(one sector) for env */
#else
#define CONFIG_ENV_IS_NOWHERE 1 /* Store ENV in memory only */
#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - 0x1000)
#endif
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE /* start of monitor */
#define CONFIG_SYS_TEXT_BASE 0xeff00000
I thing the constand with 0x60000 is to small (u-boot size is bigger)
For my test I have changed 0x60000 into 0x70000
#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE + 0x70000)
Can someone evaluate this analysis?
Thanks for the Help.
Thiesen
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
reply other threads:[~2012-06-27 14:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20120627141926.5090@gmx.net \
--to=tp.thiesen@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox