Skip to content

RFC SPL: DFU Support in SPL

Marek Vasut u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest0 of 5 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 5 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/5] SPL: DFU Support in SPL
Quoted 44 lines · Ravi Babu

Traditionally the DFU support is available only as part 2nd stage boot loader(u-boot) and DFU is not supported in SPL.

The SPL-DFU feature is useful for boards which has only USB inteface and do not have external interface like ethernet or MMC/SD to boot the board.

This patch adds DFU support in SPL to flash binary images to factory or bare-metal boards to memory devices like SPI, eMMC, MMC/SD card using
USB interface.
As a reference, refer to application note [3] on SPL-DFU support based on 2014.07 u-boot.

Note: I could not find better option to isolate dfu source to include/exclude in Makefile when SPL-DFU feature enabled/disabled, please suggest any better option.

Tested on dra7xx SoCs family.
[1] is EVM console output with SPL-DFU/SPI enabled.
[2] is ubuntu host console output.

references:
[1] http://pastebin.ubuntu.com/16730701/
[2] http://pastebin.ubuntu.com/16730765/
[3] http://www.ti.com/lit/an/sprac33/sprac33.pdf

Ravi Babu (5):
spl: dfu: add dfu support in SPL
spl: dfu: fs: adding ext4/fat filesystem support for SPL-DFU
spl: dfu: adding dfu support functions for SPL-DFU
dfu: spl: add generic spl-dfu function in common-spl
dra7x: spl: dfu: adding SPL-DFU support for dra7x platform

 Kconfig                           |   40 +++++++++++++++++++++++++++++++++++++
 board/ti/dra7xx/evm.c             |   20 +++++++++++++++++++
 cmd/Makefile                      |   20 ++++++++++++++++++-
 common/Makefile                   |   32 ++++++++++++++++++++---------
 common/command.c                  |    2 +-
 common/spl/spl.c                  |   11 ++++++++++
 drivers/dfu/dfu.c                 |   28 ++++++++++++++++++++++++++
 drivers/dfu/dfu_mmc.c             |   28 ++++++++++++++++++++++++++
 drivers/mmc/Makefile              |    3 +--
Quoted 9 lines
 drivers/mmc/mmc_private.h         |    2 +-
 fs/Makefile                       |   12 ++++++++++-
 include/configs/dra7xx_evm.h      |    3 +--
 include/configs/ti_omap5_common.h |    2 --
 include/dfu.h                     |    8 ++++++++
 include/spl.h                     |    1 +
 scripts/Makefile.spl              |   13 ++++++++++++
 16 files changed, 206 insertions(+), 19 deletions(-)

+CC Lukasz , this is his turf

Signature · 2 lines
Best regards,
Marek Vasut