public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] FADS and ICU862 Environment problems
@ 2003-06-20  1:45 Nye Liu
  2003-06-21  0:21 ` Wolfgang Denk
  0 siblings, 1 reply; 24+ messages in thread
From: Nye Liu @ 2003-06-20  1:45 UTC (permalink / raw)
  To: u-boot

The current FADS code does not seem to restore the environment properly,
and i can't figure out what it SHOULD do.

Right now, relocate_code only relocates up to the end of text
(_init_end), and since CFG_MONITOR_BASE + CONFIG_MONITOR_LEN is after
CFG_ENV_ADDR, ENV_IS_EMBEDDED is set.

Since ENV_IS_EMBEDDED is set, env_reloca_spec in flash.c does NOT
memcpy(env_addr,CFG_ENV_ADDR,CFG_ENV_SIZE).

There are several refereces to environment[] in start.S that are
ifdefed out if CONFIG_FADS or CONFIG_ICU862, which don't look right.

My fix is to remove those ifdefs, and make sure that ENV_IS_EMBEDDED
is NOT set by reducing CFG_MONITOR_LEN to not include the environment.

What is the correct behavior?

TIA

-- 
Nye Liu
nliu at mrv.com
(818) 772-6235x248

"Who would be stupid enough to quote a fictitious character?"
	-- Don Quixote

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2003-06-27 21:27 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-20  1:45 [U-Boot-Users] FADS and ICU862 Environment problems Nye Liu
2003-06-21  0:21 ` Wolfgang Denk
2003-06-21  0:28   ` Nye Liu
2003-06-22 16:22     ` Wolfgang Denk
2003-06-23 21:25       ` Nye Liu
2003-06-23 21:35         ` Wolfgang Denk
2003-06-23 21:42           ` Nye Liu
2003-06-24 18:24             ` Wolfgang Denk
2003-06-24 20:28               ` Nye Liu
2003-06-24 20:38                 ` Wolfgang Denk
2003-06-24 23:59                   ` Nye Liu
2003-06-26  6:50                     ` Wolfgang Denk
2003-06-26 21:40                       ` Nye Liu
2003-06-26 22:03                         ` Wolfgang Denk
2003-06-26 22:10                           ` Nye Liu
2003-06-26 22:31                             ` Wolfgang Denk
2003-06-26 22:41                               ` Nye Liu
2003-06-26 23:10                                 ` Wolfgang Denk
2003-06-27 21:27                                   ` Nye Liu
2003-06-27  3:47                               ` [U-Boot-Users] a small problem Yabo Ding
2003-06-27  6:51                                 ` [U-Boot-Users] " Wolfgang Denk
2003-06-27  7:56                                   ` Yabo Ding
2003-06-25  0:27       ` [U-Boot-Users] FADS and ICU862 Environment problems Nye Liu
2003-06-26  6:53         ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox