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

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

Message

Dario Binacchi Nov. 14, 2026, 2:51 p.m. UTC
Sent as RFC because supporting OpenSTLinux required three additions
in dynamic-layers, on which I would like your opinion:

- 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.

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.

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

 README.md                                     |   8 +-
 conf/layer.conf                               |   6 +
 .../packagegroup-core-boot.bbappend           |   3 +
 ...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 +++++++
 12 files changed, 326 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-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