Skip to contentSkip to conversation

for MPC8315E-RDB ref board, is CONFIG_SYS_MONITOR_LEN set too low?

DISCUSSION Robert P. J. Day 1 participant 1 message Jul 6, 2016

lore
Share & tools
lore
#0 lore raw

it's possible i'm just hopelessly misreading something, but i just
built (using pure defaults) an image for my MPC8315E-RDB dev kit, and while the current board config header file include/configs/MPC8315ERDB.h contains:

/*
* The reserved memory
*/
#define CONFIG_SYS_MONITOR_LEN (384 * 1024) /* Reserve 384 kB for Mon */

the actual u-boot binary constructed for this target was:

  -rwxr-xr-x. 2 rpjday rpjday 423964 Jul  5 06:46  \
	u-boot-mpc8315e-rdb-v2016.03+gitAUTOINC+df61a74e68-r0.bin

given that that same file defines:

  #if !defined(CONFIG_SYS_RAMBOOT)
        #define CONFIG_ENV_IS_IN_FLASH  1
        #define CONFIG_ENV_ADDR         \
                        (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)

isn't that going to result in persistent u-boot environment being saved over top of the tail end of u-boot in NOR flash?

or am i just confused?

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================