[U-Boot-Users] FADS and ICU862 Environment problems

Wolfgang Denk wd at denx.de
Fri Jun 27 00:31:29 CEST 2003


In message <20030626221032.GA28649 at zumanetworks.com> you wrote:
>
> Ok. To summarize:
> 
> If ENV_IS_EMBEDDED is set in FADS, it does not get copied during
> relocation due to common/env_flash.c
> 
> If ENV_IS_EMBEDDED is NOT set (by reducing MONITOR_LEN to not
> include ENV), i get this error.

Sorry, I don't know much about the FADS (and actually I really  don;t
want to care about broken hardware like this; but anyway).

Which specific board configuration are you using?

Checking "include/configs/FADS860T.h" I see:

#define CFG_MONITOR_LEN         (272 << 10)     /* Reserve 272 kB for Monitor */
...
#define CFG_ENV_IS_IN_FLASH     1
#define CFG_ENV_OFFSET          0x00040000
#define CFG_ENV_SIZE            0x4000  /* Total Size of Environment Sector */
#define CFG_ENV_SECT_SIZE       0x40000 /* see README - env sector total size */


After building the board "u-boot.map" says:

...
.text           0x02800000    0x15538 
 cpu/mpc8xx/start.o(.text)
 .text          0x02800000     0x2468 cpu/mpc8xx/start.o
                0x028001c8                _start_of_vectors
...
                0x0281b77c                __init_end = .
                0x0281b77c                __bss_start = .
...
.ppcenv         0x02840000     0x4000
 common/environment.o(.ppcenv)
 .ppcenv        0x02840000     0x4000 common/environment.o
                0x02840000                environment
                0x02844000                _end = .
                0x02844000                PROVIDE (end, .)
Address of section .text set to 0x2800000
...


So the text segment starts at 0x02800000, and one sector (or 256  kB)
later  at  0x02840000  the  environment  follows.  CFG_MONITOR_LEN is
bigger than __bss_start, so ENV_IS_EMBEDDED should be set.

You are right,  the  environment  will  NOT  be  copied  in  function
env_relocate_spec()  in "common/env_flash.c", but it _will_ be copied
in  function  env_relocate()   in   "common/env_common.c"   (assuming
gd->env_valid is zero).


I think this is correct. What am I missing?

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
grep me no patterns and I'll tell you no lines.




More information about the U-Boot mailing list