On Fri, Dec 03, 2021 at 09:52:00AM -0800, Trent Piepho wrote: > On Fri, Dec 3, 2021 at 4:42 AM Konstantin Kletschke > <konstantin.kletschke@xxxxxxxxxxxxx> wrote: > > The documentation looks very good and comprehensive overall but may be > > its me not getting > > the part how and where the shared data is properly stored. > > You should add a node of "barebox,state" to the *Barebox* device tree. > Barebox needs to read state when it boots to determine the partition > to use and set boot attempts. You also need in aliases { state = > &your_state_node: }: so it knows which state node it should use. FYI, there are a few more pointers in the docs too: <https://www.barebox.org/doc/latest/user/state.html> In short: barebox state is meant to be read (and written) from the Linux world too, in contrast to the barebox env, which is only meant to be used by barebox itself. You probably also want to delete your bootchooser variables from the env so they don't cause confusion :-) You can inspect the state variables with 'devinfo state', and set them via 'state.variablename=value'. They should also show up in 'global'. - Roland -- Roland Hieber, Pengutronix e.K. | r.hieber@xxxxxxxxxxxxxx | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox