public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 00/14] Implement fastboot over NAND and sparse transfers
@ 2015-10-15 12:34 Maxime Ripard
  2015-10-15 12:34 ` [U-Boot] [PATCH v2 01/14] mtd: uboot: Add meaningful error message Maxime Ripard
                   ` (14 more replies)
  0 siblings, 15 replies; 42+ messages in thread
From: Maxime Ripard @ 2015-10-15 12:34 UTC (permalink / raw)
  To: u-boot

Hi everyone,

Here is the second attempt at getting fastboot flashing functions
working on top of a NAND, for arbitraly large images.

While the NAND support itself was quite easy to do, the support for
the Android sparse images was quite difficult to add, and ended up
being a quite huge refactoring of the sparse parse already in tree,
that was tied to the MMC layer.

This serie has been tested on a CHIP and an A13-Olinuxino, two
Allwinner devices, the CHIP for the NAND, and the Cubietruck to test
the MMC.

Let me know what you think,
Maxime

Changes from v1:
  - Added support for multiple chunks transfers
  - fixed a bug in the image parsing block counts
  - Take the flashing errors into account now, instead of ignoring
    them.
  - Changed the name of the sparse images file to image-sparse.*
  - Fixed the floating point computations issues
  - Added the CONFIG_MUSB_GADGET option
  - Take NAND bad blocks into account now

Maxime Ripard (14):
  mtd: uboot: Add meaningful error message
  sparse: Move main header parsing to a function of its own
  sparse: Refactor chunk parsing function
  sparse: Simplify multiple logic
  fastboot: Move fastboot response functions to fastboot core
  sparse: Implement storage abstraction
  fastboot: Implement flashing session counter
  sparse: Implement several chunks flashing
  fastboot: Implement NAND backend
  fastboot: nand: Add pre erase and write hooks
  sparse: Rename the file and header
  sunxi: Add support for android boot image
  sunxi: A13-Olinuxino: Enable the USB OTG controller
  sunxi: cubietruck: Enable the USB OTG controller

 common/Makefile                     |   7 +-
 common/aboot.c                      | 244 ----------------------
 common/fb_mmc.c                     |  96 +++++----
 common/fb_nand.c                    | 213 +++++++++++++++++++
 common/image-sparse.c               | 393 ++++++++++++++++++++++++++++++++++++
 configs/A13-OLinuXino_defconfig     |   3 +
 configs/Cubietruck_defconfig        |   5 +
 drivers/mtd/mtd_uboot.c             |   2 +-
 drivers/usb/gadget/f_fastboot.c     |  54 ++++-
 include/configs/sunxi-common.h      |   1 +
 include/fastboot.h                  |  22 ++
 include/fb_mmc.h                    |   5 +-
 include/fb_nand.h                   |  11 +
 include/{aboot.h => image-sparse.h} |  17 +-
 14 files changed, 776 insertions(+), 297 deletions(-)
 delete mode 100644 common/aboot.c
 create mode 100644 common/fb_nand.c
 create mode 100644 common/image-sparse.c
 create mode 100644 include/fastboot.h
 create mode 100644 include/fb_nand.h
 rename include/{aboot.h => image-sparse.h} (53%)

-- 
2.5.3

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

end of thread, other threads:[~2015-11-13  1:27 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-15 12:34 [U-Boot] [PATCH v2 00/14] Implement fastboot over NAND and sparse transfers Maxime Ripard
2015-10-15 12:34 ` [U-Boot] [PATCH v2 01/14] mtd: uboot: Add meaningful error message Maxime Ripard
2015-11-13  1:26   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-10-15 12:34 ` [U-Boot] [PATCH v2 02/14] sparse: Move main header parsing to a function of its own Maxime Ripard
2015-11-13  1:26   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-10-15 12:34 ` [U-Boot] [PATCH v2 03/14] sparse: Refactor chunk parsing function Maxime Ripard
2015-11-13  1:27   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-10-15 12:34 ` [U-Boot] [PATCH v2 04/14] sparse: Simplify multiple logic Maxime Ripard
2015-10-20 19:39   ` Tom Rini
2015-11-13  1:27   ` [U-Boot] [U-Boot,v2,04/14] " Tom Rini
2015-10-15 12:34 ` [U-Boot] [PATCH v2 05/14] fastboot: Move fastboot response functions to fastboot core Maxime Ripard
2015-10-20 19:40   ` Tom Rini
2015-11-13  1:27   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-10-15 12:34 ` [U-Boot] [PATCH v2 06/14] sparse: Implement storage abstraction Maxime Ripard
2015-11-13  1:27   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-10-15 12:34 ` [U-Boot] [PATCH v2 07/14] fastboot: Implement flashing session counter Maxime Ripard
2015-10-20 19:41   ` Tom Rini
2015-11-13  1:27   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-10-15 12:34 ` [U-Boot] [PATCH v2 08/14] sparse: Implement several chunks flashing Maxime Ripard
2015-10-20 19:47   ` Tom Rini
2015-11-13  1:27   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-10-15 12:34 ` [U-Boot] [PATCH v2 09/14] fastboot: Implement NAND backend Maxime Ripard
2015-10-20 19:46   ` Tom Rini
2015-10-21 14:57     ` Maxime Ripard
2015-10-21 20:49       ` Tom Rini
2015-11-13  1:27   ` [U-Boot] [U-Boot,v2,09/14] " Tom Rini
2015-10-15 12:34 ` [U-Boot] [PATCH v2 10/14] fastboot: nand: Add pre erase and write hooks Maxime Ripard
2015-11-13  1:27   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-10-15 12:34 ` [U-Boot] [PATCH v2 11/14] sparse: Rename the file and header Maxime Ripard
2015-10-20 19:46   ` Tom Rini
2015-11-13  1:27   ` [U-Boot] [U-Boot,v2,11/14] " Tom Rini
2015-10-15 12:34 ` [U-Boot] [PATCH v2 12/14] sunxi: Add support for android boot image Maxime Ripard
2015-10-15 18:42   ` Ian Campbell
2015-10-15 12:34 ` [U-Boot] [PATCH v2 13/14] sunxi: A13-Olinuxino: Enable the USB OTG controller Maxime Ripard
2015-11-13  1:27   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-10-15 12:34 ` [U-Boot] [PATCH v2 14/14] sunxi: cubietruck: " Maxime Ripard
2015-11-13  1:27   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-10-17 13:59 ` [U-Boot] [PATCH v2 00/14] Implement fastboot over NAND and sparse transfers Hans de Goede
2015-10-17 14:42   ` Hans de Goede
2015-10-19  8:17     ` Maxime Ripard
2015-10-20 19:32       ` Tom Rini
2015-10-20 19:38         ` Tom Rini

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