From patchwork Wed Nov 25 16:41:22 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4882 Delivered-To: michael@amarulasolutions.com Received: by 2002:a05:7300:bf19:b0:386:abcc:ec87 with SMTP id ff25csp4768211dyb; Wed, 25 Nov 2026 08:41:35 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErH0sFswGwltLY9rY7NebYbk29/G0/Dk/CynwuntyVXvEb3L9mbPk4Ha7eiAr9xPZiLiHdFaSB9g@amarulasolutions.com X-Received: by 2002:a05:600c:4e0d:b0:4bb:5f07:10d7 with SMTP id 5b1f17b1804b1-4bb8882445cmr359368225e9.26.1795624895079; Wed, 25 Nov 2026 08:41:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795624895; cv=none; d=google.com; s=arc-20260327; b=sqjd+2ytR3nqy15pccAhlmaDeGvqHOBEshSHNGx5ZpdIyNpb7xk/Wjvcuom40o9KFW Yc8td6u+rLpctkyaXztOQsEbt/GfBGYmRtq12SwRGRkgmvHq/Z2kT08EU+K601D+uHOm 2/BHMgly0Io1ZKbc5vO8EXOMR6X1fNsZqn60hP4/lOuBLSGxdLo3gqIw1s2yN/Qd26x4 +dG00DWRfSnMgz6h6/6yYHW6cJ4a987/5SnV6fVGazDUWSkk74iZM+kxMqjj8Ix9vk3J OYNFkK5hhP2ETH3UNUvsHU0Rr+COu9EOuA5x9yx7HtK/9d8JbduKN/aPTfYn8px7lWGV Wxmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=P1FtzywzG5/iyb9km2nEJSIddCA9ETD1D2vSh9gktdg=; fh=K5n63hw9F6kTvl2UtaTFPCYcGnRPijj/KC7vbba9GEY=; b=iq46Yhg2+Z+vhdM1XGg6RSMJaWWga352NYvSWE1N4IWdybwoqz6nKie3B2Y6HdGPXo rFaD6Gw/PV3ldREnAPmeJuUZE2dKYKunlFaNv7+1m0LOexsd/+kJ9igkA8/vuNi2AYij wTzkUgu7UAZ9mpJ3d9YseP2mosc6fczCZqqZmzqBnNiObg4K/EGGpNE/25qo3yFbJOSk SEu0BIHhweGvdHt+5hlP3HDxGtt04jNNdFKn3ipEzHM7ic6ohLvHZ+kItWfFs8VQ4/S8 orwwthRN5QH/gCqBmhkOibeqy2vcZyJ2rBp1hT3/XkyelrIg9eNOsY2IMLpW6VM1JmVh fGTw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bpQ8+SJa; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=neutral header.i=@amarulasolutions.com Return-Path: Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 5b1f17b1804b1-4bb884275c2sor32633025e9.2.2026.11.25.08.41.34 for (Google Transport Security); Wed, 25 Nov 2026 08:41:35 -0800 (PST) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bpQ8+SJa; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=neutral header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1795624894; x=1796229694; darn=amarulasolutions.com; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=P1FtzywzG5/iyb9km2nEJSIddCA9ETD1D2vSh9gktdg=; b=bpQ8+SJaq6vG8P/cUb0emlk5qq0UM1P6RafdevJiDRwoCWhhmKYr/7EgHBnD41ZPTk YOxxv6Q6MnAgmXoRVzDE53KBKJGsxIqz7OvvU1aYJ3dNUOK++Ne7nwQncLUi1o64V3Mz HV6rRH5O4DEib33PAyuj5BZgTBVS/YJcGGUJU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795624894; x=1796229694; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=P1FtzywzG5/iyb9km2nEJSIddCA9ETD1D2vSh9gktdg=; b=p9ktYX/hyP3r8wyyscEjYFvBHCMmReqtj+ezgwuYEBoxFx3JMdjWCJ/hd07DIK8jBO u82ZxwZf5Z4yKMOtZ1566d32cQFxBcMJWflo93ItgHgYMUdG7WRMmbBdYj0LJEKr+yFe 8ivQf9OXK44neA0/nXn0QbHEAOVj5U0KhkxijiDiNfFdqW/7doxl12tKvKhKiUAMNXMF sEbrsiGSaDZrh+6R9v7cUHfhXBedexoMbDdS9F0y4sCqAG8rssGaX2r5nRR27i3+ScHx f50NCgYOUFVZuhLJ+jFFxKUcnXkAf54298no4swcjqRHS1lUZMmJS3a8HJMgshwZARh5 7fQw== X-Forwarded-Encrypted: i=1; AL+hErHXOztMbiG+BHZNfVJ6owJ5fSMuUV7xZkosf+I+dVv04hxtBfR+ntZnkCP/0UZFuaQ/EXzpDR44@amarulasolutions.com X-Gm-Message-State: APuU4Z834rICPRyECYCWDUjfnQt+8QOYHYAnoDXBTiI/T4MtzVcrIlC8 RMdUYOCc53NKdkHAfylSO2clRk8GvzMEcIcnTKauVabJuhZ6RJBF5RgyNirGuMcFrKSFKg== X-Gm-Gg: AZFdTZeHdiEgJNqstYUnZjWXpO/mwyb/LC56jzMYpCrGbYqYTza2V4H3kKwH6U/HwbR xY8YowLei3jKjlMo9UqNMn1NbteVzjjRvlhHFO/7ZbZsW+StMnJrSIGzObd9xzAUdNt6EkEpBmw UVaV0zvYocVH6veKC3HhmQJZFWDY+9GrTtuvexUOiGnC0HtGy0n/n3JevBfaTaZjOmrFCsZsA3B 3P1EP5aGIeTuCeOk1AOaIAWFjgUtHKhbp0zn+VOg5wd5DI0/9s6H0fG7osgqDQOq1vocVHHk1Vb +CNPv+xO2h6zYzFUQJY8xUv6xn0zwrXgNxiANEvwTo/SsrTBUB5i2st5gc15W685Ro3rkscL0+F /cP50Wxi7O//ju1Jh9BqGwWt+fo3LJQiOdTjF7dAEtv8WHGl6CvKs5/NRYe60zhM94AaMFQLz4R yfbRpI+15Qy+Vd4+5hZUaThEB/a2ZHXCHjnUTCvZdPv/okDckYdQGvaZKc31u69AewQ14XIdiIS uMfJDuck3A9Up83tYBCPylxxq84EgQHlOhbU5poOXY7Gn7wRdDhT0cjBq5gs62KKHU7UP83ooDL iaBNPbJPmfGI94ubCIilkXm9lfyQgnWdZQnivJbjCBpuSheOcxldzKk51+OyCbTBVkMGDZM7iif Vh9/yLs/tWcvmo7/kCgECQzNSUhrVD6B/Out0C3AsJc5f1NldkknzX3fjUaUNSZmq6vd7Qk8CCN AgeKL3FMriYDfzS6d1CXos X-Received: by 2002:a05:600c:674b:b0:4bb:6847:791f with SMTP id 5b1f17b1804b1-4bb8880f267mr360295035e9.7.1795624894385; Wed, 25 Nov 2026 08:41:34 -0800 (PST) Return-Path: Received: from dario-ThinkPad-P14s-Gen-5.amarulasolutions.com (host-79-14-29-58.business.telecomitalia.it. [79.14.29.58]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb9067a0e6sm247988765e9.4.2026.11.25.08.41.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 08:41:33 -0800 (PST) From: Dario Binacchi To: buildroot@buildroot.org Cc: Dick Olsson , Sergey Matyukevich , Thomas Petazzoni , Kory Maincent , linux-amarula@amarulasolutions.com, michael@amarulasolutions.com, Dario Binacchi Subject: [PATCH v2 0/5] Add support for the STM32MP257F-EV1 board Date: Wed, 25 Nov 2026 17:41:22 +0100 Message-ID: <20261125164127.863713-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 This series adds a defconfig for the STMicroelectronics STM32MP257F Evaluation board (EV1), built from upstream TF-A, U-Boot and Linux, with TF-A configured for the FWU (Firmware Update) multi bank support, as in the official STMicroelectronics Yocto layers. Unfortunately, it was not possible to use upstream OP-TEE OS as well, because it does not support yet, on STM32MP25, the STPMIC2 PMIC and the SCMI voltage domains, which the mainline Linux device tree requires for the microSD card supplies [1]. Until this is resolved, the STMicroelectronics downstream version has to be used. Patches 1-4 add what the defconfig needs: - the mkfwumdata host tool, to generate the FWU metadata, and the fwumdata target tool, to inspect and modify it from Linux (1-2); - the STM32MP2 DDR PHY firmware, required by upstream TF-A (3-4). During the review of v1, Kory asked whether a defconfig with the FWU multi bank layout is suitable for Buildroot, since the FWU metadata is not required to boot the board [2]. The layout follows what OpenSTLinux generates by default and gives an example of the FWU multi bank boot and of the tools added by patches 1-2. Feedback from the maintainers on this point would be appreciated. The series was tested on the board, booting from the microSD card. Changes in v2: - Rebase on current master. - Drop "boot/arm-trusted-firmware: pass HOSTLD", superseded by commit 84bfd2ff64f9 ("boot/arm-trusted-firmware: pass HOSTLD and HOSTLDFLAGS"). - Collect Reviewed-by tags. [1] https://github.com/OP-TEE/optee_os/issues/8027 [2] https://lore.kernel.org/buildroot/20261022151358.2260712-7-dario.binacchi@amarulasolutions.com v1: https://lore.kernel.org/buildroot/20261022151358.2260712-1-dario.binacchi@amarulasolutions.com Dario Binacchi (5): package/uboot-tools: add host mkfwumdata support package/uboot-tools: add fwumdata target tool boot/stm32-ddr-phy-binary: new package boot/arm-trusted-firmware: add stm32-ddr-phy-binary support configs/stm32mp257f_ev1_defconfig: new defconfig DEVELOPERS | 3 + .../stm32mp257f-ev1/genimage.cfg | 52 ++++++++++++++ .../overlay/boot/extlinux/extlinux.conf | 4 ++ .../overlay/etc/fwumdata.config | 4 ++ .../arm-trusted-firmware.hash | 2 + ...-arm-smc-id-of-the-SMC-watchdog-on-s.patch | 53 ++++++++++++++ .../stm32mp257f-ev1/patches/linux/linux.hash | 2 + ...2mp25-rename-the-PCIe-bus-SCMI-clock.patch | 44 ++++++++++++ .../patches/optee-os/optee-os.hash | 2 + .../stm32mp257f-ev1/patches/uboot/uboot.hash | 2 + .../stm32mp257f-ev1/post-image.sh | 18 +++++ .../stm32mp257f-ev1/readme.txt | 72 +++++++++++++++++++ boot/Config.in | 1 + .../arm-trusted-firmware.mk | 5 ++ boot/stm32-ddr-phy-binary/Config.in | 9 +++ .../stm32-ddr-phy-binary.hash | 3 + .../stm32-ddr-phy-binary.mk | 13 ++++ configs/stm32mp257f_ev1_defconfig | 66 +++++++++++++++++ package/uboot-tools/Config.in | 14 ++++ package/uboot-tools/Config.in.host | 10 +++ package/uboot-tools/uboot-tools.mk | 20 ++++++ 21 files changed, 399 insertions(+) create mode 100644 board/stmicroelectronics/stm32mp257f-ev1/genimage.cfg create mode 100644 board/stmicroelectronics/stm32mp257f-ev1/overlay/boot/extlinux/extlinux.conf create mode 100644 board/stmicroelectronics/stm32mp257f-ev1/overlay/etc/fwumdata.config create mode 100644 board/stmicroelectronics/stm32mp257f-ev1/patches/arm-trusted-firmware/arm-trusted-firmware.hash create mode 100644 board/stmicroelectronics/stm32mp257f-ev1/patches/linux/0001-arm64-dts-st-fix-arm-smc-id-of-the-SMC-watchdog-on-s.patch create mode 100644 board/stmicroelectronics/stm32mp257f-ev1/patches/linux/linux.hash create mode 100644 board/stmicroelectronics/stm32mp257f-ev1/patches/optee-os/0001-dts-stm32mp25-rename-the-PCIe-bus-SCMI-clock.patch create mode 100644 board/stmicroelectronics/stm32mp257f-ev1/patches/optee-os/optee-os.hash create mode 100644 board/stmicroelectronics/stm32mp257f-ev1/patches/uboot/uboot.hash create mode 100755 board/stmicroelectronics/stm32mp257f-ev1/post-image.sh create mode 100644 board/stmicroelectronics/stm32mp257f-ev1/readme.txt create mode 100644 boot/stm32-ddr-phy-binary/Config.in create mode 100644 boot/stm32-ddr-phy-binary/stm32-ddr-phy-binary.hash create mode 100644 boot/stm32-ddr-phy-binary/stm32-ddr-phy-binary.mk create mode 100644 configs/stm32mp257f_ev1_defconfig --- 2.43.0