corstone1000: align A320 and Ethos-U85 flow with in-tree ethosu
cover corstone1000: align A320 and Ethos-U85 flow with in-tree ethosu
This series updates the Corstone-1000 Cortex-A320 flow to match the current upstream direction and the in-tree Ethos-U integration model.
It reworks the U-Boot device tree patch layout to separate common and Cortex-A320-specific changes, adds linux-yocto 6.19 support, aligns the Ethos-U85 device tree and kernel configuration with the in-tree ethosu driver, removes the remaining meta-ethos and meta-sca dependency from the A320 flow, and refreshes the documentation.
The main changes are:
- rework the Corstone-1000 U-Boot CONFIG_OF_UPSTREAM patch layout
- add and prefer linux-yocto 6.19 for Corstone-1000
- update Ethos-U85 DT and kernel config for the in-tree ethosu driver
- drop meta-ethos and meta-sca from the A320 flow
- refresh the user guide for SMP, test_teflon, and the patch-based workaround
Frazer Carsley (2):
arm-bsp/u-boot:cs1k: Rework CONFIG_OF_UPSTREAM patch arm-bsp/u-boot:cs1k: Split Cortex-a320 device tree
Michael Safwat (5):
arm-bsp/corstone1000: Add linux-yocto 6.19 kernel recipe arm-bsp/u-boot: cs1k: Align Ethos-U85 DT with in-tree driver arm-bsp/corstone1000-a320: Drop meta-ethos dependency arm-bsp/docs: corstone1000: document Cortex-A320 SMP support arm-bsp/docs: corstone1000: switch Ethos-U85 test flow to test_teflon
kas/corstone1000-a320.yml | 8 - meta-arm-bsp/conf/layer.conf | 1 - .../machine/include/corstone1000-a320.inc | 2 - .../conf/machine/include/corstone1000.inc | 2 +- .../documentation/corstone1000/change-log.rst | 4 - .../documentation/corstone1000/user-guide.rst | 82 ++- .../u-boot/u-boot-corstone1000.inc | 12 +- ...able-OF_UPSTREAM-device-tree-support.patch | 101 ++-- ...-use-32-bit-cells-for-reserved-memor.patch | 8 +- ...e1000-Add-Cortex-A320-support-on-FVP.patch | 227 ------- ...-a320-Add-Corstone1000-board-variant.patch | 563 ++++++++++++++++++ .../u-boot/corstone1000/corstone1000-a320.cfg | 2 - .../linux/files/corstone1000/ethosu.cfg | 4 + .../linux/linux-arm-platforms.inc | 1 + .../recipes-kernel/linux/linux-yocto_6.19.bb | 37 ++ 15 files changed, 742 insertions(+), 312 deletions(-) delete mode 100644 meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0039-corstone1000-Add-Cortex-A320-support-on-FVP.patch create mode 100644 meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0039-corstone1000-a320-Add-Corstone1000-board-variant.patch delete mode 100644 meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/corstone1000-a320.cfg create mode 100644 meta-arm-bsp/recipes-kernel/linux/files/corstone1000/ethosu.cfg create mode 100644 meta-arm-bsp/recipes-kernel/linux/linux-yocto_6.19.bb
PATCH 1/7 arm-bsp/u-boot:cs1k: Rework CONFIG_OF_UPSTREAM patch
From: Frazer Carsley <[email protected]>
Rework the patch that enables the OF_UPSTREAM config option to split off the extra device tree nodes into their own dtsi files, making it easier to combine them in different ways. The rest of the patches have changed only so that they can be applied cleanly.
--- ...able-OF_UPSTREAM-device-tree-support.patch | 101 ++++++++++++------ ...-use-32-bit-cells-for-reserved-memor.patch | 8 +- ...e1000-Add-Cortex-A320-support-on-FVP.patch | 42 +++----- 3 files changed, 88 insertions(+), 63 deletions(-)
meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0037-corstone1000-enable-OF_UPSTREAM-device-tree-support.patch +66 -35
@@ -1,4 +1,4 @@ -From d7500d2733efc8f872bd4be60b31176eec27b5d0 Mon Sep 17 00:00:00 2001 +From e070ae0f02b10bfd482146a748095ca782f73039 Mon Sep 17 00:00:00 2001 From: Frazer Carsley <[email protected]> Date: Mon, 19 Jan 2026 15:16:52 +0000 Subject: [PATCH] corstone1000: enable OF_UPSTREAM device tree support
@@ -6,27 +6,32 @@ Subject: [PATCH] corstone1000: enable OF_UPSTREAM device tree support Enable OF_UPSTREAM option set for corstone1000 platform. Remove legacy u-boot corstone1000 device trees. Add device tree files for FVP and MPS3 platforms to add device -tree nodes that are missing from the upstream. +tree nodes that are missing from the upstream. These are done in a +modular way. Signed-off-by: Clement Faure <[email protected]> Signed-off-by: Frazer Carsley <[email protected]> Upstream-Status: Pending [Not submitted to upstream yet] --- - arch/arm/dts/Makefile | 3 - - arch/arm/dts/corstone1000-fvp-u-boot.dtsi | 15 ++ - arch/arm/dts/corstone1000-fvp.dts | 82 --------- - arch/arm/dts/corstone1000-mps3-u-boot.dtsi | 8 + - arch/arm/dts/corstone1000-mps3.dts | 32 ---- - arch/arm/dts/corstone1000-u-boot.dtsi | 39 +++++ - arch/arm/dts/corstone1000.dtsi | 194 --------------------- - board/armltd/corstone1000/corstone1000.c | 4 +- - configs/corstone1000_defconfig | 5 +- - 9 files changed, 68 insertions(+), 314 deletions(-) + arch/arm/dts/Makefile | 3 - + arch/arm/dts/corstone1000-extsys-u-boot.dtsi | 14 ++ + arch/arm/dts/corstone1000-fvp-u-boot.dtsi | 9 + + arch/arm/dts/corstone1000-fvp.dts | 82 -------- + arch/arm/dts/corstone1000-mps3-u-boot.dtsi | 9 + + arch/arm/dts/corstone1000-mps3.dts | 32 --- + arch/arm/dts/corstone1000-u-boot.dtsi | 30 +++ + arch/arm/dts/corstone1000-virtio-u-boot.dtsi | 13 ++ + arch/arm/dts/corstone1000.dtsi | 194 ------------------- + board/armltd/corstone1000/corstone1000.c | 4 +- + configs/corstone1000_defconfig | 5 +- + 11 files changed, 81 insertions(+), 314 deletions(-) + create mode 100644 arch/arm/dts/corstone1000-extsys-u-boot.dtsi create mode 100644 arch/arm/dts/corstone1000-fvp-u-boot.dtsi delete mode 100644 arch/arm/dts/corstone1000-fvp.dts create mode 100644 arch/arm/dts/corstone1000-mps3-u-boot.dtsi delete mode 100644 arch/arm/dts/corstone1000-mps3.dts create mode 100644 arch/arm/dts/corstone1000-u-boot.dtsi + create mode 100644 arch/arm/dts/corstone1000-virtio-u-boot.dtsi delete mode 100644 arch/arm/dts/corstone1000.dtsi diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
@@ -43,27 +48,41 @@ index 7c8cf3a5a1d..89b3728379b 100644 dtb-$(CONFIG_TARGET_COREPRIMEVELTE) += pxa1908-samsung-coreprimevelte.dtb include $(srctree)/scripts/Makefile.dts +diff --git a/arch/arm/dts/corstone1000-extsys-u-boot.dtsi b/arch/arm/dts/corstone1000-extsys-u-boot.dtsi +new file mode 100644 +index 00000000000..074f45f0e69 +--- /dev/null ++++ b/arch/arm/dts/corstone1000-extsys-u-boot.dtsi +@@ -0,0 +1,14 @@ ++// SPDX-License-Identifier: GPL-2.0 or MIT ++/* ++ * Copyright 2026 Arm Limited and/or its affiliates <[email protected]> ++ * ++ */ ++ ++&{/soc} { ++ extsys0: remoteproc@1a010310 { ++ compatible = "arm,corstone1000-extsys"; ++ reg = <0x1a010310 0x4>, <0x1a010314 0x4>; ++ reg-names = "reset-control", "reset-status"; ++ firmware-name = "es_flashfw.elf"; ++ }; ++}; diff --git a/arch/arm/dts/corstone1000-fvp-u-boot.dtsi b/arch/arm/dts/corstone1000-fvp-u-boot.dtsi new file mode 100644 -index 00000000000..20425fa0624 +index 00000000000..5cb7762fc1c --- /dev/null +++ b/arch/arm/dts/corstone1000-fvp-u-boot.dtsi -@@ -0,0 +1,15 @@ +@@ -0,0 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 or MIT +/* -+ * Copyright 2025 Arm Limited and/or its affiliates <[email protected]> ++ * Copyright 2026 Arm Limited and/or its affiliates <[email protected]> + * + */ + +#include "corstone1000-u-boot.dtsi" -+ -+/ { -+ virtio: virtio-net@40400000 { -+ compatible = "virtio,mmio"; -+ reg = <0x40400000 0x10000>; -+ interrupts = <145>; -+ }; -+}; ++#include "corstone1000-extsys-u-boot.dtsi" ++#include "corstone1000-virtio-u-boot.dtsi" diff --git a/arch/arm/dts/corstone1000-fvp.dts b/arch/arm/dts/corstone1000-fvp.dts deleted file mode 100644 index cd8a132271e..00000000000
@@ -154,17 +173,18 @@ index cd8a132271e..00000000000 - diff --git a/arch/arm/dts/corstone1000-mps3-u-boot.dtsi b/arch/arm/dts/corstone1000-mps3-u-boot.dtsi new file mode 100644 -index 00000000000..9ab744d8d20 +index 00000000000..0d9d6c5e6e1 --- /dev/null +++ b/arch/arm/dts/corstone1000-mps3-u-boot.dtsi -@@ -0,0 +1,8 @@ +@@ -0,0 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 or MIT +/* -+ * Copyright 2025 Arm Limited and/or its affiliates <[email protected]> ++ * Copyright 2026 Arm Limited and/or its affiliates <[email protected]> + * + */ + +#include "corstone1000-u-boot.dtsi" ++#include "corstone1000-extsys-u-boot.dtsi" + diff --git a/arch/arm/dts/corstone1000-mps3.dts b/arch/arm/dts/corstone1000-mps3.dts deleted file mode 100644
@@ -206,13 +226,13 @@ index e3146747c2d..00000000000 -}; diff --git a/arch/arm/dts/corstone1000-u-boot.dtsi b/arch/arm/dts/corstone1000-u-boot.dtsi new file mode 100644 -index 00000000000..95dd277d4cc +index 00000000000..a75bc7016aa --- /dev/null +++ b/arch/arm/dts/corstone1000-u-boot.dtsi -@@ -0,0 +1,39 @@ +@@ -0,0 +1,30 @@ +// SPDX-License-Identifier: GPL-2.0 or MIT +/* -+ * Copyright 2025 Arm Limited and/or its affiliates <[email protected]> ++ * Copyright 2025-2026 Arm Limited and/or its affiliates <[email protected]> + * + */ +
@@ -240,13 +260,23 @@ index 00000000000..95dd277d4cc + }; + }; +}; +diff --git a/arch/arm/dts/corstone1000-virtio-u-boot.dtsi b/arch/arm/dts/corstone1000-virtio-u-boot.dtsi +new file mode 100644 +index 00000000000..89ff06a51f8 +--- /dev/null ++++ b/arch/arm/dts/corstone1000-virtio-u-boot.dtsi +@@ -0,0 +1,13 @@ ++// SPDX-License-Identifier: GPL-2.0 or MIT ++/* ++ * Copyright 2026 Arm Limited and/or its affiliates <[email protected]> ++ * ++ */ + -+&{/soc} { -+ extsys0: remoteproc@1a010310 { -+ compatible = "arm,corstone1000-extsys"; -+ reg = <0x1a010310 0x4>, <0x1a010314 0x4>; -+ reg-names = "reset-control", "reset-status"; -+ firmware-name = "es_flashfw.elf"; ++/ { ++ virtio: virtio-net@40400000 { ++ compatible = "virtio,mmio"; ++ reg = <0x40400000 0x10000>; ++ interrupts = <145>; + }; +}; diff --git a/arch/arm/dts/corstone1000.dtsi b/arch/arm/dts/corstone1000.dtsi
@@ -494,3 +524,4 @@ index 450d69762ab..350607892fa 100644 CONFIG_VERSION_VARIABLE=y CONFIG_NET_RANDOM_ETHADDR=y CONFIG_REGMAP=y +
meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0038-corstone1000-dts-use-32-bit-cells-for-reserved-memor.patch +5 -3
@@ -1,7 +1,8 @@ -From b457d1a3665dbac8499ccf8d0726a30e4d0554da Mon Sep 17 00:00:00 2001 +From df01111a866a37fcf875b3c2e2394414d27c89da Mon Sep 17 00:00:00 2001 From: Harsimran Singh Tungal <[email protected]> Date: Wed, 24 Sep 2025 13:42:25 +0000 -Subject: [PATCH] corstone1000: dts: use 32-bit cells for /reserved-memory node +Subject: [PATCH] corstone1000: dts: use 32-bit cells for + /reserved-memory node Switch the *reserved-memory* node from two-cell (64-bit) encoding to one-cell (32-bit) encoding and adjust the `reg` property accordingly
@@ -14,7 +15,7 @@ Signed-off-by: Harsimran Singh Tungal <[email protected]> 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/dts/corstone1000-u-boot.dtsi b/arch/arm/dts/corstone1000-u-boot.dtsi -index 95dd277d4cc..b29ac74217e 100644 +index a75bc7016aa..4ea6f1d9724 100644 --- a/arch/arm/dts/corstone1000-u-boot.dtsi +++ b/arch/arm/dts/corstone1000-u-boot.dtsi @@ -18,12 +18,12 @@
@@ -33,3 +34,4 @@ index 95dd277d4cc..b29ac74217e 100644 no-map; }; }; +
meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0039-corstone1000-Add-Cortex-A320-support-on-FVP.patch +17 -25
96 lines not on this page · raw message
PATCH 2/7 arm-bsp/u-boot:cs1k: Split Cortex-a320 device tree
In reply to Michael SafwatFrom: Frazer Carsley <[email protected]>
The U-Boot maintainers rejected the previous patch [1] for two primary reasons:
1. The Cortex-A320 changes should be considered a separate platform
2. The NPU node bindings do not match those in the Linux kernel
The former is handled by this commit. The latter point has not been resolved, hence marking the newly added patch as Inappropriate. This is simply the first step in resolving the comments.
[1] https://lore.kernel.org/all/[email protected]
--- .../u-boot/u-boot-corstone1000.inc | 12 +- ...e1000-Add-Cortex-A320-support-on-FVP.patch | 219 ------- ...-a320-Add-Corstone1000-board-variant.patch | 594 ++++++++++++++++++ .../u-boot/corstone1000/corstone1000-a320.cfg | 2 - 4 files changed, 599 insertions(+), 228 deletions(-) delete mode 100644 meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0039-corstone1000-Add-Cortex-A320-support-on-FVP.patch create mode 100644 meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0039-corstone1000-a320-Add-Corstone1000-board-variant.patch delete mode 100644 meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/corstone1000-a320.cfg
meta-arm-bsp/recipes-bsp/u-boot/u-boot-corstone1000.inc +5 -7
@@ -3,10 +3,13 @@ DEPENDS:append = " openssl-native efitools-native" CORSTONE1000_DEVICE_TREE:corstone1000-mps3 = "arm/corstone1000-mps3" CORSTONE1000_DEVICE_TREE:corstone1000-fvp = "arm/corstone1000-fvp" +CORSTONE1000_DEVICE_TREE:cortexa320 = "corstone1000-a320-fvp" EXTRA_OEMAKE:append = ' DEVICE_TREE=${CORSTONE1000_DEVICE_TREE}' +CORSTONE1000_DEFCONFIG = "corstone1000_defconfig" +CORSTONE1000_DEFCONFIG:cortexa320 = "corstone1000-a320_defconfig" UBOOT_CONFIG ??= "EFI" -UBOOT_CONFIG[EFI] = "corstone1000_defconfig" +UBOOT_CONFIG[EFI] = "${CORSTONE1000_DEFCONFIG}" UBOOT_ENTRYPOINT = "0x80000000" UBOOT_LOADADDRESS = "0x80000000" UBOOT_BOOTARGS = "${LINUX_KERNEL_ARGS} loglevel=9"
@@ -75,12 +78,7 @@ SRC_URI:append = " \ # Add Cortex-a320 support SRC_URI:append = " \ - file://0039-corstone1000-Add-Cortex-A320-support-on-FVP.patch \ -" - -# Add Cortex-a320 specific configurations -SRC_URI:append:cortexa320 = " \ - file://corstone1000-a320.cfg \ + file://0039-corstone1000-a320-Add-Corstone1000-board-variant.patch \ " uboot_configure_config:append() {
meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0039-corstone1000-Add-Cortex-A320-support-on-FVP.patch deleted +0 -219
219 lines not on this page · raw message
meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0039-corstone1000-a320-Add-Corstone1000-board-variant.patch new file +594 -0
594 lines not on this page · raw message
meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/corstone1000-a320.cfg deleted +0 -2
@@ -1,2 +0,0 @@ -CONFIG_ETHOS_U85=y -CONFIG_GIC_700=y
PATCH 3/7 arm-bsp/corstone1000: Add linux-yocto 6.19 kernel recipe
In reply to Michael Safwatlinux-yocto does not currently ship a 6.19 recipe, so add a meta-arm-bsp linux-yocto_6.19.bb that tracks linux-yocto-dev v6.19/base.
Pin SRCREV_machine to fixed revision to keep builds reproducible.
Update Corstone-1000 to prefer linux-yocto 6.19 and align the user guide pointers accordingly.
--- .../conf/machine/include/corstone1000.inc | 2 +- .../documentation/corstone1000/user-guide.rst | 2 +- .../recipes-kernel/linux/linux-yocto_6.19.bb | 37 +++++++++++++++++++ 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 meta-arm-bsp/recipes-kernel/linux/linux-yocto_6.19.bb
meta-arm-bsp/conf/machine/include/corstone1000.inc +1 -1
@@ -37,7 +37,7 @@ IMAGE_CMD:wic[vardeps] += "GRUB_LINUX_APPEND" # Linux kernel PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" -PREFERRED_VERSION_linux-yocto ?= "6.18.%" +PREFERRED_VERSION_linux-yocto ?= "6.19%" KERNEL_IMAGETYPE = "Image" KERNEL_IMAGETYPE:firmware = "Image.gz" # add FF-A support in the kernel
meta-arm-bsp/documentation/corstone1000/user-guide.rst +1 -1
@@ -157,7 +157,7 @@ The provided distribution is based on `BusyBox <https://www.busybox.net/>`__ and +-----------+------------------------------------------------------------------------------------------------+ | bbappend | ``${WORKSPACE}/meta-arm/meta-arm-bsp/recipes-kernel/linux/linux-yocto_%.bbappend`` | +-----------+------------------------------------------------------------------------------------------------+ -| Recipe | ``${WORKSPACE}/core/meta/recipes-kernel/linux/linux-yocto_6.18.bb`` | +| Recipe | ``${WORKSPACE}/meta-arm/meta-arm-bsp/recipes-kernel/linux/linux-yocto_6.19.bb`` | +-----------+------------------------------------------------------------------------------------------------+ | defconfig | ``${WORKSPACE}/meta-arm/meta-arm-bsp/recipes-kernel/linux/files/corstone1000/defconfig`` | +-----------+------------------------------------------------------------------------------------------------+
meta-arm-bsp/recipes-kernel/linux/linux-yocto_6.19.bb new file +37 -0
@@ -0,0 +1,37 @@ +require recipes-kernel/linux/linux-yocto.inc + +# provide this .inc to set specific revisions +include recipes-kernel/linux/linux-yocto-dev-revisions.inc + +KBRANCH = "v6.19/standard/base" +KMETA = "kernel-meta" + +DEFAULT_PREFERENCE = "-1" + +# CVE exclusions +include recipes-kernel/linux/cve-exclusion.inc +include recipes-kernel/linux/cve-exclusion_6.19.inc + +# linux-yocto-dev pinned to 6.19 +KBRANCH = "v6.19/standard/base" +SRCREV_machine = "c042e9e14dd7efb27e9556c42db39425a2860572" +SRCREV_meta = "6df48aa0b0d32d05614d7eda898f8d930a7600b7" + +SRC_URI = "git://git.yoctoproject.org/linux-yocto-dev.git;name=machine;branch=${KBRANCH};protocol=https \ + git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=master;destsuffix=${KMETA};protocol=https" + +LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" + +KCONF_BSP_AUDIT_LEVEL = "1" + +# Functionality flags +KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc" +KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}" +KERNEL_FEATURES:append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32.scc", "", d)}" +KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/scsi/scsi-debug.scc features/nf_tables/nft_test.scc", "", d)}" +KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/gpio/mockup.scc features/gpio/sim.scc", "", d)}" +KERNEL_FEATURES:append = " ${@bb.utils.contains("KERNEL_DEBUG", "True", " features/reproducibility/reproducibility.scc features/debug/debug-btf.scc", "", d)}" +# libteam ptests from meta-oe needs it +KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/net/team/team.scc", "", d)}" +# openl2tp tests from meta-networking needs it +KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " cgl/cfg/net/l2tp.scc", "", d)}"
PATCH 4/7 arm-bsp/u-boot: cs1k: Align Ethos-U85 DT with in-tree driver
In reply to Michael SafwatAlign the Corstone1000 Ethos-U85 device tree to match the upstream bindings used by the in-tree Ethos-U DRM accel driver.
- Rework the Corstone1000 U-Boot patch to replace the legacy arm,ethosu-direct node with an upstream-style Ethos-U85 node (arm,ethos-u85), add the required clocks/clock-names, and switch the SRAM description to mmio-sram.
- Drop meta-ethos specific properties (reserved-memory/dma-ranges, /region-cfgs/mem-config) from the U-Boot DT.
- Enable required kernel options for the in-tree driver and SRAM provider:
- CONFIG_SRAM
- CONFIG_DRM
- CONFIG_DRM_ACCEL
- CONFIG_DRM_ACCEL_ARM_ETHOSU
--- ...-a320-Add-Corstone1000-board-variant.patch | 81 ++++++------------- .../linux/files/corstone1000/ethosu.cfg | 4 + .../linux/linux-arm-platforms.inc | 1 + 3 files changed, 30 insertions(+), 56 deletions(-) create mode 100644 meta-arm-bsp/recipes-kernel/linux/files/corstone1000/ethosu.cfg
meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0039-corstone1000-a320-Add-Corstone1000-board-variant.patch +25 -56
@@ -1,4 +1,4 @@ -From 9f95097d9b2d9b1360b5c105161509ea9a5b198d Mon Sep 17 00:00:00 2001 +From da23886f3b38812c60a4597db129ab96df74bb99 Mon Sep 17 00:00:00 2001 From: Frazer Carsley <[email protected]> Date: Wed, 25 Feb 2026 14:28:08 +0000 Subject: [PATCH] corstone1000-a320: Add Corstone1000 board variant
@@ -22,13 +22,9 @@ compatibility with Cortex-A35 and GIC-400. * Add `/ethosu@1a050000` node describing the NPU register block at `0x1A050000`. -* Introduce associated reserved memory regions: - * `ethosu_sram@02400000`: 2 MiB on-chip SRAM (`no-map`). - * `ethosu_reserved@A0000000`: 32 MiB DDR carve-out - (`shared-dma-pool`). -* Connect memory regions through `memory-region` and `sram` phandles. -* Add `dma-ranges`, interrupt spec, `region-cfgs`, `cs-region`, and - `ethosu-mem-config` for full driver support. +* `ethosu_sram@02400000`: 2 MiB on-chip SRAM. +* Fully compliant with upstream bindings. + **GIC-700 support** * Add full GICv3 node.
@@ -41,20 +37,22 @@ These updates align the Corstone-1000 platform with Arm’s latest Cortex-A320 and Ethos-U85 configurations and ensure proper interrupt and memory mapping for both secure and non-secure domains. -Upstream-Status: Inappropriate [Unsupported ethosu device-tree nodes, denied by maintainers (https://lore.kernel.org/all/[email protected]/)] +Upstream-Status: Pending [Strong dependency on previous patches that +should be upstreamed first] Signed-off-by: Frazer Carsley <[email protected]> Signed-off-by: Harsimran Singh Tungal <[email protected]> +Signed-off-by: Michael Safwat <[email protected]> --- arch/arm/Kconfig | 1 + - arch/arm/dts/corstone1000-a320-fvp.dts | 51 ++++ - arch/arm/dts/corstone1000-a320.dtsi | 237 ++++++++++++++++++ + arch/arm/dts/corstone1000-a320-fvp.dts | 51 +++++ + arch/arm/dts/corstone1000-a320.dtsi | 208 ++++++++++++++++++ arch/arm/include/asm/armv8/cpu.h | 3 + board/armltd/corstone1000-a320/Kconfig | 12 + board/armltd/corstone1000-a320/MAINTAINERS | 7 + board/armltd/corstone1000/corstone1000.c | 6 +- - configs/corstone1000-a320_defconfig | 89 +++++++ + configs/corstone1000-a320_defconfig | 89 ++++++++ .../arm/arm,corstone1000-a320.yml | 31 +++ - 9 files changed, 434 insertions(+), 3 deletions(-) + 9 files changed, 405 insertions(+), 3 deletions(-) create mode 100644 arch/arm/dts/corstone1000-a320-fvp.dts create mode 100644 arch/arm/dts/corstone1000-a320.dtsi create mode 100644 board/armltd/corstone1000-a320/Kconfig
@@ -133,10 +131,10 @@ index 00000000000..c01c629e0ca +}; diff --git a/arch/arm/dts/corstone1000-a320.dtsi b/arch/arm/dts/corstone1000-a320.dtsi new file mode 100644 -index 00000000000..28424db77bb +index 00000000000..6715e15ec37 --- /dev/null +++ b/arch/arm/dts/corstone1000-a320.dtsi -@@ -0,0 +1,237 @@ +@@ -0,0 +1,208 @@ +// SPDX-License-Identifier: GPL-2.0 or MIT +/* + * Copyright 2026, Arm Limited and/or its affiliates <[email protected]>
@@ -260,42 +258,26 @@ index 00000000000..28424db77bb + method = "smc"; + }; + -+ ethosu: ethosu@1A050000 { -+ compatible = "arm,ethosu-direct"; ++ ethosu_sram: ethosu_sram@02400000 { ++ compatible = "mmio-sram"; ++ reg = <0x02400000 0x200000>; + #address-cells = <1>; + #size-cells = <1>; ++ ranges; ++ }; ++ ++ ethosu@1A050000 { ++ compatible = "arm,corstone1000-ethos-u85", "arm,ethos-u85"; + + // Base address and size of NPU registers + reg = <0x1A050000 0x4000>; + -+ memory-region = <ðosu_reserved>; + sram = <ðosu_sram>; + -+ // Address mappings to translate between bus addresses (NPU) and physical host CPU addresses -+ dma-ranges = <0x02400000 0x02400000 0x200000>, -+ <0xA0000000 0xA0000000 0x02000000>; -+ -+ interrupts = <0 16 4>; -+ interrupt-names = "irq"; -+ -+ // Memory region configuration -+ region-cfgs = <3 3 0 3 3 3 3 3>; -+ -+ // Memory regions used for the command stream -+ cs-region = <2>; -+ -+ // Memory interface configuration for Ethos-U85 -+ ethosu_mem_config { -+ compatible = "arm,ethosu-mem-config"; -+ // <beats outstanding_read outstanding_write> -+ sram = <0 64 32>; -+ ext = <1 64 32>; -+ // <mem_domain mem_type axi_port> -+ configs = <0 0 0>, -+ <0 0 0>, -+ <0 0 1>, -+ <0 0 1>; -+ }; ++ interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; ++ ++ clocks = <&uartclk>, <&refclk100mhz>; ++ clock-names = "core", "apb"; + }; + + soc {
@@ -361,19 +343,6 @@ index 00000000000..28424db77bb + }; +}; + -+&{/reserved-memory} { -+ ethosu_sram: ethosu_sram@02400000 { -+ reg = <0x02400000 0x200000>; -+ no-map; -+ }; -+ -+ ethosu_reserved: ethosu_reserved@A0000000 { -+ compatible = "shared-dma-pool"; -+ reg = <0xA0000000 0x02000000>; -+ no-map; -+ }; -+}; -+ diff --git a/arch/arm/include/asm/armv8/cpu.h b/arch/arm/include/asm/armv8/cpu.h index e906fdf1bf1..1ae679f7119 100644 --- a/arch/arm/include/asm/armv8/cpu.h
meta-arm-bsp/recipes-kernel/linux/files/corstone1000/ethosu.cfg new file +4 -0
@@ -0,0 +1,4 @@ +CONFIG_SRAM=y +CONFIG_DRM=y +CONFIG_DRM_ACCEL=y +CONFIG_DRM_ACCEL_ARM_ETHOSU=y
meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc +1 -0
@@ -65,6 +65,7 @@ KMACHINE:corstone1000:cortexa320 = "corstone1000-a320" LINUX_KERNEL_TYPE:corstone1000:cortexa320 = "standard" SRC_URI:append:corstone1000:cortexa320 = " \ file://defconfig \ + file://ethosu.cfg \ " # Default kernel features not needed for Corstone-1000 with
PATCH 5/7 arm-bsp/corstone1000-a320: Drop meta-ethos dependency
In reply to Michael SafwatCorstone1000 with Cortex A320 now uses the in-tree ethosu driver, so the external meta-ethos layer (and its meta-sca dependency) is no longer needed.
Remove meta-ethos and meta-sca from the Corstone-1000 A320 kas config, drop the layer dependency on meta-ethos, and stop installing arm-npu-ethosu. Update the Corstone-1000 change log to reflect the removed layers.
--- kas/corstone1000-a320.yml | 8 -------- meta-arm-bsp/conf/layer.conf | 1 - meta-arm-bsp/conf/machine/include/corstone1000-a320.inc | 2 -- meta-arm-bsp/documentation/corstone1000/change-log.rst | 4 ---- 4 files changed, 15 deletions(-)
kas/corstone1000-a320.yml +0 -8
@@ -7,11 +7,3 @@ local_conf_header: a320: | MACHINE_FEATURES += "cortexa320" OVERRIDES .= ":cortexa320" - -repos: - meta-ethos: - url: https://gitlab.arm.com/iot/meta-ethos.git - branch: whinlatter - meta-sca: - url: https://github.com/priv-kweihmann/meta-sca.git - branch: master
meta-arm-bsp/conf/layer.conf +0 -1
@@ -14,7 +14,6 @@ LAYERSERIES_COMPAT_meta-arm-bsp = "wrynose" LAYERDEPENDS_meta-arm-bsp = "core meta-arm" # This won't be used by layerindex-fetch, but works everywhere else LAYERDEPENDS_meta-arm-bsp:append:corstone1000 = " meta-python openembedded-layer efi-secure-boot" -LAYERDEPENDS_meta-arm-bsp:append:corstone1000:cortexa320 = " meta-ethos" LAYERDEPENDS_meta-arm-bsp:append:musca-b1 = " meta-python" LAYERDEPENDS_meta-arm-bsp:append:musca-s1 = " meta-python"
meta-arm-bsp/conf/machine/include/corstone1000-a320.inc +0 -2
@@ -1,5 +1,3 @@ ETHOSU_NUM_MACS ?= "256" FVP_CONFIG[host.ethosu.num_macs] = "${ETHOSU_NUM_MACS}" - -IMAGE_INSTALL:append = " arm-npu-ethosu"
meta-arm-bsp/documentation/corstone1000/change-log.rst +0 -4
@@ -66,10 +66,6 @@ Yocto distribution components versions +-------------------------------------------+----------------+ | meta-secure-core | 63209fb150 | +-------------------------------------------+----------------+ -| meta-ethos | aa2504a32f | -+-------------------------------------------+----------------+ -| meta-sca | e68f1a9d17 | -+-------------------------------------------+----------------+ | busybox | 1.37.0 | +-------------------------------------------+----------------+ | musl | 1.2.5 |
PATCH 6/7 arm-bsp/docs: corstone1000: document Cortex-A320 SMP support
In reply to Michael SafwatCorstone-1000 with Cortex-A320 FVP now supports SMP, so update the documentation to reflect the current status.
Update the user guide to state that SMP is supported on Corstone-1000 with Cortex-A35 FVP and on Corstone-1000 with Cortex-A320 FVP.
Add the Cortex-A320 multicore build and run commands.
--- .../documentation/corstone1000/user-guide.rst | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-)
meta-arm-bsp/documentation/corstone1000/user-guide.rst +22 -3
@@ -2182,22 +2182,41 @@ Symmetric Multiprocessing .. warning:: - Symmetric multiprocessing (SMP) mode is only supported on Corstone-1000 with Cortex-A35 FVP but is disabled by default. + Symmetric multiprocessing (SMP) mode is supported on Corstone-1000 + with Cortex-A35 FVP and Corstone-1000 with Cortex-A320 FVP, but is disabled by default. -#. Build the software stack with SMP mode enabled: +#. Build the software stack with SMP mode enabled. + + For Corstone-1000 with Cortex-A35 FVP: .. code-block:: console kas build meta-arm/kas/corstone1000-fvp.yml:meta-arm/ci/debug.yml:meta-arm/kas/corstone1000-multicore.yml -#. Run the Corstone-1000 FVP: + For Corstone-1000 with Cortex-A320 FVP: + + .. code-block:: console + + kas build meta-arm/kas/corstone1000-fvp.yml:meta-arm/ci/debug.yml:meta-arm/kas/corstone1000-a320.yml:\ + meta-arm/kas/corstone1000-multicore.yml + +#. Run the Corstone-1000 FVP. + + For Corstone-1000 with Cortex-A35 FVP: .. code-block:: console kas shell meta-arm/kas/corstone1000-fvp.yml:meta-arm/ci/debug.yml:meta-arm/kas/corstone1000-multicore.yml \ -c "../meta-arm/scripts/runfvp" + For Corstone-1000 with Cortex-A320 FVP: + + .. code-block:: console + + kas shell meta-arm/kas/corstone1000-fvp.yml:meta-arm/ci/debug.yml:meta-arm/kas/corstone1000-a320.yml:\ + meta-arm/kas/corstone1000-multicore.yml \ + -c "../meta-arm/scripts/runfvp" #. Verify that the FVP is running the Host Processor with more than one CPU core:
PATCH 7/7 arm-bsp/docs: corstone1000: switch Ethos-U85 test flow to test_teflon
In reply to Michael SafwatUpdate the Corstone-1000 user guide to reflect the current Ethos-U85 test and workaround flow.
As the Corstone-1000 software stack moves to the in-tree ethosu driver, switch the Ethos-U85 test instructions from delegate_runner to Mesa's test_teflon application. Also update the guide to use the renamed ethos-u85-test kas fragment and to apply the Mesa patch needed to package test_teflon into the image.
Also replace the disable_module_autoloading kas fragment in the A320 workaround instructions with the disable-ethosu patch, to align with the workaround flow used in systemready-patch.
--- .../documentation/corstone1000/user-guide.rst | 55 +++++++++++++------ 1 file changed, 37 insertions(+), 18 deletions(-)
meta-arm-bsp/documentation/corstone1000/user-guide.rst +37 -18
@@ -882,13 +882,26 @@ Capsule Update git clone https://git.gitlab.arm.com/arm-reference-solutions/systemready-patch.git \ -b CORSTONE1000-2025.12 + #. Copy the disable ethosu driver Git patch file to your copy of `meta-arm`. + + .. code-block:: console + + cp -f systemready-patch/embedded-a/corstone1000/disable_module_autoloading/0001-arm-bsp-linux-corstone1000-a320-disable-ethosu-confi.patch \ + ${WORKSPACE}/meta-arm/ + + #. Apply the Git patch to `meta-arm`. + + .. code-block:: console + + cd ${WORKSPACE}/meta-arm/ + git apply 0001-arm-bsp-linux-corstone1000-a320-disable-ethosu-confi.patch + cd ${WORKSPACE} #. Re-Build the **Corstone-1000 with Cortex-A320 FVP** software stack as follows: .. code-block:: console - kas build meta-arm/kas/corstone1000-fvp.yml:meta-arm/ci/debug.yml:meta-arm/kas/corstone1000-a320.yml:\ - systemready-patch/embedded-a/corstone1000/disable_module_autoloading/disable_module_autoloading.yml + kas build meta-arm/kas/corstone1000-fvp.yml:meta-arm/ci/debug.yml:meta-arm/kas/corstone1000-a320.yml .. important::
@@ -2245,22 +2258,37 @@ Ethos-U85 NPU .. code-block:: console - cp ${WORKSPACE}/systemready-patch/embedded-a/corstone1000/ethos-u85_test/ethos-u85_test.yml \ + cp ${WORKSPACE}/systemready-patch/embedded-a/corstone1000/ethos-u85_test/ethos-u85-test.yml \ ${WORKSPACE}/meta-arm/kas/ +#. Copy the mesa package Git patch file to your copy of meta-arm. + + .. code-block:: console + + cp -f ${WORKSPACE}/systemready-patch/embedded-a/corstone1000/ethos-u85_test/0001-arm-bsp-mesa-Package-Teflon-test-runner-and-models.patch \ + ${WORKSPACE}/meta-arm/ + +#. Apply the Git patch to meta-arm. + + .. code-block:: console + + cd ${WORKSPACE}/meta-arm/ + git apply 0001-arm-bsp-mesa-Package-Teflon-test-runner-and-models.patch + cd ${WORKSPACE} + #. Re-Build the Corstone-1000 with Cortex-A320 FVP software stack as follows: .. code-block:: console kas build meta-arm/kas/corstone1000-fvp.yml:meta-arm/ci/debug.yml:meta-arm/kas/corstone1000-a320.yml:\ - meta-arm/kas/ethos-u85_test.yml + meta-arm/kas/ethos-u85-test.yml #. Run the Corstone-1000 with Cortex-320 FVP: .. code-block:: console kas shell meta-arm/kas/corstone1000-fvp.yml:meta-arm/ci/debug.yml:meta-arm/kas/corstone1000-a320.yml:\ - systemready-patch/embedded-a/corstone1000/ethos-u85_test/ethos-u85_test.yml \ + systemready-patch/embedded-a/corstone1000/ethos-u85_test/ethos-u85-test.yml \ -c "../meta-arm/scripts/runfvp" #. To verify you are running the Corstone-1000 with Cortex-A320, build and run the FVP and inspect the CPU model
@@ -2272,25 +2300,16 @@ Ethos-U85 NPU grep -E 'CPU part|model name' /proc/cpuinfo # Expect: CPU part : 0xd8f (which corresponds to Cortex-A320) -#. Run the `delegate_runner` test application inside the FVP shell as follows: +#. Run the `test_teflon` test application inside the FVP shell as follows: .. code-block:: console - delegate_runner -l /usr/lib/libethosu_op_delegate.so \ - -n /usr/share/ethosu/mobilenet_v2_1.0_224_INT8_vela.tflite \ - -i /usr/share/ethosu/input_data0.bin \ - -o /usr/share/ethosu/actual_output_data0.bin + export TEFLON_TEST_DELEGATE=/usr/lib/libteflon.so + export TEFLON_TEST_DATA=/usr/share/teflon/tests + test_teflon --gtest_filter='Models.*' The test completes in approximately one minute. -#. Run the following command to compare the generated output binary with the expected output binary: - - .. code-block:: console - - cmp -s /usr/share/ethosu/expected_output_data0.bin /usr/share/ethosu/actual_output_data0.bin - - The two binary files should be identical. - Secure Debug ------------