* [Buildroot] can I build two copies of uboot in buildroot?
@ 2013-01-25 21:13 John Stile
2013-01-26 0:01 ` John Stile
2013-01-26 9:45 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: John Stile @ 2013-01-25 21:13 UTC (permalink / raw)
To: buildroot
I have hacked at91bootstrap to select and boot one of two copies of
uboot+env on a NAND flash, but I had to compile the second uboot my
self, since the environment address is set at compile time, and
buildroot only builds one copy of uboot.
How might I hack uboot to build two different copies of uboot? I'm just
changing the address location of the uboot environment, and saving the
image as a different name.
I wasn't able to figure out how to make the uboot environment address a
parameter to uboot, so I also haven't tried to have at91bootstrap call
uboot with this parameter, but that might be easier.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] can I build two copies of uboot in buildroot?
2013-01-25 21:13 [Buildroot] can I build two copies of uboot in buildroot? John Stile
@ 2013-01-26 0:01 ` John Stile
2013-01-26 9:45 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: John Stile @ 2013-01-26 0:01 UTC (permalink / raw)
To: buildroot
On Fri, 2013-01-25 at 13:13 -0800, John Stile wrote:
> I have hacked at91bootstrap to select and boot one of two copies of
> uboot+env on a NAND flash, but I had to compile the second uboot my
> self, since the environment address is set at compile time, and
> buildroot only builds one copy of uboot.
>
> How might I hack uboot to build two different copies of uboot? I'm just
> changing the address location of the uboot environment, and saving the
> image as a different name.
>
> I wasn't able to figure out how to make the uboot environment address a
> parameter to uboot, so I also haven't tried to have at91bootstrap call
> uboot with this parameter, but that might be easier.
>
As this seems to be difficult to do, maybe it is the wrong approach.
From at91bootstrap, it is easy to also load uboots env area into another
RAM address.
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?
Maybe I could build one uboot, and one env, write it to two places,
have at91bootstrap copy the proper uboot to RAM, copy the proper
environment to RAM, and have uboot (via hack or script) acquire the
proper parameters from RAM. This would allow for 2 NAND areas, and a
one fall back NOR image.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] can I build two copies of uboot in buildroot?
2013-01-25 21:13 [Buildroot] can I build two copies of uboot in buildroot? John Stile
2013-01-26 0:01 ` John Stile
@ 2013-01-26 9:45 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2013-01-26 9:45 UTC (permalink / raw)
To: buildroot
>>>>> "John" == John Stile <john@stilen.com> writes:
John> I have hacked at91bootstrap to select and boot one of two copies of
John> uboot+env on a NAND flash, but I had to compile the second uboot my
John> self, since the environment address is set at compile time, and
John> buildroot only builds one copy of uboot.
Yes, you can (currently) only build a single u-boot in buildroot.
John> How might I hack uboot to build two different copies of uboot? I'm just
John> changing the address location of the uboot environment, and saving the
John> image as a different name.
Why not just use redundant u-boot environment and let both u-boots use
both? That way both environments are in sync and you gain redundancy.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-01-26 9:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-25 21:13 [Buildroot] can I build two copies of uboot in buildroot? John Stile
2013-01-26 0:01 ` John Stile
2013-01-26 9:45 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.