- 19 Oct, 2022 2 commits
-
-
Abdellatif El Khlifi authored
exclude kernel-image-* packages from the rootfs Signed-off-by:
Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
Abdellatif El Khlifi authored
To fit the kernel image into the allotted space, a compressed kernel image is now needed. Use the Image.gz from the kernel build process and change the relevant places to use the new image name. This also necessitates adding an unzip command to u-boot to uncompress it to memory (and the loadm is still needed to setup the efi mem boot device). Also, the unzipped image is larger than before. So, increase the size that loadm is copying. This change shrinks the initramfs bundle size from 12MB to 4.8MB Signed-off-by:
Jon Mason <jon.mason@arm.com> Signed-off-by:
Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
- 29 Sep, 2022 1 commit
-
-
Jon Mason authored
Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
- 27 Sep, 2022 1 commit
-
-
Jiacheng Tang authored
Update version in documentation. Issue-Id: SCM-5168 Signed-off-by:
Jiacheng Tang <jiacheng.tang@arm.com> Change-Id: Ic6302540e5ec3eb4d2ef436018cba7328f6dfc68 Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
- 14 Sep, 2022 2 commits
-
-
Peter Hoyes authored
It is sometimes useful to be able to configure the behavior of FVPs using environment variables, e.g. for licensing or plugins. Add a new FVP option: FVP_ENV_PASSTHROUGH, which allows the Bitbake variables to be passed to the environment to be specified explicitly (in a similar way to BB_ENV_PASSTHROUGH). This ensures that: * FVPs launched via runfvp have a reproducable environment * FVPs launched via testimage (which run from an isolated Bitbake task) can receive environment variables Change the self-tests to use cwd instead of PATH to find the mock FVPs, as the PATH environment variable is no longer passed through. Issue-Id: SCM-4964 Signed-off-by:
Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: Idf6ac6d41fda4cd5f950bc383c2fc1fa1acdf4e3 Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
Jon Mason authored
The 1.5.x branch no longer exists on the tf-m git repo, but the SHA is still present. Update the branch name to allow for this. Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
- 12 Sep, 2022 1 commit
-
-
Vishnu Banavath authored
git sha on https://git.gitlab.arm.com/linux-arm/linux-trusted-services/-/tree/v2.1.0 has been changed recently for v2.1.0 tag. This change is to update ffa-debugfs-mod_2.1.0.bb to fetch correct git SHA. Signed-off-by:
Vishnu Banavath <vishnu.banavath@arm.com> Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
- 11 Sep, 2022 1 commit
-
-
Denys Dmytriyenko authored
Historically external-arm-toolchain recipe packaged all gcc headers from ${libdir}/gcc/${TARGET_SYS}/${BINV}/include - some would be picked up by packages like gcc-sanitizers, libssp-dev. libquadmath-dev or libgomp-dev. The rest would fall into catch-all libgcc-dev package. Unfortunately, that could result in a conflict with a target gcc, which also packages some of those files, like unwind.h or stddef.h, among others. The conflict could be seen with this config: EXTRA_IMAGE_FEATURES += "dev-pkgs tools-sdk" TCMODE = "external-arm" EXTERNAL_TOOLCHAIN = "/OE/toolchains/gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu" And the error message is: Error: Transaction test error: file /usr/lib/gcc/aarch64-poky-linux/11.2.1/include/stddef.h conflicts between attempted installs of libgcc-s-dev-11.2.1-r0.1.cortexa57 and gcc-arm+11.2-r2022.02.1.cortexa57 file /usr/lib/gcc/aarch64-poky-linux/11.2.1/include/unwind.h conflicts between attempted installs of libgcc-s-dev-11.2.1-r0.1.cortexa57 and gcc-arm+11.2-r2022.02.1.cortexa57 Modify external-arm-toolchain recipe according to how libgcc in OE-Core handles those header files by removing and not packaging them: https://git.openembedded.org/openembedded-core/tree/meta/recipes-devtools/gcc/libgcc-common.inc#n40 Also need to adjust gcc recipe to pick up unwind.h from EXTERNAL_TOOLCHAIN location now, since libgcc-dev no longer carries it, and install it into STAGING_LIBDIR_NATIVE, where OE-Core gcc-target.inc expects it from gcc-cross: https://git.openembedded.org/openembedded-core/tree/meta/recipes-devtools/gcc/gcc-target.inc#n164 Signed-off-by:
Denys Dmytriyenko <denys@konsulko.com> Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
- 01 Sep, 2022 1 commit
-
-
Peter Hoyes authored
In complex stacks, e.g. with many cores or many init scripts, the time to Linux shell may be more than 10 minutes. Make the boot timeout configurable using TEST_FVP_LINUX_BOOT_TIMEOUT, leaving the default value at 10 minutes. Issue-Id: SCM-4958 Signed-off-by:
Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: Ie074acd4b4509d0230d1f77a2a527d497bb295ce Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
- 23 Aug, 2022 1 commit
-
-
Leo Yan authored
Since the github repository doesn't contain a "master" branch but has the "main" branch now, this patch updates to the "main" branch so can download the repository successfully. CC: Ilias Apalodimas <ilias.apalodimas@linaro.org> CC: Jerome Forissier <jerome.forissier@linaro.org> CC: Peter Griffin <peter.griffin@linaro.org> Signed-off-by:
Leo Yan <leo.yan@linaro.org> Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
- 09 Aug, 2022 3 commits
-
-
Jerome Forissier authored
Since upstream OP-TEE 3.16.0, CFLAGS32 and CFLAGS64 can be used to set the sysroot option that previously required the LIBGCC_LOCATE_CFLAGS patches. Signed-off-by:
Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
Peter Hoyes authored
Add documentation for how to use the OEQA framework to test targets in meta-arm. Include instructions on using OEFVPTarget as well as the OEFVPSerialTarget introduced by the recent refactor of runfvp. Issue-Id: SCM-4954 Signed-off-by:
Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: I146ec1c82214471fe9d18a999fd92efb38f652f9 Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
Peter Hoyes authored
The runfvp refactor to enable OEFVPSerialTarget created FVP_CONSOLES which maps the names used for serial ports in test cases to the names used for serial ports in the FVP stdout. Refactor the FVP_CONSOLE section -> FVP_CONSOLES, noting the the 'default' console is still used for the --console runfvp flag. Issue-Id: SCM-4954 Signed-off-by:
Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: Ieb13d74cfd425900f44b4b2e6d125393e7b456ad Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
- 08 Aug, 2022 1 commit
-
-
Jon Mason authored
meta-gem5 needs the 5.4 kernel, which is only present in the meta-arm-bsp layer. Add this as a dependency to resolve issues. Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
- 04 Aug, 2022 1 commit
-
-
Ross Burton authored
This appears to be historical from when the toolchain was in meta-linaro. It isn't needed anymore, there's one bbappend in meta-arm-toolchain for grub which is part of oe-core, so will never be dangling. This variable has a global effect, so leaving it in here has a negative impact on users. Signed-off-by:
Ross Burton <ross.burton@arm.com> Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
- 03 Aug, 2022 2 commits
-
-
Changqing Li authored
lib32-optee-os do_compile failed since OPTEE_ARCH is not set correctly. In file included from lib/libutee/include/link.h:9, from lib/libutee/arch/arm/tcb.c:37: lib/libutee/include/elf.h:67:2: error: #error Unknown architecture 67 | #error Unknown architecture | ^~~~~ In file included from lib/libutee/arch/arm/tcb.c:37: lib/libutee/include/link.h:13:9: error: unknown type name 'Elf_Addr' 13 | Elf_Addr dlpi_addr; /* module relocation base */ Signed-off-by:
Changqing Li <changqing.li@windriver.com> Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
Peter Hoyes authored
At the moment, when using the --console flag, if telnet is shut down cleanly (i.e. by typing "quit" at the prompt instead of Ctrl+C), runfvp still waits on the FVP to exit of its own accord, so hangs. Move the fvp.run() call so that when telnet quits, it immediately proceeds to shut down the FVP. Issue-Id: SCM-4954 Signed-off-by:
Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: I2169c99586a1eebc2c6ab4b2e15fb0c769fc81a8 Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
- 02 Aug, 2022 1 commit
-
-
Changqing Li authored
Run command: bitbake optee-os && bitbake lib32-optee-os bitbake lib32-optee-os will fail with following error since bitbake optee-os already deploy same file under the path. RROR: lib32-optee-os-3.12.0+gitAUTOINC+3d47a131bc-r0 do_deploy: The recipe lib32-optee-os is trying to install files into a shared area when those files already exist. Those files and their manifest location are: /build/tmp-glibc/deploy/images/qemuarm64/optee/tee.elf (matched in manifest-qemuarm64-optee-os.deploy) Fix by deploy them to differernt dir Signed-off-by:
Changqing Li <changqing.li@windriver.com> Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
- 30 Jul, 2022 1 commit
-
-
Maciej Borzecki authored
Cherry pick gcc 12.x compatibility patches from the upstream. Signed-off-by:
Maciej Borzecki <maciek@thing.com>
-
- 27 Jul, 2022 6 commits
-
-
Adam Johnston authored
When enabling trusted boot, the UEFI binary was replaced with a FIP image (which contains the UEFI binary), therefore the SD card image should depend on trusted-firmware-a rather than edk2-firmware. Signed-off-by:
Adam Johnston <adam.johnston@arm.com>
-
Adam Johnston authored
NT_FW_CONFIG DTB contains platform information passed by TF-A boot stage. This information is used for Virtual memory map generation during PEI phase and passed on to DXE phase as a HOB, where it is used in ConfigurationManagerDxe. Signed-off-by:
Adam Johnston <adam.johnston@arm.com>
-
Adam Johnston authored
This commit configures N1SDP firmware for TBBR bootflow as follows: * uefi.bin replaced with with fip.bin * load address adjusted for FIP image Signed-off-by:
Adam Johnston <adam.johnston@arm.com>
-
Adam Johnston authored
This commit configures scp-firmware for TBBR bootflow as follows: * SCP FW upgraded to 2.10 for the N1SDP only * Updates SCP FW src to master * BL31 replaced in the SCP firmware image with BL1 Signed-off-by:
Adam Johnston <adam.johnston@arm.com>
-
Adam Johnston authored
This commit configures trusted-firmware-a for TBBR bootflow on N1SDP as follows: * Trusted Firmware is upgraded to 2.7.0 for the N1SDP only * Trusted boot is enabled. * Generation of root-of-trust is enabled * All TB images (BLx, DTBs) are built * uefi.bin is specified as the BL33 image * BL2, BL31, BL33 are signed and stored in the FIP * N1SDP platform sources are patched to increase max size BL2 and reduce max size of BL1 Signed-off-by:
Adam Johnston <adam.johnston@arm.com>
-
Peter Hoyes authored
The linuxboot test case prints the following in log.do_testimage, only when executing testimage without a pycache: linuxboot.py:18: DeprecationWarning: invalid escape sequence \: self.target.expect(self.console, "login\:", timeout=10*60) Fix the warning by escaping the ':' character correctly in the pexpect regex. Issue-Id: SCM-4957 Signed-off-by:
Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: I8ad54c7df6b7d1d1ddeab31cf66daff1ab84e227 Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
- 18 Jul, 2022 1 commit
-
-
Peter Hoyes authored
We have encountered intermittent hanging during FVP shutdown, so improve the termination logic by first issuing a terminate(), waiting a bit then, if necessary, issuing a kill(). Move returncode logic to after the telnet/pexpect cleanup so it actually runs. Move pexpect.EOF logic into FVPRunner.stop so that it executes before closing the pexpect handle. Issue-Id: SCM-4957 Signed-off-by:
Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: Iebb3c3c89367256b1e116e66ffdb6b742358bce4 Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
- 13 Jul, 2022 6 commits
-
-
Peter Hoyes authored
Create a new "linuxboot" test that uses the pexpect methods on OEFVPSerialTarget to wait for a Linux login shell. Switch to this test method for fvp-baser-aemv8r64, corstone500 and corstone1000. Issue-Id: SCM-4957 Signed-off-by:
Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: Idd749652ee72e244b7a3831dd2295e0bfaed3bfa Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
Peter Hoyes authored
Refactor OEFVPTarget into new base class, OEFVPSSHTarget. OEFVPTarget extends OEFVPSSHTarget and additionally waits for a Linux login prompt for compatibility with tests in OE-core. OEFVPSerialTarget also extends OEFVPSSHTarget. It also exposes the entire API of pexpect, with the first argument being the FVP_TEST_CONSOLE varflag key. It logs each console output to separate files inside the core-image-minimal work directory. Issue-Id: SCM-4957 Signed-off-by:
Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: I1b93f94471c6311da9ee71a48239640ee37de0af Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
Peter Hoyes authored
So that the test target can connect to the desired console(s) as soon as they appear in the FVP stdout, add the variable FVP_CONSOLES to the fvpconf as a replcaement for FVP_CONSOLE. The varflags of this variable define a mapping between FVP console names (e.g. terminal_0) and console names in the tests (e.g. 'zephyr'). The console defined in FVP_CONSOLE is automatically mapped as 'default' for backwards compatibility. This also enables greater reuse of test cases, as the "default" console name can be remapped on a per-machine basis. Issue-Id: SCM-4957 Signed-off-by:
Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: I9d88b172bfc5a5459b9f5132f287c70816d7fb55 Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
Peter Hoyes authored
Refactor OEFVPTarget to use the FVPRunner in meta-arm/lib instead of calling runfvp in a new process. Use pexpect to wait for the login prompt instead of parsing the FVP output manually. This patch introduces a dependency on pexpect for the meta-arm test targets. It is already in the Yocto host dependency list and the Kas container image, but may need to be installed on development machines. Issue-Id: SCM-4957 Signed-off-by:
Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: I7200e958c5701d82493287d021936afcf2f2bac9 Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
Peter Hoyes authored
Create basic tests for conffile and runner in meta-arm/lib/fvp Issue-Id: SCM-4957 Signed-off-by:
Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: I1684b0c99fb4fd5299df19f00abb30e8faab3495 Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
Peter Hoyes authored
Refactor runfvp into a "fvp" library inside meta-arm. Split into terminal, conffile and runner. Issue-Id: SCM-4957 Signed-off-by:
Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: I797f9a4eab810f3cc331b7db140f59c9911231fd Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
- 11 Jul, 2022 1 commit
-
-
Bertrand Marquis authored
When runfvp is spawned from an other process (for example except), it is throwing a permission error. To solve the problem, surround the call to setpgid with a try/except and ignore the permission errors. Signed-off-by:
Bertrand Marquis <bertrand.marquis@arm.com> Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
- 22 Jun, 2022 3 commits
-
-
Jon Mason authored
zephyr uses icount to improve test accuracy on virtual hardware. Do the same here for the same reason for the platforms that actually test. Also, the common test now appears to work for microbit-v1 and poll doe snot work for qemu-cortex-m3 Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
Jiamei Xie authored
Arm generic timer provides different timers for different exception levels and different secure states. Because Armv8-R AArch64 has secure state only, the valid timer for hypervisor in EL2 is secure hypervisor physical timer. But for platform fvp-baser-aemv8r64, before FVP 11.18, the secure hypervisor physical timer could not work well in EL2, so we had been using Non-secure physical timer in EL2 for hypervisor as a workaround. Since secure hypervisor physical timer issue has been fixed from FVP 11.18, we can use this correct timer in EL2 for hypervisor now. So we update the device tree timer node to use secure hypervisor physical timer interrupt for hypervisor. About the interrupt assignments of FVP, please refer to https://developer.arm.com/documentation/100964/latest/Base-Platform/Base---interrupt-assignments Issue-Id: SCM-4596 Signed-off-by:
Jiamei Xie <jiamei.xie@arm.com> Change-Id: I9d4b9f4e0ed14c6c1567269c83696ceb9ff84ac8 Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
Peter Hoyes authored
The new FVP includes the arch in the download filename, so refactor FVP_ARCH in fvp-common.inc to make "Linux64" available in the recipe file. Update version and EULA URL in documentation. Issue-Id: SCM-4388 Signed-off-by:
Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: I3ddc29cd444b78634086f2aefe4f52799eb937b1 Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
- 07 Jun, 2022 2 commits
-
-
Peter Hoyes authored
Add parameters required to boot with cache_state_modelled enabled: * bp.virtio_net.secure_accesses=1 * bp.virtio_rng.secure_accesses=1 * bp.virtioblockdevice.secure_accesses=1 * cci400.force_on_from_start=1 Add bp.ve_sysregs.exit_on_shutdown=1 to match fvp-base. Remove parameters that are not required to boot or are setting the default value. Alphabetize the list. Issue-Id: SCM-4304 Signed-off-by:
Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: I0a696eff5bb83206e5501f651c487f16f695aa4c Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
Peter Hoyes authored
Running the FVP_Base_AEMv8R model with the cache_state_modelled parameter enabled exposed some defects in the U-Boot BSP patches for the fvp-baser-aemv8r64: * The MPU memory attributes are inconsistent with the existing MMU attributes, causing a model hang when sending packets using virtio-net in U-Boot. * The instruction cache was left disabled after booting an EFI payload at S-EL1, violating the UEFI specification and causing Grub to hang when attempting to use dynamically loaded modules. The cache_state_modelled FVP parameter is enabled by default in the model (for simulation accuracy) but is disabled by default in the machine conf (for simulation speed). This patch adds two additional machine-specific U-Boot patches to fix the above issues. Issue-Id: SCM-4641 Signed-off-by:
Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: I5ab13c9fdadd82456ac3f3e3703df36590d52fb7 Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
- 23 May, 2022 2 commits
-
-
Abdellatif El Khlifi authored
FVP script is replaced with the runfvp command. Signed-off-by:
Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> Signed-off-by:
Jon Mason <jon.mason@arm.com>
-
Abdellatif El Khlifi authored
Align all repos to kirkstone stable branch HEAD meta-arm-image is no longer supported on master and should be dropped in kirkstone as well. Signed-off-by:
Harry Moulton <harry.moulton@arm.com> Signed-off-by:
Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> Signed-off-by:
Jon Mason <jon.mason@arm.com>
-