Skip to content

RFC dfu: update dfu stack and use them for stm32mp1

Patrick Delaunay u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest14 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14dfu: cosmetic: cleanup sf to avoid checkpatch errordrivers/dfu/dfu.c drivers/dfu/dfu_sf.c+6 -51 reply
2/14dfu: sf: add partition support for nor backenddrivers/dfu/dfu_sf.c include/dfu.h+53 -01 reply
3/14dfu: prepare the support of multiple interfacedrivers/dfu/dfu.c include/dfu.h+41 -121 reply
4/14dfu: allow to manage DFU on several devicescmd/dfu.c drivers/dfu/dfu.c+72 -91 reply
5/14dfu: allow read with 0 data for EOF indicationdrivers/dfu/dfu.c+2 -01 reply
6/14dfu: add backend for MTD devicedrivers/dfu/Kconfig drivers/dfu/Makefile drivers/dfu/dfu.c +2 more+262 -11 reply
7/14dfu: add partition support for MTD backenddrivers/dfu/dfu_mtd.c include/dfu.h+79 -11 reply
8/14dfu: add DFU virtual backenddrivers/dfu/Kconfig drivers/dfu/Makefile drivers/dfu/dfu.c +2 more+83 -11 reply
9/14dfu: add callback for flush and initiated operationdrivers/dfu/dfu.c include/dfu.h+21 -01 reply
10/14stm32mp1: activate DFU support and command MTDconfigs/stm32mp15_basic_defconfig configs/stm32mp15_trusted_defconfig+8 -00 replies
11/14stm32mp1: activate SET_DFU_ALT_INFOboard/st/stm32mp1/README board/st/stm32mp1/stm32mp1.c include/configs/stm32mp1.h+194 -00 replies
12/14stp32mp1: configs: activate CONFIG_MTD_SPI_NANDconfigs/stm32mp15_basic_defconfig configs/stm32mp15_trusted_defconfig+2 -00 replies
13/14stm32mp1: board: add spi nand supportboard/st/stm32mp1/stm32mp1.c include/configs/stm32mp1.h+35 -40 replies
14/14stm32mp1: add support for virtual partition readboard/st/stm32mp1/stm32mp1.c configs/stm32mp15_basic_defconfig configs/stm32mp15_trusted_defconfig+85 -00 replies

Reviews trailers per patch

2 of 14 patches have a Reviewed-by or Acked-by.

PatchLukasz Majewski
1/14A-b
2/14
3/14
4/14
5/14R-b
6/14
7/14
8/14
9/14
10/14
11/14
12/14
13/14
14/14

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [RFC PATCH 00/14] dfu: update dfu stack and use them for stm32mp1

This serie based on v2019.07 propose some update on the DFU stack:
- add capability to have several DFU backend running in parallel
- add MTD backend for NAND, NOR or SPI-NAND
- add VIRTUAL backend for board/command specific behavior
- add some weak callback

To test the feature and as example, I update the stm32mp1 to use the new features (tested with command "dfu 0")

This serie prepares the DFU backend for communication with STM32CubeProgrammer on stm32mp1 platform (stm32prog command). This STMicroelectronics tool is based on DFU protocol and update the boot devices and the OTPs on the ST boards.

Patrick Delaunay (14):
dfu: cosmetic: cleanup sf to avoid checkpatch error
dfu: sf: add partition support for nor backend
dfu: prepare the support of multiple interface
dfu: allow to manage DFU on several devices
dfu: allow read with 0 data for EOF indication
dfu: add backend for MTD device
dfu: add partition support for MTD backend
dfu: add DFU virtual backend
dfu: add callback for flush and initiated operation
stm32mp1: activate DFU support and command MTD
stm32mp1: activate SET_DFU_ALT_INFO
stp32mp1: configs: activate CONFIG_MTD_SPI_NAND
stm32mp1: board: add spi nand support
stm32mp1: add support for virtual partition read

 board/st/stm32mp1/README            | 111 +++++++++++++
 board/st/stm32mp1/stm32mp1.c        | 165 ++++++++++++++++++-
 cmd/dfu.c                           |  21 ++-
 configs/stm32mp15_basic_defconfig   |   6 +
 configs/stm32mp15_trusted_defconfig |   6 +
 drivers/dfu/Kconfig                 |  13 ++
 drivers/dfu/Makefile                |   2 +
 drivers/dfu/dfu.c                   | 145 +++++++++++++++--
 drivers/dfu/dfu_mtd.c               | 306 ++++++++++++++++++++++++++++++++++++
 drivers/dfu/dfu_sf.c                |  55 ++++++-
 drivers/dfu/dfu_virt.c              |  49 ++++++
 include/configs/stm32mp1.h          |  38 ++++-
 include/dfu.h                       |  51 ++++++
 13 files changed, 939 insertions(+), 29 deletions(-)
 create mode 100644 drivers/dfu/dfu_mtd.c
 create mode 100644 drivers/dfu/dfu_virt.c
Signature · 1 line
2.7.4