A/B boot on PhyCORE iMX6 with U-Boot env

Sébastien Merle sebastien.merle at stritzinger.com
Fri Mar 5 17:30:22 GMT 2021


Hi,

First, I am a newbie to this and if I should use another channel to ask these questions, please forgive me and redirect me to the proper place.

I am trying to setup A/B boot on a a phyCORE imx6 board with barebox from EMMC. To test the state framework I added Barebox’s imx6ul-phytec-state.dtsi to my device tree. 
 
I am confused about the &eeprom node in imx6ul-phytec-state.dtsi used for the state backend, what is this defining ? Is this really storing the state in the EMMC ?

We would rather use U-Boot env, as our firmware creation tools only support that for now. To setup my firmware update I need to define the offset of barebox, barebox environment and U-Boot environment but I can’t find what offsets I should use so nothing clash. How could I figure out these offsets ?

The idea was to add a U-Boot environment and use a script to boot A or B in function of the U-Boot variables. Is it even possible ?

If it is possible, do I need to add a partition of the EMMC in my device tree as shown in https://www.barebox.org/doc/latest/devicetree/bindings/barebox/barebox,uboot-environment.html ?

I would be grateful for any pointers to documentation or examples to setup A/B boot on similar platform (without yocto).

Thank you very much for your time.

Best regards,
Sebastien Merle,
Peer Stritzinger GmbH.


More information about the barebox mailing list