Fallback environment in barebox

Boaz Ben-David boaz.bd at wellsense-tech.com
Sun Feb 27 05:09:59 EST 2011


Sounds great.

Is there any documentation on how to "register" environments?

Thanks,

Boaz.

On Sun, 2011-02-27 at 10:50 +0100, Juergen Beisert wrote:
> 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