mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* fastboot sparse support
@ 2018-01-11  7:50 Sascha Hauer
  2018-01-11  7:50 ` [PATCH 1/7] fs: implement ftruncate Sascha Hauer
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Sascha Hauer @ 2018-01-11  7:50 UTC (permalink / raw)
  To: Barebox List

This series adds support for Sparse images to the fastboot code.
Sparse images are necessary to flash images that do not fit into memory.

This requires more changes than I'd like to have, but unfortunately
we have to change the ubiformat code to flash parts of images instead
of only whole images. This change also makes the newly introduced
'u' flag (u for UBI) in the partition description for fastboot necessary.

Anyway, in the end it works as expected and memory size is no longer
a limit for fastboot.

Sascha

----------------------------------------------------------------
Sascha Hauer (7):
      fs: implement ftruncate
      ubiformat: Add ubiformat write function
      Documentation: USB gadget: Add section for partition description
      filetype: Add fastboot sparse format detection
      Add support for fastboot sparse images
      file_list: Add ubi flag
      usb: gadget: fastboot: Add sparse image support

 Documentation/user/usb.rst      |  49 ++++++--
 common/file-list.c              |   3 +
 common/filetype.c               |   5 +
 common/ubiformat.c              |  61 ++++++++++
 drivers/usb/gadget/Kconfig      |   1 +
 drivers/usb/gadget/f_fastboot.c | 235 +++++++++++++++++++++++++++++++++----
 fs/fs.c                         |  22 ++++
 include/file-list.h             |   1 +
 include/filetype.h              |   1 +
 include/image-sparse.h          |  67 +++++++++++
 include/ubiformat.h             |   3 +
 include/unistd.h                |   1 +
 lib/Kconfig                     |   3 +
 lib/Makefile                    |   1 +
 lib/image-sparse.c              | 249 ++++++++++++++++++++++++++++++++++++++++
 15 files changed, 669 insertions(+), 33 deletions(-)
 create mode 100644 include/image-sparse.h
 create mode 100644 lib/image-sparse.c

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

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

end of thread, other threads:[~2018-01-12  8:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-11  7:50 fastboot sparse support Sascha Hauer
2018-01-11  7:50 ` [PATCH 1/7] fs: implement ftruncate Sascha Hauer
2018-01-11  7:50 ` [PATCH 2/7] ubiformat: Add ubiformat write function Sascha Hauer
2018-01-11  7:50 ` [PATCH 3/7] Documentation: USB gadget: Add section for partition description Sascha Hauer
2018-01-11  7:50 ` [PATCH 4/7] filetype: Add fastboot sparse format detection Sascha Hauer
2018-01-11  7:50 ` [PATCH 5/7] Add support for fastboot sparse images Sascha Hauer
2018-01-11  7:50 ` [PATCH 6/7] file_list: Add ubi flag Sascha Hauer
2018-01-11  7:50 ` [PATCH 7/7] usb: gadget: fastboot: Add sparse image support Sascha Hauer
2018-01-12  8:03   ` [PATCH] " Sascha Hauer

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