1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-05-07 16:59:30 +00:00
Commit Graph

1973 Commits

Author SHA1 Message Date
Anusmita Dutta Mazumder 0457cfd605 arm-bsp/u-boot: corstone1000: add unique firmware GUID
Add new Corstone-1000 firmware GUID and remove previous u-boot GUID to be updated into ESRT table.
SR-IR 2.0 requires the capsule GUID to be unique.

Signed-off-by: Anusmita Dutta Mazumder <anusmita.duttamazumder@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-08-15 11:00:29 -04:00
Jon Mason 391b9dc0a9 arm/trusted-firmware-a: update to 2.9.0
Update the trusted-firmware-a recipes to 2.9.0
Moving legacy recipes (2.8) for tc1 and corestone1000 to meta-arm-bsp

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-08-11 09:59:16 -04:00
Abdellatif El Khlifi ea9ca499c9 arm-bsp/u-boot: corstone1000: detect the kernel size automatically
use filesize environment variable to read the size of the unzipped initramfs bundle

Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-08-11 09:59:16 -04:00
Ross Burton a209895b94 kas/: pass through DISPLAY from environment
If a user does eg "kas shell kas/corstone1000-base.yml" and then calls
runfvp, the spawned xterms don't have a valid DISPLAY set.

Add DISPLAY to the preserved environment variables and DISPLAY will be
passed into the shell, and the xterms will start correctly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-08-11 09:59:16 -04:00
Robbie Cao 992c07f7c0 arm/recipes-kernel: Add preempt-rt support for generic-arm64
Add kernel configuration necessary to build an image with preempt-rt
support for generic-arm64.

And tweak kernel configuration for preempt-rt kernel.

