mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* A/B boot on PhyCORE iMX6 with U-Boot env
@ 2021-03-05 17:30 Sébastien Merle
  2021-03-05 20:23 ` Ahmad Fatoum
  0 siblings, 1 reply; 2+ messages in thread
From: Sébastien Merle @ 2021-03-05 17:30 UTC (permalink / raw)
  To: barebox

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.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-05 20:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-05 17:30 A/B boot on PhyCORE iMX6 with U-Boot env Sébastien Merle
2021-03-05 20:23 ` Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox