Fallback environment in barebox

Juergen Beisert jbe at pengutronix.de
Sun Feb 27 04:50:48 EST 2011


Boaz Ben-David wrote:
> We want to implement a mechanism in barebox to use two environment
> partitions.
> i.e. when barebox boots it will go to the first by default and try to
> use it. If for some reason it fails
> it will boot with the second one.
>
> What is the best way to implement this in barebox and did anyone do it
> already?

AFAIR a mechanism like this is already present in barebox. It tries the first 
environment, checks its CRC and if it fails it tries the next, if one exists.
Just register env0, env1, .....

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | Phone: +49-8766-939 228     |
Vertretung Sued/Muenchen, Germany             | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686              | http://www.pengutronix.de/  |



More information about the barebox mailing list