Skip to contentSkip to conversation

arm-bsp/u-boot: update fvp-base patches

PATCH Applied Jon Mason 2 participants 4 messages Dec 10, 2025 – Dec 11, 2025 Arm/versatile express platform

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/3 arm-bsp/u-boot: update fvp-base patches

u-boot has accepted some of the fvp-base patches. Take the upstream versions and rebase the third patch to apply.

---
 .../recipes-bsp/u-boot/u-boot-fvp-base.inc    |  2 +-
 ...1-vexpress64-Set-the-DM_RNG-property.patch | 29 ++++----
 ...64-Enable-SYSRESET-and-SYSRESET_PSCI.patch | 71 +++++++++++++++++++
 ...press64-Select-PSCI-RESET-by-default.patch | 46 ------------
 ...-Imply-CONFIG_ARM64_CRC32-by-default.patch | 48 +++++++++++--
 5 files changed, 129 insertions(+), 67 deletions(-)
 create mode 100644 meta-arm-bsp/recipes-bsp/u-boot/u-boot/fvp-base/0002-arm-vexpress64-Enable-SYSRESET-and-SYSRESET_PSCI.patch
 delete mode 100644 meta-arm-bsp/recipes-bsp/u-boot/u-boot/fvp-base/0002-vexpress64-Select-PSCI-RESET-by-default.patch
meta-arm-bsp/recipes-bsp/u-boot/u-boot-fvp-base.inc +1 -1
index d7558f4ff456..e7f2287797b6 100644
@@ -3,6 +3,6 @@
 SRC_URI:append = " \
     file://virtio-boot.cfg \
     file://0001-vexpress64-Set-the-DM_RNG-property.patch \
-    file://0002-vexpress64-Select-PSCI-RESET-by-default.patch \
+    file://0002-arm-vexpress64-Enable-SYSRESET-and-SYSRESET_PSCI.patch \
     file://0003-vexpress64-Imply-CONFIG_ARM64_CRC32-by-default.patch \
     "
meta-arm-bsp/recipes-bsp/u-boot/u-boot/fvp-base/0001-vexpress64-Set-the-DM_RNG-property.patch +16 -13
index 4912491fb68a..dee48e1dd68c 100644
@@ -1,28 +1,31 @@
-From 6813b56a11f423f3faa0e960bb044534e11d0104 Mon Sep 17 00:00:00 2001
-From: Debbie Martin <[email protected]>
-Date: Fri, 25 Aug 2023 15:09:33 +0100
+From 364d81afbf4fdc1b3d35c137f02ffa6f1ddd929d Mon Sep 17 00:00:00 2001
+From: Debbie Horsfall <[email protected]>
+Date: Wed, 17 Sep 2025 17:22:21 +0100
 Subject: [PATCH] vexpress64: Set the DM_RNG property
 
-Enable the DM_RNG virtio random number generator driver in
-in order to consume entropy within u-boot. This is necessary
-in the case that the kernel is not configured to enable the
-virtio rng driver itself.
+Enable the DM_RNG virtio random number generator driver in order to
+consume entropy within U-Boot. This allows U-Boot to inject entropy to the
+kernel via UEFI, so the kernel can use that early, for instance for
+address layout randomisation, or when the kernel does not provide an
+entropy driver itself.
 
-Upstream-Status: Pending
-Signed-off-by: Debbie Martin <[email protected]>
+Signed-off-by: Debbie Horsfall <[email protected]>
+Reviewed-by: Andre Przywara <[email protected]>
+Upstream-Status: Backport [2767386806c254820ea22a812bb02e5405495a29]
 ---
- board/armltd/vexpress64/Kconfig | 1 +
- 1 file changed, 1 insertion(+)
+ board/armltd/vexpress64/Kconfig | 2 ++
+ 1 file changed, 2 insertions(+)
 
 diff --git a/board/armltd/vexpress64/Kconfig b/board/armltd/vexpress64/Kconfig
-index 7e8709444fe3..f413c51ac43b 100644
+index 7e8709444fe3..610ab0ac37dc 100644
 --- a/board/armltd/vexpress64/Kconfig
 +++ b/board/armltd/vexpress64/Kconfig
