Skip to content

RFC Implement "fastboot flash" for eMMC

Lukasz Majewski u-boot 1 version New

Get series with b4
b4 am 20140620081842.50471ae4@amdc2363

Versions newest first

  1. v1 RFC Latest0 of 3 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

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

Read the v1 thread

Cover letter [U-Boot] [RFC PATCH 0/3] Implement "fastboot flash" for eMMC

Hi Steve,

Quoted 13 lines

This series implements the "fastboot flash" command for eMMC devices. It supports both raw and sparse images.

NOTES:
- the support for the "fastboot flash" command is enabled with CONFIG_FASTBOOT_FLASH
- the support for eMMC is enabled with CONFIG_FASTBOOT_FLASH_MMC_DEV
- (future) the support for NAND would be enabled with CONFIG_FASTBOOT_FLASH_NAND(???)
- thus the proposal is to place the code in common/fb_mmc.c and (future) common/fb_nand.c(???), however, this may not be the appropriate location....

Would you consider another approach for providing flashing backend for fastboot?

I'd like to propose reusing of the dfu flashing code for this purpose. Such approach has been used successfully with USB "thor" downloading function.

Since the "fastboot" is using gadget infrastructure (thanks to the effort of Rob Herring) I think that it would be feasible to reuse the same approach as "thor" does. In this way the low level code would be kept in one place and we could refine and test it more thoroughly.

Quoted 22 lines

This has been tested on ARMv7.
This is a WIP -- and I would appreciate some comments/advice... Thanks, Steve

Steve Rae (3):
usb/gadget: fastboot: add sparse image definitions usb/gadget: fastboot: add eMMC support for flash command usb/gadget: fastboot: add support for flash command

 README                          |  10 +++
 common/Makefile                 |   5 ++
 common/fb_mmc.c                 | 144
++++++++++++++++++++++++++++++++++++++++
doc/README.android-fastboot     |   5 +-
drivers/usb/gadget/f_fastboot.c |  31 +++++++++
include/fb_mmc.h                |   8 +++
include/sparse_format.h         |  58 ++++++++++++++++ 7 files
changed, 259 insertions(+), 2 deletions(-) create mode 100644
common/fb_mmc.c create mode 100644 include/fb_mmc.h
 create mode 100644 include/sparse_format.h
Signature · 5 lines
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group