can I build two copies of uboot in 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.
Quoted 5 lines · John Stile
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.
Quoted 8 lines
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.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"John" == John Stile <[email protected]> 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.
Signature · 1 line
Bye, Peter Korsgaard