-@@ -21,6 +21,7 @@ config VEXPRESS64_BASE_MODEL
+@@ -21,6 +21,8 @@ config VEXPRESS64_BASE_MODEL
  	imply EFI_SET_TIME if DM_RTC
  	select LINUX_KERNEL_IMAGE_HEADER
  	select POSITION_INDEPENDENT
 +	imply DM_RNG
++	imply RNG_ARM_RNDR
  
  choice
  	prompt "VExpress64 board variant"
meta-arm-bsp/recipes-bsp/u-boot/u-boot/fvp-base/0002-arm-vexpress64-Enable-SYSRESET-and-SYSRESET_PSCI.patch new file +71 -0

71 lines not on this page · raw message

meta-arm-bsp/recipes-bsp/u-boot/u-boot/fvp-base/0002-vexpress64-Select-PSCI-RESET-by-default.patch deleted +0 -46

46 lines not on this page · raw message

meta-arm-bsp/recipes-bsp/u-boot/u-boot/fvp-base/0003-vexpress64-Imply-CONFIG_ARM64_CRC32-by-default.patch +41 -7

63 lines not on this page · raw message

Signature · 1 line
2.50.1 (Apple Git-155)
author
#1 lore raw

PATCH 2/3 arm/trusted-firmware-a: update git recipe to v2.14-rc1

Update the TF-A git recipe to the latest tag. The license SHA needed to be updated due to adding of some memmap sources from mbed, which are under the Apache 2.0 license, which is already present in the inc file.

---
 .../trusted-firmware-a/trusted-firmware-a_git.bb            | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a_git.bb +3 -3
index 811fab8439de..f5f15c90900d 100644
@@ -1,10 +1,10 @@
 require recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc
 
-# TF-A master
-SRCREV_tfa = "c17351450c8a513ca3f30f936e26a71db693a145"
+# TF-A master, tag: v2.14-rc1
+SRCREV_tfa = "96147cc84b7dd8b4f53c9fed553b0c61af060898"
 SRCBRANCH = "master"
 
-LIC_FILES_CHKSUM += "file://docs/license.rst;md5=1118e32884721c0be33267bd7ae11130"
+LIC_FILES_CHKSUM += "file://docs/license.rst;md5=6ed7bace7b0bc63021c6eba7b524039e"
 
 # in TF-A src, docs/getting_started/prerequisites.rst lists the expected version mbedtls
 # mbedtls-3.6.3
Signature · 1 line
2.50.1 (Apple Git-155)
author
#2 lore raw

PATCH 3/3 arm-bsp: add git recipe versions

In reply to Jon Mason

Add git recipe versions that track the latest git versions of u-boot and the various OP-TEE recipes. This, in combination with the previously existing trusted firmware a and m recipes, allows for using the latest code in platform development and testing (as part of CI).

For CI usage, a KAS yml file has been created to allow for those recipes to be used, and an entry for fvp-base has been added to the gitlab CI yml file.

NOTE: the wildcard for corstone1000 u-boot PREFERRED_VERSION was causing it to pick-up the newest version (and failing to apply the patches). The wildcard is unnecessary, since it is using a layer supplied package. So, remove it and everyone is happy.

