Skip to content

Enable mmc to write sparse images

jassisinghbrar at gmail.com u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3fastboot: sparse: remove redundant argument to write_sparse_imagecommon/fb_mmc.c common/fb_nand.c common/image-sparse.c +1 more+4 -61 reply
2/3fastboot: sparse: make write_sparse_image useable for non-fastbootcommon/fb_mmc.c common/fb_nand.c common/image-sparse.c +1 more+45 -411 reply
3/3mmc: support writing sparse imagescmd/mmc.c+67 -01 reply
3/3mmc: support writing sparse images+0 -04 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/3] Enable mmc to write sparse images

From: Jassi Brar <[email protected]>

Hi,

Having capability to flash sparse images from mmc subsystem could be useful.
For example, non-android/fastboot platforms could leverage the concept. Or some platforms that need to 'pull' updates (get images over tftp and flash using mmc). Or when we want to flash image at some non-zero offset from the start of a partition. Or simply when USB-Device has issues for fastboot to work (my itch).

This patchset first cleans and makes write_sparse_image agnostic of
fastboot and then adds a new 'swrite' command to 'mmc'.

Jassi Brar (3):
fastboot: sparse: remove redundant argument to write_sparse_image
fastboot: sparse: make write_sparse_image useable for non-fastboot
mmc: support writing sparse images

 cmd/mmc.c              | 67 ++++++++++++++++++++++++++++++++++++++++++++++++
 common/fb_mmc.c        |  7 +++--
 common/fb_nand.c       |  6 +++--
 common/image-sparse.c  | 69 +++++++++++++++++++++++---------------------------
 include/image-sparse.h |  6 +++--
 5 files changed, 112 insertions(+), 43 deletions(-)
Signature · 1 line
2.7.4