All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/18] stm32mp1: add command stm32prog
@ 2020-03-18  8:24 Patrick Delaunay
  2020-03-18  8:24 ` [PATCH 01/18] usb: gadget: g_dnl: add function g_dnl_set_product Patrick Delaunay
                   ` (18 more replies)
  0 siblings, 19 replies; 40+ messages in thread
From: Patrick Delaunay @ 2020-03-18  8:24 UTC (permalink / raw)
  To: u-boot


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

-- 
2.17.1

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

end of thread, other threads:[~2020-05-14  9:28 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-18  8:24 [PATCH 00/18] stm32mp1: add command stm32prog Patrick Delaunay
2020-03-18  8:24 ` [PATCH 01/18] usb: gadget: g_dnl: add function g_dnl_set_product Patrick Delaunay
2020-04-14 12:57   ` [Uboot-stm32] " Patrice CHOTARD
2020-03-18  8:24 ` [PATCH 02/18] dfu: add prototype for dfu_transaction_initiate/cleanup Patrick Delaunay
2020-04-14 12:58   ` [Uboot-stm32] " Patrice CHOTARD
2020-03-18  8:24 ` [PATCH 03/18] stm32mp: add function get_cpu_dev Patrick Delaunay
2020-04-14 12:59   ` Patrice CHOTARD
2020-03-18  8:24 ` [PATCH 04/18] stm32mp: add the command stm32prog Patrick Delaunay
2020-04-14 13:00   ` Patrice CHOTARD
2020-04-14 13:03   ` Patrice CHOTARD
2020-03-18  8:24 ` [PATCH 05/18] stm32mp: stm32prog: add flash layout parsing Patrick Delaunay
2020-04-14 13:03   ` Patrice CHOTARD
2020-03-18  8:24 ` [PATCH 06/18] stm32mp: stm32prog: add MMC device Patrick Delaunay
2020-04-14 13:04   ` Patrice CHOTARD
2020-04-14 13:04   ` Patrice CHOTARD
2020-03-18  8:24 ` [PATCH 07/18] stm32mp: stm32prog: add support of boot partition for eMMC device Patrick Delaunay
2020-04-14 13:05   ` Patrice CHOTARD
2020-03-18  8:24 ` [PATCH 08/18] stm32mp: stm32prog: add upport of partial update Patrick Delaunay
2020-04-14 13:05   ` Patrice CHOTARD
2020-03-18  8:24 ` [PATCH 09/18] stm32mp: stm32prog: add MTD devices support Patrick Delaunay
2020-04-14 13:06   ` Patrice CHOTARD
2020-03-18  8:24 ` [PATCH 10/18] stm32mp: stm32prog: adapt the MTD partitions Patrick Delaunay
2020-04-14 13:07   ` Patrice CHOTARD
2020-03-18  8:24 ` [PATCH 11/18] stm32mp: stm32prog: add support of ssbl copy Patrick Delaunay
2020-04-14 13:07   ` Patrice CHOTARD
2020-03-18  8:24 ` [PATCH 12/18] stm32mp: stm32prog: add support for delete option in flashlayout Patrick Delaunay
2020-04-14 13:08   ` Patrice CHOTARD
2020-03-18  8:24 ` [PATCH 13/18] stm32mp: stm32prog: add otp update support Patrick Delaunay
2020-04-14 13:09   ` Patrice CHOTARD
2020-03-18  8:24 ` [PATCH 14/18] stm32mp: stm32prog: add pmic NVM " Patrick Delaunay
2020-04-14 13:09   ` Patrice CHOTARD
2020-03-18  8:25 ` [PATCH 15/18] stm32mp: stm32prog: add serial link support Patrick Delaunay
2020-04-14 13:10   ` Patrice CHOTARD
2020-03-18  8:25 ` [PATCH 16/18] stm32mp: stm32prog: enable videoconsole Patrick Delaunay
2020-04-14 13:11   ` Patrice CHOTARD
2020-03-18  8:25 ` [PATCH 17/18] stm32mp: stm32prog: support for script Patrick Delaunay
2020-04-14 13:11   ` Patrice CHOTARD
2020-03-18  8:25 ` [PATCH 18/18] stm32mp: stm32prog: add support of RAM target Patrick Delaunay
2020-04-14 13:11   ` Patrice CHOTARD
2020-05-14  9:28 ` [PATCH 00/18] stm32mp1: add command stm32prog Patrick DELAUNAY

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.