---
 .gitlab-ci.yml                                |  3 ++
 ci/latest-revisions.yml                       | 15 +++++++++
 .../conf/machine/include/corstone1000.inc     |  2 +-
 .../recipes-bsp/u-boot/u-boot-fvp-base.inc    |  6 ++++
 ....bbappend => optee-os-tadevkit_%.bbappend} |  0
 ...ee-os_4.%.bbappend => optee-os_%.bbappend} |  0
 ...est_4.%.bbappend => optee-test_%.bbappend} |  0
 meta-arm/recipes-bsp/u-boot/u-boot_%.bbappend |  6 ++++
 .../recipes-security/optee/optee-client.inc   |  5 ++-
 .../optee/optee-client_4.7.0.bb               |  4 ---
 .../optee/optee-client_git.bb                 | 11 +++++++
 .../optee/optee-examples_git.bb               |  8 +++++
 .../optee/optee-os-tadevkit_git.bb            | 32 +++++++++++++++++++
 ...ee-os_4.%.bbappend => optee-os_%.bbappend} |  0
 .../recipes-security/optee/optee-os_git.bb    | 10 ++++++
 .../recipes-security/optee/optee-test_git.bb  | 20 ++++++++++++
 16 files changed, 116 insertions(+), 6 deletions(-)
 create mode 100644 ci/latest-revisions.yml
 rename meta-arm-bsp/recipes-security/optee/{optee-os-tadevkit_4.%.bbappend => optee-os-tadevkit_%.bbappend} (100%)
 rename meta-arm-bsp/recipes-security/optee/{optee-os_4.%.bbappend => optee-os_%.bbappend} (100%)
 rename meta-arm-bsp/recipes-security/optee/{optee-test_4.%.bbappend => optee-test_%.bbappend} (100%)
 create mode 100644 meta-arm/recipes-security/optee/optee-client_git.bb
 create mode 100644 meta-arm/recipes-security/optee/optee-examples_git.bb
 create mode 100644 meta-arm/recipes-security/optee/optee-os-tadevkit_git.bb
 rename meta-arm/recipes-security/optee/{optee-os_4.%.bbappend => optee-os_%.bbappend} (100%)
 create mode 100644 meta-arm/recipes-security/optee/optee-os_git.bb
 create mode 100644 meta-arm/recipes-security/optee/optee-test_git.bb
.gitlab-ci.yml +3 -0
index 4e1dc0e3f91c..095a1addc21b 100644
@@ -209,6 +209,9 @@ fvp-base:
       - FIRMWARE: [u-boot, edk2]
         TESTING: testimage
       - SYSTEMREADY_FIRMWARE: arm-systemready-firmware
+      - KERNEL: linux-yocto-dev
+        LATEST: latest-revisions
+        TESTING: testimage
 
 fvps:
   extends: .build
ci/latest-revisions.yml new file +15 -0
new file mode 100644
index 000000000000..94d6bc2eadc0
@@ -0,0 +1,15 @@
+# yaml-language-server: $schema=https://raw.githubusercontent.com/siemens/kas/master/kas/schema-kas.json
+
+header:
+  version: 14
+
+local_conf_header:
+  latest_revisions: |
+    PREFERRED_VERSION_trusted-firmware-a ?= "git"
+    PREFERRED_VERSION_trusted-firmware-m ?= "git"
+    PREFERRED_VERSION_optee-client ?= "git"
+    PREFERRED_VERSION_optee-examples ?= "git"
+    PREFERRED_VERSION_optee-os-tadevkit ?= "git"
+    PREFERRED_VERSION_optee-os ?= "git"
+    PREFERRED_VERSION_optee-test ?= "git"
+    PREFERRED_PROVIDER_u-boot = "u-boot:class-devupstream"
meta-arm-bsp/conf/machine/include/corstone1000.inc +1 -1
index 09468c7c0fa4..6f5127b67855 100644
@@ -26,7 +26,7 @@ TS_SP_SE_PROXY_CONFIG = "corstone1000"
 MACHINE_FEATURES += "ts-smm-gateway ts-se-proxy"
 
 # U-Boot
-PREFERRED_VERSION_u-boot ?= "2025.04%"
+PREFERRED_VERSION_u-boot ?= "2025.04"
 MACHINE_FEATURES += "efi"
 EFI_PROVIDER ?= "grub-efi"
 
meta-arm-bsp/recipes-bsp/u-boot/u-boot-fvp-base.inc +6 -0
index e7f2287797b6..44b98f8fca7e 100644
@@ -6,3 +6,9 @@ SRC_URI:append = " \
     file://0002-arm-vexpress64-Enable-SYSRESET-and-SYSRESET_PSCI.patch \
     file://0003-vexpress64-Imply-CONFIG_ARM64_CRC32-by-default.patch \
     "
