[meta-swupdate-boards,RFC,v2,0/1] New board: STM32MP257F-EV1

Message ID 20261117173545.463324-1-dario.binacchi@amarulasolutions.com
Headers
Series New board: STM32MP257F-EV1 |

Message

Dario Binacchi Nov. 17, 2026, 5:35 p.m. UTC
Sent as RFC because supporting OpenSTLinux required four additions
in dynamic-layers:

- MMC aliases in the kernel device tree, so that the SD card is
  always mmcblk0. by-partlabel is ambiguous when the eMMC carries
  the same partition names. The alternative is the by-path names.
  The aliases have been proposed to ST by:
  https://github.com/STMicroelectronics/linux/pull/35

- The OpenSTLinux initrd in packagegroup-core-boot, since
  core-image-full-cmdline does not install it. The alternative is
  st-image-core as rootfs. The initrd dependency has been proposed
  to ST by:
  https://github.com/STMicroelectronics/meta-st-openstlinux/pull/16

- etnaviv disabled in the kernel. core-image-full-cmdline has no
  graphics, so the GPU is not needed and the EULA of its vendor
  driver does not have to be accepted. In that case OpenSTLinux
  expects nogpu in MACHINE_FEATURES, otherwise the kernel loads
  etnaviv and OP-TEE panics at boot. The layer disables the driver
  when neither gpu nor nogpu is set, so that nothing has to be added
  to local.conf.

- The FWU metadata of the SD card in fwumdata.config. OpenSTLinux
  accepts the booted bank with its fwumdata tool, which looks for the
  metadata by partition label. When the eMMC carries the same
  partition names the tool can read its metadata, and the bank is
  left in trial state.

Tested on SD card with openstlinux-6.18-yocto-wrynose-mpu-v26.11.06,
updating from bank A to B and back with swupdate run from the
command line on a SWU stored on a USB stick. swupdate b2e6de5fa94c
and libubootenv 90ed621b6794 have been used, since they support the
FWU metadata.

Changes in v2:
- Add fwumdata.config pointing to the FWU metadata of the SD card

Dario Binacchi (1):
  New board: STM32MP257F-EV1

 README.md                                     |   8 +-
 conf/layer.conf                               |   6 +
 .../packagegroup-core-boot.bbappend           |   3 +
 .../files/stm32mp25-eval/fwumdata.config.in   |   3 +
 .../u-boot-fwumdata-config-stm32mp_%.bbappend |   1 +
 ...t-add-MMC-aliases-on-stm32mp257f-ev1.patch |  20 ++++
 .../linux/linux-stm32mp_%.bbappend            |   7 ++
 .../files/stm32mp25-eval/fw_env.config        |  18 +++
 recipes-extended/images/update-image.bb       |   5 +
 .../update-image/stm32mp25-eval/emmcsetup.lua |  11 ++
 .../stm32mp25-eval/sw-description             |  90 ++++++++++++++
 .../swupdate/stm32mp25-eval/09-swupdate-args  |   8 ++
 .../swupdate/stm32mp25-eval/defconfig         | 111 ++++++++++++++++++
 .../swupdate/stm32mp25-eval/swupdate.cfg      |  41 +++++++
 14 files changed, 330 insertions(+), 2 deletions(-)
 create mode 100644 dynamic-layers/st-openstlinux/recipes-core/packagegroups/packagegroup-core-boot.bbappend
 create mode 100644 dynamic-layers/stm-st-stm32mp/recipes-bsp/u-boot/files/stm32mp25-eval/fwumdata.config.in
 create mode 100644 dynamic-layers/stm-st-stm32mp/recipes-bsp/u-boot/u-boot-fwumdata-config-stm32mp_%.bbappend
 create mode 100644 dynamic-layers/stm-st-stm32mp/recipes-kernel/linux/files/0001-arm64-dts-st-add-MMC-aliases-on-stm32mp257f-ev1.patch
 create mode 100644 dynamic-layers/stm-st-stm32mp/recipes-kernel/linux/linux-stm32mp_%.bbappend
 create mode 100644 recipes-bsp/libubootenv/files/stm32mp25-eval/fw_env.config
 create mode 100644 recipes-extended/images/update-image/stm32mp25-eval/emmcsetup.lua
 create mode 100644 recipes-extended/images/update-image/stm32mp25-eval/sw-description
 create mode 100644 recipes-support/swupdate/swupdate/stm32mp25-eval/09-swupdate-args
 create mode 100644 recipes-support/swupdate/swupdate/stm32mp25-eval/defconfig
 create mode 100644 recipes-support/swupdate/swupdate/stm32mp25-eval/swupdate.cfg

-- 
2.43.0