mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Updating barebox from Linux
@ 2020-02-04 14:08 Christian Eggers
  2020-02-04 15:02 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Eggers @ 2020-02-04 14:08 UTC (permalink / raw)
  To: barebox

Platform: i.MX6 (booting from NAND)

I would like to be able to update Barebox from Linux using a framework like 
RAUC or swupdate. The RAUC documentation states:

https://rauc.readthedocs.io/en/latest/advanced.html#bootloader-update-ideas
> 7.6.3. Bootloader Update Ideas
> 
> The NXP i.MX6 supports up to four bootloader copies when booting from NAND
> flash. The ROM code will try each copy in turn until it finds one which is
> readable without uncorrectable ECC errors and has a correct header. By
> using the trait of NAND flash that interrupted writes cause ECC errors and
> writing the first page (containing the header) last, the bootloader images
> can be replaced one after the other, while ensuring that the system will
> boot even in case of a crash or power failure.
> 
> The slot type could be called “boot-imx6-nand” analogous to eMMC.

In the barebox documentation I only found how to update barebox via the 
barebox_update command within barebox itself.

Updating barebox seems to be SoC specific. Is there already any existing code 
to do this from Linux? Or would it be more wise to write the new barebox image 
to a temporary UBI partition and let barebox do the update itself on next 
reboot?

regards
Christian





_______________________________________________
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:[~2020-02-04 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-04 14:08 Updating barebox from Linux Christian Eggers
2020-02-04 15:02 ` Sascha Hauer

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