+
+# Remove backported patches from latest version
+SRC_URI:remove:class-devupstream = " \
+    file://0001-vexpress64-Set-the-DM_RNG-property.patch \
+    file://0002-arm-vexpress64-Enable-SYSRESET-and-SYSRESET_PSCI.patch \
+    "
meta-arm-bsp/recipes-security/optee/optee-os-tadevkit_%.bbappend renamed from meta-arm-bsp/recipes-security/optee/optee-os-tadevkit_4.%.bbappend +0 -0
similarity index 100%
rename from meta-arm-bsp/recipes-security/optee/optee-os-tadevkit_4.%.bbappend
rename to meta-arm-bsp/recipes-security/optee/optee-os-tadevkit_%.bbappend
meta-arm-bsp/recipes-security/optee/optee-os_%.bbappend renamed from meta-arm-bsp/recipes-security/optee/optee-os_4.%.bbappend +0 -0
similarity index 100%
rename from meta-arm-bsp/recipes-security/optee/optee-os_4.%.bbappend
rename to meta-arm-bsp/recipes-security/optee/optee-os_%.bbappend
meta-arm-bsp/recipes-security/optee/optee-test_%.bbappend renamed from meta-arm-bsp/recipes-security/optee/optee-test_4.%.bbappend +0 -0
similarity index 100%
rename from meta-arm-bsp/recipes-security/optee/optee-test_4.%.bbappend
rename to meta-arm-bsp/recipes-security/optee/optee-test_%.bbappend
meta-arm/recipes-bsp/u-boot/u-boot_%.bbappend +6 -0
index 8542ccfc9084..8ddc53619560 100644
@@ -4,3 +4,9 @@ SRC_URI:append:qemuarm64-secureboot = " file://qemuarm64.cfg"
 SRC_URI:append:qemuarm-secureboot = " file://qemuarm.cfg"
 
 require ${@bb.utils.contains('MACHINE_FEATURES', 'uefi-secureboot', 'u-boot-uefi-secureboot.inc', '', d)}
+
+# Work some magic here for devupstream
+BBCLASSEXTEND = "devupstream:target"
+SRC_URI:class-devupstream = "git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master"
+# tag: v2026.01-rc2
+SRCREV:class-devupstream = "365a7079fb918643da0f0709660a7d8ea76dd6f3"
meta-arm/recipes-security/optee/optee-client.inc +4 -1
index 0c3aefbb6c36..4d3d83da4521 100644
@@ -5,7 +5,10 @@ HOMEPAGE = "https://www.op-tee.org/"
 LICENSE = "BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=69663ab153298557a59c67a60a743e5b"
 
-inherit systemd update-rc.d cmake useradd
+inherit systemd update-rc.d cmake useradd pkgconfig
+
+DEPENDS += "util-linux"
+EXTRA_OEMAKE += "PKG_CONFIG=pkg-config"
 
 SRC_URI = " \
     git://github.com/OP-TEE/optee_client.git;branch=master;protocol=https \
meta-arm/recipes-security/optee/optee-client_4.7.0.bb +0 -4
index 00f829e18bfb..2fb157dfec81 100644
@@ -3,7 +3,3 @@ require recipes-security/optee/optee-client.inc
 # v4.7.0
 SRCREV = "23c112a6f05cc5e39bd4aaf52ad515cad532237d"
 SRC_URI += "file://0001-tee-supplicant-update-udev-systemd-install-code.patch"