Signed-off-by: Robbie Cao <robbie.cao@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-08-08 11:39:47 -04:00
Jon Mason c92ac97d79 arm/trusted-firmware-m: upgrade to v1.8.0
Upgrade tf-m to v1.8.0 and update the related components as well

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-08-08 11:39:47 -04:00
Jon Mason 8c42263eb3 arm-bsp/tc1: remove trusted-firmware-m target
We aren't testing it and it's not compiling cleanly in v1.8,
let's just drop it for now.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-08-08 11:39:47 -04:00
Jon Mason 07ec4baadf arm/optee-test: update musl workaround patch
Patch was accepted upstream (see
https://github.com/OP-TEE/optee_test/pull/688).  Use the commit that was
backported and specify it as so.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-08-08 11:39:47 -04:00
Jon Mason ea797536da arm-bsp: clean-up patch noise
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-08-08 11:39:47 -04:00
Jon Mason 299cb9e0b3 arm/edk2: move 202211 recipe to meta-arm-bsp
202211 is only used in meta-arm-bsp, and all other users should be using
the latest version.  Move it there until n1sdp can be updated to the
latest.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-08-08 11:39:33 -04:00
Jon Mason 9fa8d0d0d0 arm-toolchain/gcc-aarch64-none-elf: upgrade to 12.3.rel1
Upgrade the 12.2 recipe to 12.3.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-08-07 12:00:47 -04:00
Ross Burton 0e043288fd arm-toolchain/gcc-arm-none-eabi: upgrade to 12.3.rel1
Upgrade the 12.2 recipe to 12.3.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-08-03 08:27:08 +01:00
Ross Burton d30ab1696e arm/trusted-firmware-m: explicitly use Arm GCC 11.2
TF-M recommend using GCC 11.2 as 11.3 onwards currently has code
generation issues.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-08-03 08:27:08 +01:00
Ross Burton 8d42065f41 arm-toolchain/gcc-arm-none-eabi-11.2: add new recipe
Add back the 11.2 release of GCC, because TF-M has code generation
problems with 11.3 onwards.

This recipe has the major version embedded in the recipe name so that it
has to be specifically asked for in a per-recipe basis.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-08-03 08:27:08 +01:00
Ross Burton 65504a799d arm-toolchain/arm-binary-toolchain: install to a versioned directory
So that it's obvious which version of GCC is being used, install the
files into a versioned directory under $libexecdir.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-08-03 08:27:08 +01:00
Ross Burton 938bbe9837 arm-toolchain/androidclang: remove
This was added to build an Android Common Kernel with the Android
compiler, but we don't need to build that anymore.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-08-03 08:27:08 +01:00
Emekcan Aras 92d4cabed3 arm-bsp/u-boot: corstone1000: increase the kernel size
The unzipped kernel size increased due to recent changes in oe master.
Since corstone1000 sets a fixed kernel size, this should be increased to
boot the platform correctly.

Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
2023-08-02 17:11:34 +01:00
Ziad Elhanafy 3cfe68f5cc arm/recipes-devtools,doc: Update FVP version
Update fvp-base-a-aem and fvp-base-r-aem to v11.22.14

Signed-off-by: Ziad Elhanafy <ziad.elhanafy@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-26 16:00:17 -04:00
Adam Johnston 308e5d7145 arm-bsp/trusted-firmware-a: Reserve OP-TEE memory from NWd on N1SDP
The physical memory which is used to run OP-TEE on the N1SDP is known
to the secure world via TOS_FW_CONFIG, but it may not be known to the
normal world.

As a precaution, explicitly reserve this memory via NT_FW_CONFIG to
prevent the normal world from using it. This is not required on most
platforms as the Trusted OS is run from secure RAM.

Signed-off-by: Adam Johnston <adam.johnston@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-26 12:00:21 -04:00
Jon Mason 9ea107c5fe arm-bsp/corstone1000: update u-boot preferred version
The upstream u-boot recipe did a minor version update, which is causing
a "preferred version not available" warning.  Add a '%' to resolve this
issue.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-26 08:05:19 -04:00
Jon Mason cfcc8a4d13 CI: workaround 32bit timer warning in binary toolchain
Temporary workaround for a number binaries in the toolchains that are
using 32bit timer API.  This must be done in the CI yml file instead of
the recipe because of all the libraries in the toolchain have the issue.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-24 11:00:21 -04:00
Jon Mason 887e47b7c5 CI: add defaults for get-binary-toolchains
Pre-populate the standard values of get-binary-toolchains so that it
will work without variables in a standard kas container.  This will aid
in ease-of-use for development and testing of binary toolchains.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-24 11:00:21 -04:00
Abdellatif El Khlifi 79afe6a41e arm-bsp/u-boot: corstone1000: upgrade to v2023.07
Port Corstone-1000 patches to U-Boot v2023.07
Include the latest FF-A patchset sent to the mailing list (v15).

Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-21 07:00:31 -04:00
Abdellatif El Khlifi ddae9c4370 arm-bsp/trusted-firmware-a: corstone1000: psci: SMCCC_ARCH_FEATURES discovery through PSCI_FEATURES
add SMCCC_ARCH_FEATURES discovery

Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Upstream-Status: Inappropriate [A U-Boot patch will be released to fix an issue in the PSCI driver]
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-21 07:00:31 -04:00
Jon Mason b4d50a273d arm/linux-yocto: move 6.1 patches to a unique bbappend
Move the 3 patches only needed by the 6.1 kernel into a unique bbappend
The defconfig changes cannot be moved into a config fragment because
they only exist in the defconfig file (because the patches that
integrated their functionality into the kernel were not merged).

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-20 11:53:18 -04:00
Jon Mason 8f03838a72 arm-bsp/juno: remove commented out KCONFIG
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-20 11:53:18 -04:00
Jon Mason 4616202e83 arm/optee-os: update/clean-up patches and recipes
The optee-os.inc was including patches which really should've been in
the versioned .bb file.  Move those references there and update the
FILESEXTRAPATHS to be more intelligent.  While there, rebase the files
via devtool and update the file names as necessary.

Also, remove unreferenced patches.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-19 13:00:19 -04:00
Ziad Elhanafy f091a160b8 arm-bsp/documentation: Replace FVP_BASE_R_ARM_EULA_ACCEPT with ARM_FVP_EULA_ACCEPT
1- Replace FVP_BASE_R_ARM_EULA_ACCEPT with ARM_FVP_EULA_ACCEPT
in fvp-baser-aemv8r64.md
2- Add instructions to corstone1000/user-guide.rst to set
ARM_FVP_EULA_ACCEPT to "1".

Signed-off-by: Ziad Elhanafy <ziad.elhanafy@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-19 12:00:29 -04:00
Ziad Elhanafy 635989dbbb kas: Add fvp-eula.yml and remove license related settings
1- Add fvp-eula.yml file which introduces ARM_FVP_EULA_ACCEPT
environment variable
2- Remove any license related settings from fvp-baser-aemv8r64-bsp.yml,
corstone500.yml and corstone1000-fvp.yml

Signed-off-by: Ziad Elhanafy <ziad.elhanafy@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-19 12:00:29 -04:00
Ziad Elhanafy 4e3cb6cbe4 arm: Set FVP EULA environment variable details message
Set the FVP EULA environment variable details message
to request the user to accept the EULA in case it has
not been accepted.

Signed-off-by: Ziad Elhanafy <Ziad.Elhanafy@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-19 12:00:29 -04:00
Jon Mason e67d9c4dbc ci/clang: add llvm-native from clang README
The following error is seen:
ERROR: Nothing PROVIDES 'llvm-native' (but virtual:native:/builds/jonmason00/meta-arm/work/build/../poky/meta/recipes-graphics/mesa/mesa_23.1.3.bb DEPENDS on or otherwise requires it). Close matches:
  ovmf-native
  rust-llvm-native
  vim-native

Work around this by using the llvm-native from meta-clang

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-18 15:03:01 -04:00
Jon Mason f12f035093 arm-bsp/machine: work around rootfs name issue
Upstream change 26d97acc71379ab6702fa54a23b6542a3f51779c changed the
IMAGE_LINK_NAME to have IMAGE_NAME_SUFFIX and breaks the automatic
finding of the image by name.  Work around here until upstream fix can
be added.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-18 15:02:41 -04:00
Ziad Elhanafy 0731d371cb arm/classes: Remove IMAGE_NAME_SUFFIX from image path
Remove IMAGE_NAME_SUFFIX from image path in
wic_nopt.bblass

Signed-off-by: Ziad Elhanafy <ziad.elhanafy@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-18 09:16:16 -04:00
Ziad Elhanafy 1a0dd17793 arm-bsp/conf: Remove hardcoded .rootfs from image path
Remove hardcoded .rootfs from image path in:
1- fvp-common.inc
2- corstone1000-fvp.conf
3- corstone500.conf
4- fvp-baser-aemv8r64.conf

Signed-off-by: Ziad Elhanafy <ziad.elhanafy@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-18 09:16:16 -04:00
Ross Burton e668762031 arm-bsp/linux-yocto: fix Upstream-Status
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-18 09:16:16 -04:00
Ross Burton a64fb4a40d toolchain: remove pointless provides
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-18 09:16:16 -04:00
Ross Burton 41a7a64c66 arm-bsp/u-boot: add temporary 2023.01 recipe
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-18 09:16:16 -04:00
Ross Burton 3c514763c8 CI: track master
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-18 09:16:16 -04:00
Peter Hoyes 0b574210aa arm/oeqa: Introduce the fvp_devices test suite
The fvp_devices test suite can be used to verify the following
functionality at runtime, common to most FVPs:
 * CPU hotplug
 * virtio-net device presence and functionality
 * virtio-rng device presence and functionality
 * PL031 RTC device presence and functionality
 * SP805 watchdog device presence

The list of devices to be tested can be configured by a BSP using the
variable TEST_FVP_DEVICES.

Add this test suite for fvp-base and fvp-baser-aemv8r64.

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-17 15:00:40 -04:00
Peter Hoyes 7ed86c025e arm/oeqa: Convert linuxboot test case into fvp_boot
The linuxboot test case is already FVP-specific due to the use of the
OEFVPTarget pexpect interface. Clarify this by renaming to fvp_boot.

So that fvp_boot can be used alongside other OEQA test cases (e.g. those
in OE-core):
 * Call self.target.transition("off") at the start of the test to
   ensure the model starts from reset
 * Call self.target.transition("linux") to reuse the "wait for boot"
   logic in OEFVPTarget.

Additionally, minimally validate the firmware boot by checking for
common error patterns in all console logs. Expose the runfvp config in
OEFVPTarget to support this.

Align the list of test cases executed on both fvp-base and
fvp-baser-aemv8r64 by using TEST_CASES:append = " fvp_boot" for both.

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-17 15:00:40 -04:00
Peter Hoyes 67dabb0bee arm/OEFVPTarget: Add support for model state transitions
To better support firmware testing alongside Linux runtime testing,
introduce model state support to OEFVPTarget. The following states are
supported using self.target.transition(state):
 * off
 * on
 * linux

Instead of assuming a specific state in OEFVPTarget.start,
responsibility is delegated to test cases to lazily put the model in
the required state. But to support OE-core test cases, OEFVPTarget.run
automatically puts the model in the "linux" state for running the
command. Firmware and Linux tests can subsequently run alongside each
other without introducing complex test dependencies.

The concept is inspired by Labgrid strategies [1], albeit simplified.

Tweak log file handling so that output is collected across (possibly)
multiple model processes.

[1] https://labgrid.readthedocs.io/en/latest/overview.html#strategies

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-17 15:00:40 -04:00
Peter Hoyes ea762113ce arm/oeqa: Merge all OEFVP*Target classes
The differences between OEFVPTarget, OEFVPSSHTarget and
OEFVPSerialTarget are not obvious and there is a lot of duplication.

Merge all the logic into one OEFVPTarget (again). This has the following
features:
 * Run SSH commands
 * Run serial console assertions
 * Lazily await a Linux login prompt while running test cases (only when
   self.target.run is called).

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-17 15:00:40 -04:00
Peter Hoyes cf0baaee0b runfvp: Add missing conffile include
Using runfvp without explicitly specifying the fvpconf path currently
fails due to a missing fvp.conffile include.

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-17 15:00:40 -04:00
Jon Mason 80c6c41741 arm/optee: update to 3.22.0
Update to the latest version of OP-TEE, and move the legacy versions
that are still in use by meta-arm-bsp to that directory

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-17 10:49:36 -04:00
Jon Mason 3eef74e3c3 arm/optee-test: modify to use build openssl
By default, optee-test is using an ancient version of openssl (1.2.0o)
in binary form, located in the optee-test build tree.   musl is already
working around this.  So, use those defaults for everyone.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-17 10:49:36 -04:00
Ross Burton 249b534ce7 arm/scp-firmware: fix intermittent compile failures
scp-firmware passes -I/core/include to the compiler which doesn't exist,
and sometimes gcc emits a fatal error.  It's unclear why this doesn't
happen for everyone, but this workaround appears to be the correct
solution.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-10 10:00:13 -04:00
Ross Burton 6947632e0b arm/scp-firmware: log what platform/firmware/type is being built
This helps understand long build logs.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-10 10:00:13 -04:00
Ross Burton 675dce4d63 arm/scp-firware: update compiler variables
SCP_COMPILER isn't used anymore, so remove it.

Explicitly set SCP_TOOLCHAIN=GNU for clarity.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-10 10:00:13 -04:00
Ross Burton 64b33efb95 arm-bsp/scp-firmware: remove redundant SCP_PLATFORM
Now that this defaults to MACHINE, explicit SCP_PLATFORM assignments can
be removed.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-10 10:00:13 -04:00
Ross Burton ce78057a71 arm/scp-firmware: set default SCP_PLATFORM to MACHINE
Many platform names are the same as the machine name, so this saves
some typing.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-07-10 10:00:13 -04:00