mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* i.MX NAND Boot: Make update robust against power failures
@ 2016-03-15 11:19 Sascha Hauer
  2016-03-15 11:19 ` [PATCH 01/11] bbu: Allow to refresh/repair images Sascha Hauer
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Sascha Hauer @ 2016-03-15 11:19 UTC (permalink / raw)
  To: Barebox List

The i.MX6 allows to store the barebox image and all control data around
it redundantly in the NAND. This can be used to make a barebox update
safe against power failures. The following series implements this. It
makes use of the just sent mtd-peb API.

Sascha

----------------------------------------------------------------
Sascha Hauer (11):
      bbu: Allow to refresh/repair images
      mtd: nand: export nand_check_erased_buf
      imx-bbu-nand-fcb: factor out layout functions
      imx-bbu-nand-fcb: Use mtd-peb API to write firmware
      imx-bbu-nand-fcb: factor out a fcb write function
      imx-bbu-nand-fcb: erase on demand
      imx-bbu-nand-fcb: Only write FCBs/DBBTs when necessary
      imx-bbu-nand-fcb: When writing firmware return new bad blocks
      imx-bbu-nand-fcb: Print error when writing blocks fails
      imx-bbu-nand-fcb: Make robust against power cuts
      imx-bbu-nand-fcb: Print error message when out of pebs

 Documentation/user/updating.rst |   8 +
 commands/barebox-update.c       |  26 +-
 common/bbu.c                    |  12 +-
 common/imx-bbu-nand-fcb.c       | 968 +++++++++++++++++++++++++++++++++-------
 drivers/mtd/nand/nand_base.c    |   2 +-
 include/bbu.h                   |   1 +
 include/linux/mtd/nand.h        |   1 +
 7 files changed, 854 insertions(+), 164 deletions(-)

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2016-03-15 11:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-15 11:19 i.MX NAND Boot: Make update robust against power failures Sascha Hauer
2016-03-15 11:19 ` [PATCH 01/11] bbu: Allow to refresh/repair images Sascha Hauer
2016-03-15 11:19 ` [PATCH 02/11] mtd: nand: export nand_check_erased_buf Sascha Hauer
2016-03-15 11:19 ` [PATCH 03/11] imx-bbu-nand-fcb: factor out layout functions Sascha Hauer
2016-03-15 11:19 ` [PATCH 04/11] imx-bbu-nand-fcb: Use mtd-peb API to write firmware Sascha Hauer
2016-03-15 11:19 ` [PATCH 05/11] imx-bbu-nand-fcb: factor out a fcb write function Sascha Hauer
2016-03-15 11:19 ` [PATCH 06/11] imx-bbu-nand-fcb: erase on demand Sascha Hauer
2016-03-15 11:19 ` [PATCH 07/11] imx-bbu-nand-fcb: Only write FCBs/DBBTs when necessary Sascha Hauer
2016-03-15 11:19 ` [PATCH 08/11] imx-bbu-nand-fcb: When writing firmware return new bad blocks Sascha Hauer
2016-03-15 11:19 ` [PATCH 09/11] imx-bbu-nand-fcb: Print error when writing blocks fails Sascha Hauer
2016-03-15 11:19 ` [PATCH 10/11] imx-bbu-nand-fcb: Make robust against power cuts Sascha Hauer
2016-03-15 11:19 ` [PATCH 11/11] imx-bbu-nand-fcb: Print error message when out of pebs Sascha Hauer

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