-
-inherit pkgconfig
-DEPENDS += "util-linux"
-EXTRA_OEMAKE += "PKG_CONFIG=pkg-config"
meta-arm/recipes-security/optee/optee-client_git.bb new file +11 -0
new file mode 100644
index 000000000000..9c1c622fb82f
@@ -0,0 +1,11 @@
+require recipes-security/optee/optee-client.inc
+
+# v4.8.0
+SRCREV = "9d6f69844ff60ec0966cf3659abcc38eda8b31ea"
+PV .= "+git"
+
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+SRC_URI += "file://0001-tee-supplicant-update-udev-systemd-install-code.patch"
+
+# Not a release recipe, try our hardest to not pull this in implicitly
+DEFAULT_PREFERENCE = "-1"
meta-arm/recipes-security/optee/optee-examples_git.bb new file +8 -0
new file mode 100644
index 000000000000..e0c85660a8a3
@@ -0,0 +1,8 @@
+require recipes-security/optee/optee-examples.inc
+
+# v4.8.0
+SRCREV = "3ef17eb1f309def91113637f95f67613b1d89119"
+PV .= "+git"
+
+# Not a release recipe, try our hardest to not pull this in implicitly
+DEFAULT_PREFERENCE = "-1"
meta-arm/recipes-security/optee/optee-os-tadevkit_git.bb new file +32 -0
new file mode 100644
index 000000000000..78588b8111f4
@@ -0,0 +1,32 @@
+require recipes-security/optee/optee-os_${PV}.bb
+
+SUMMARY = "OP-TEE Trusted OS TA devkit"
+DESCRIPTION = "OP-TEE TA devkit for build TAs"
+HOMEPAGE = "https://www.op-tee.org/"
+
+DEPENDS += "python3-pycryptodome-native"
+
+do_install() {
+    #install TA devkit
+    install -d ${D}${includedir}/optee/export-user_ta/
+    for f in ${B}/export-ta_${OPTEE_ARCH}/* ; do
+        cp -aR $f ${D}${includedir}/optee/export-user_ta/
+    done
+}
+
+do_deploy() {
+	echo "Do not inherit do_deploy from optee-os."
+}
+
+FILES:${PN} = "${includedir}/optee/"
+
+# Build paths are currently embedded
+INSANE_SKIP:${PN}-dev += "buildpaths"
+
+# Include extra headers needed by SPMC tests to TA DEVKIT.
+# Supported after op-tee v3.20
+EXTRA_OEMAKE:append = "${@bb.utils.contains('MACHINE_FEATURES', 'optee-spmc-test', \
+                                        ' CFG_SPMC_TESTS=y', '' , d)}"
+
+# Not a release recipe, try our hardest to not pull this in implicitly
+DEFAULT_PREFERENCE = "-1"
meta-arm/recipes-security/optee/optee-os_%.bbappend renamed from meta-arm/recipes-security/optee/optee-os_4.%.bbappend +0 -0
similarity index 100%
rename from meta-arm/recipes-security/optee/optee-os_4.%.bbappend
rename to meta-arm/recipes-security/optee/optee-os_%.bbappend
meta-arm/recipes-security/optee/optee-os_git.bb new file +10 -0
new file mode 100644
index 000000000000..244ff9b71877
@@ -0,0 +1,10 @@
+require recipes-security/optee/optee-os.inc
+
+DEPENDS += "dtc-native"
+
+# v4.8.0
+SRCREV = "86660925433a8d4d1b19cfa5fe940081d77b34b4"
+PV .= "+git"
+
+# Not a release recipe, try our hardest to not pull this in implicitly
+DEFAULT_PREFERENCE = "-1"
meta-arm/recipes-security/optee/optee-test_git.bb new file +20 -0
new file mode 100644
index 000000000000..d29333905865
@@ -0,0 +1,20 @@
+require recipes-security/optee/optee-test.inc
+
+# v4.8.0
+SRCREV = "6569cd7b13e1b37b37069e090d592adca7d3926d"
+PV .= "+git"
+
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=a8fa504109e4cd7ea575bc49ea4be560"
+
+# Include ffa_spmc test group if the SPMC test is enabled.
+# Supported after op-tee v3.20
+EXTRA_OEMAKE:append = "${@bb.utils.contains('MACHINE_FEATURES', 'optee-spmc-test', \
+                                        ' CFG_SPMC_TESTS=y CFG_SECURE_PARTITION=y', '' , d)}"
+
+RDEPENDS:${PN} += "${@bb.utils.contains('MACHINE_FEATURES', 'optee-spmc-test', \
+                                              ' arm-ffa-user', '' , d)}"
+
+# Not a release recipe, try our hardest to not pull this in implicitly
+DEFAULT_PREFERENCE = "-1"
+
+CFLAGS += "-Wno-error=unterminated-string-initialization"
Signature · 1 line
2.50.1 (Apple Git-155)
Applied
#3 lore raw
In reply to Jon Mason
Quoted 4 lines · Jon Mason

u-boot has accepted some of the fvp-base patches. Take the upstream versions and rebase the third patch to apply.

Applied, thanks!

[1/3] arm-bsp/u-boot: update fvp-base patches

      commit: 5f8dd8c3e775acb5d95fac0947c61c8f80f5eee2
[2/3] arm/trusted-firmware-a: update git recipe to v2.14-rc1
      commit: 4a1969f3e52aefeb398adb92bc78fe8666ffadf0
[3/3] arm-bsp: add git recipe versions
      commit: 1baab2304144c97596498866e250377c0b792693

Best regards,

Signature · 1 line
Jon Mason <[email protected]>