public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Can I read env from RAM in uboot script?
@ 2013-01-26  1:56 John Stile
  2013-01-26  7:41 ` Wolfgang Denk
  0 siblings, 1 reply; 10+ messages in thread
From: John Stile @ 2013-01-26  1:56 UTC (permalink / raw)
  To: u-boot

Is it possible to have uboot read it's environment from a RAM address,
rather than NAND?
OR
Can uboot's scripting support load variables from a RAM address?

My NAND layout has redundant halves:
0
  uboot
  ubootenv
  kernel
  fs
128
  uboot
  ubootenv
  kernel
  fs 
256

My firmware update strategy will update the non-booted side of NAND.

It is easy to hack at91bootstrap, to load a uboots env area at some
RAM address, just as it loads uboot at JUMP_ADDR, but how do I get uboot
to use this preloaded uboot-env?

Since uboot takes its environment area address at compile time, I wonder
if uboot could be made to read it from a RAM address (written there by
at91bootstrap), durring the env_relocate_spec()?

So far I have traced:
cpu/arm926ejs/start.S  calls start_armboot()
lib_arm/board.c start_armboot() calls env_relocate()
./common/env_common.c env_relocate() calls env_relocate_spec()
My u-boot.map indicates my env_relocate_spec() comes from env_nand.o
./common/env_nand.c has env_relocate_spec() has ifdefs for
ENV_IS_EMBEDDED, but my config is not.  and CFG_ENV_IS_IN_NAND which I
am currently configured for. 

So where is a good point of attack, or is there one?

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

end of thread, other threads:[~2013-01-30  1:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-26  1:56 [U-Boot] Can I read env from RAM in uboot script? John Stile
2013-01-26  7:41 ` Wolfgang Denk
2013-01-28 21:19   ` John Stile
2013-01-28 21:48     ` Jeroen Hofstee
2013-01-28 22:01       ` Jeroen Hofstee
2013-01-29  0:25         ` John Stile
2013-01-29  9:58           ` Bo Shen
2013-01-29 17:33             ` John Stile
2013-01-30  1:20               ` Bo Shen
2013-01-29  6:37         ` Wolfgang Denk

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