stm32mp1: add command stm32prog
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest18 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | usb: gadget: g_dnl: add function g_dnl_set_productdrivers/ include/ | +9 | 1 reply | |
| 2/18 | dfu: add prototype for dfu_transaction_initiate/cleanupinclude/ | +3 | 1 reply | |
| 3/18 | stm32mp: add function get_cpu_devarch/ arch/ | +11 | 1 reply | |
| 4/18 | stm32mp: add the command stm32progarch/ arch/ arch/ +8 more | +974 | 2 replies | |
| 5/18 | stm32mp: stm32prog: add flash layout parsingarch/ | +371 | 1 reply | |
| 6/18 | stm32mp: stm32prog: add MMC devicearch/ arch/ arch/ +2 more | +209 | 2 replies | |
| 7/18 | stm32mp: stm32prog: add support of boot partition for eMMC devicearch/ arch/ | +90 | 1 reply | |
| 8/18 | stm32mp: stm32prog: add upport of partial updatearch/ arch/ | +70 | 1 reply | |
| 9/18 | stm32mp: stm32prog: add MTD devices supportarch/ arch/ arch/ +2 more | +117 | 1 reply | |
| 10/18 | stm32mp: stm32prog: adapt the MTD partitionsarch/ arch/ arch/ +2 more | +52 | 1 reply | |
| 11/18 | stm32mp: stm32prog: add support of ssbl copyarch/ arch/ | +94 | 1 reply | |
| 12/18 | stm32mp: stm32prog: add support for delete option in flashlayoutarch/ | +105 | 1 reply | |
| 13/18 | stm32mp: stm32prog: add otp update supportarch/ arch/ arch/ | +151 | 1 reply | |
| 14/18 | stm32mp: stm32prog: add pmic NVM update supportarch/ arch/ arch/ | +115 | 1 reply | |
| 15/18 | stm32mp: stm32prog: add serial link supportarch/ arch/ arch/ +3 more | +1021 | 1 reply | |
| 16/18 | stm32mp: stm32prog: enable videoconsolearch/ | +28 | 1 reply | |
| 17/18 | stm32mp: stm32prog: support for scriptarch/ | +14 | 1 reply | |
| 18/18 | stm32mp: stm32prog: add support of RAM targetarch/ arch/ arch/ | +62 | 1 reply |
Reviews trailers per patch
All 18 patches have a Reviewed-by or Acked-by.
| Patch | Patrice Chotard |
|---|---|
| 1/18 | R-b |
| 2/18 | R-b |
| 3/18 | R-b |
| 4/18 | R-b R-b |
| 5/18 | R-b |
| 6/18 | R-b R-b |
| 7/18 | R-b |
| 8/18 | R-b |
| 9/18 | R-b |
| 10/18 | R-b |
| 11/18 | R-b |
| 12/18 | R-b |
| 13/18 | R-b |
| 14/18 | R-b |
| 15/18 | R-b |
| 16/18 | R-b |
| 17/18 | R-b |
| 18/18 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/18] stm32mp1: add command stm32prog
Add a specific command stm32prog for STM32MP soc family witch allows to update the devices on the board with the STMicroelectronics tool STM32CubeProgrammer
(http://www.st.com/STM32CubeProg).
This command use the same UART STM32 protocol than MCU STM32 with or USB with DFU protocol v1.1 (MCU ST extension are no supported).
The executed actions are based on a tab separated value file with a stm32 header (see
https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer_flashlayout).
This FlashLayout file is loaded in DDR by TF-A during during a serial boot or in a virtual device by stm32prog command and is parsed by U-Boot (see "AN5275: USB DFU/USART protocols used in STM32MP1 Series bootloaders" for details).
Regards
Patrick
Patrick Delaunay (18):
usb: gadget: g_dnl: add function g_dnl_set_product
dfu: add prototype for dfu_transaction_initiate/cleanup
stm32mp: add function get_cpu_dev
stm32mp: add the command stm32prog
stm32mp: stm32prog: add flash layout parsing
stm32mp: stm32prog: add MMC device
stm32mp: stm32prog: add support of boot partition for eMMC device
stm32mp: stm32prog: add upport of partial update
stm32mp: stm32prog: add MTD devices support
stm32mp: stm32prog: adapt the MTD partitions
stm32mp: stm32prog: add support of ssbl copy
stm32mp: stm32prog: add support for delete option in flashlayout
stm32mp: stm32prog: add otp update support
stm32mp: stm32prog: add pmic NVM update support
stm32mp: stm32prog: add serial link support
stm32mp: stm32prog: enable videoconsole
stm32mp: stm32prog: support for script
stm32mp: stm32prog: add support of RAM target
arch/arm/mach-stm32mp/Kconfig | 17 + arch/arm/mach-stm32mp/Makefile | 1 + arch/arm/mach-stm32mp/cmd_stm32prog/Makefile | 9 + .../cmd_stm32prog/cmd_stm32prog.c | 192 ++ .../mach-stm32mp/cmd_stm32prog/stm32prog.c | 1745 +++++++++++++++++ .../mach-stm32mp/cmd_stm32prog/stm32prog.h | 185 ++ .../cmd_stm32prog/stm32prog_serial.c | 993 ++++++++++ .../cmd_stm32prog/stm32prog_usb.c | 230 +++ arch/arm/mach-stm32mp/cpu.c | 11 +- .../arm/mach-stm32mp/include/mach/stm32prog.h | 16 + .../arm/mach-stm32mp/include/mach/sys_proto.h | 5 + board/st/common/stm32mp_dfu.c | 20 + board/st/common/stm32mp_mtdparts.c | 14 +- configs/stm32mp15_basic_defconfig | 7 +- configs/stm32mp15_trusted_defconfig | 7 +- drivers/usb/gadget/g_dnl.c | 8 + include/dfu.h | 3 + include/g_dnl.h | 1 + 18 files changed, 3445 insertions(+), 19 deletions(-) create mode 100644 arch/arm/mach-stm32mp/cmd_stm32prog/Makefile create mode 100644 arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c create mode 100644 arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c create mode 100644 arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h create mode 100644 arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c create mode 100644 arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c create mode 100644 arch/arm/mach-stm32mp/include/mach/stm32prog.h
Signature · 1 line
2.17.1