arm/fvp-base: Update the default testsuites
PATCH 1/5 arm/fvp-base: Update the default testsuites
For fvp-base, update the DEFAULT_TEST_SUITES to include fvp_boot and fvp_devices. This is only the default behaviour; individual recipes can override this using the TEST_SUITES variable.
--- meta-arm-bsp/conf/machine/fvp-base.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm-bsp/conf/machine/fvp-base.conf +1 -1
@@ -33,7 +33,7 @@ MACHINE_EXTRA_RRECOMMENDS += "ssh-pregen-hostkeys" TEST_TARGET = "OEFVPTarget" TEST_TARGET_IP = "127.0.0.1:2222" -TEST_SUITES:append = " fvp_boot fvp_devices" +DEFAULT_TEST_SUITES:append = " fvp_boot fvp_devices" TEST_FVP_DEVICES ?= "rtc watchdog networking virtiorng cpu_hotplug" FVP_PROVIDER ?= "fvp-base-a-aem-native"
Signature · 1 line
2.25.1
PATCH 2/5 arm-systemready: Introduce the Arm SystemReady layer
Add the meta-arm-systemready layer. This provides the infrastructure to load and run the Arm SystemReady IR ACS v2.0.0 prebuilt image and analyze the results.
The recipes included are as follows:
1. arm-systemready-firmware: Enables the ARM_SYSTEMREADY_FIRMWARE machine conf variable to be used to specify which firmware packages to deploy.
2. arm-systemready-ir-acs: Runs the Arm SystemReady IR ACS tests from the pre-built images and checks the results adhere to the specification.
3. arm-systemready-linux-distros-[debian|opensuse]: Install the distro of choice from CD/DVD image to target disk image.
--- .../classes/arm-systemready-acs.bbclass | 161 ++++++++++++++++++ .../classes/extra_imagedepends_only.bbclass | 25 +++ meta-arm-systemready/conf/layer.conf | 15 ++ .../runtime/cases/arm_systemready_ir_acs.py | 37 ++++ .../arm-systemready-firmware.bb | 14 ++ .../python3-construct-native_2.10.68.bb | 13 ++ .../arm-systemready-ir-acs.bb | 61 +++++++ .../arm-systemready-scripts-native.bb | 31 ++++ ...-Return-non-zero-exit-code-on-failur.patch | 37 ++++ ...-sr-results-Device-tree-improvements.patch | 77 +++++++++ .../edk2-test-parser-native.bb | 26 +++ .../arm-systemready-linux-distros-debian.bb | 41 +++++ .../arm-systemready-linux-distros-opensuse.bb | 69 ++++++++ .../arm-systemready-linux-distros.inc | 50 ++++++ 14 files changed, 657 insertions(+) create mode 100644 meta-arm-systemready/classes/arm-systemready-acs.bbclass create mode 100644 meta-arm-systemready/classes/extra_imagedepends_only.bbclass create mode 100644 meta-arm-systemready/conf/layer.conf create mode 100644 meta-arm-systemready/lib/oeqa/runtime/cases/arm_systemready_ir_acs.py create mode 100644 meta-arm-systemready/recipes-bsp/arm-systemready/arm-systemready-firmware.bb create mode 100644 meta-arm-systemready/recipes-devtools/python/python3-construct-native_2.10.68.bb create mode 100644 meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-ir-acs.bb create mode 100644 meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-scripts-native.bb create mode 100644 meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-scripts/0001-check-sr-results-Return-non-zero-exit-code-on-failur.patch create mode 100644 meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-scripts/0002-check-sr-results-Device-tree-improvements.patch create mode 100644 meta-arm-systemready/recipes-test/arm-systemready-acs/edk2-test-parser-native.bb create mode 100644 meta-arm-systemready/recipes-test/arm-systemready-linux-distros/arm-systemready-linux-distros-debian.bb create mode 100644 meta-arm-systemready/recipes-test/arm-systemready-linux-distros/arm-systemready-linux-distros-opensuse.bb create mode 100644 meta-arm-systemready/recipes-test/arm-systemready-linux-distros/arm-systemready-linux-distros.inc
meta-arm-systemready/classes/arm-systemready-acs.bbclass new file +161 -0
@@ -0,0 +1,161 @@ +# This class contains the common logic to deploy the SystemReady ACS pre-built +# image and set up the testimage environment. It is to be inherited by recipes +# which contains the URI to download the SystemReady ACS image. +# This class also contains a testimage "postfunc" called acs_logs_handle which +# performs the following functions after the tests have completed: +# * Extract the acs_results directory from the Wic image to +# ${WORKDIR}/testimage +# * Create a symlink to the acs_results in ${TMPDIR}/log/oeqa for ease of +# access +# * Run the test parser, format results, and check results routines + +INHIBIT_DEFAULT_DEPS = "1" +COMPATIBLE_HOST = "aarch64-*" +PACKAGE_ARCH = "${MACHINE_ARCH}" +inherit nopackages deploy rootfs-postcommands ${IMAGE_CLASSES} python3native + +do_configure[noexec] = "1" +do_compile[noexec] = "1" +do_install[noexec] = "1" +do_testimage[depends] += "mtools-native:do_populate_sysroot" + +# Deploy with this suffix so it is picked up in the machine configuration +IMAGE_DEPLOY_SUFFIX ?= ".wic" + +# Post-process commands may write to IMGDEPLOYDIR +IMGDEPLOYDIR = "${DEPLOYDIR}" +# Write the test data in IMAGE_POSTPROCESS_COMMAND +IMAGE_POSTPROCESS_COMMAND += "write_image_test_data; " + +python do_deploy() { + deploydir = d.getVar('DEPLOYDIR') + suffix = d.getVar('IMAGE_DEPLOY_SUFFIX') + imgfile = os.path.join(d.getVar('WORKDIR'), d.getVar('IMAGE_FILENAME')) + deployfile = os.path.join(deploydir, d.getVar('IMAGE_NAME') + suffix) + linkfile = os.path.join(deploydir, d.getVar('IMAGE_LINK_NAME') + suffix) + + # Install the image file in the deploy directory + import shutil + shutil.copyfile(imgfile, deployfile) + if os.path.lexists(linkfile): + os.remove(manifest_link) + os.symlink(os.path.basename(deployfile), linkfile) + + # Run the image post-process commands + from oe.utils import execute_pre_post_process + post_process_cmds = d.getVar("IMAGE_POSTPROCESS_COMMAND") + execute_pre_post_process(d, post_process_cmds) + + # Copy the report.txt to DEPLOYDIR + # The machine-specific implementation can optionally put the report file in + # ${WORKDIR}/report.txt. If there is no such file present, use the template. + workdir = d.getVar('WORKDIR') + report_file = os.path.join(workdir, "report.txt") + report_file_dest = os.path.join(deploydir, "report.txt") + if os.path.exists(report_file): + report_file_to_copy = report_file + else: + report_file_to_copy = os.path.join(workdir, "systemready-ir-template", + "report.txt") + shutil.copyfile(report_file_to_copy, report_file_dest) + + # Ensure an empty rootfs manifest exists (required by testimage) + fname = os.path.join(deploydir, d.getVar('IMAGE_LINK_NAME') + ".manifest") + open(fname, 'w').close() +} +addtask deploy after do_install before do_image_complete + +do_image_complete() { + true +} +addtask image_complete after do_deploy before do_build +do_image_complete[depends] += "arm-systemready-firmware:do_image_complete" + +ACS_LOG_NAME = "acs_results_${DATETIME}" +ACS_LOG_NAME[vardepsexclude] += "DATETIME" +ACS_LOG_DIR = "${TEST_LOG_DIR}/${ACS_LOG_NAME}" +ACS_LOG_LINK = "${TEST_LOG_DIR}/acs_results" +TEST_LOG_DIR = "${WORKDIR}/testimage" +RM_WORK_EXCLUDE_ITEMS += "${@ os.path.basename(d.getVar('TEST_LOG_DIR')) }" + +do_testimage[postfuncs] += "acs_logs_handle" +do_testimage[depends] += "edk2-test-parser-native:do_populate_sysroot \ + arm-systemready-scripts-native:do_populate_sysroot" + +# Process the logs +python acs_logs_handle() { + import logging + from oeqa.utils import make_logger_bitbake_compatible + import shutil + + deploy_dir_image = d.getVar('DEPLOY_DIR_IMAGE') + systemready_scripts_dir = os.path.join(d.getVar('STAGING_LIBDIR_NATIVE'), + "systemready_scripts") + edk2_test_parser_dir = os.path.join(d.getVar('STAGING_LIBDIR_NATIVE'), + "edk2_test_parser") + deployfile = os.path.join(deploy_dir_image, d.getVar('IMAGE_LINK_NAME') + + d.getVar('IMAGE_DEPLOY_SUFFIX')) + + testimage_dir = d.getVar('TEST_LOG_DIR') + logdir = d.getVar('ACS_LOG_DIR') + loglink = d.getVar('ACS_LOG_LINK') + + # Copy the report.txt file from DEPLOY_DIR_IMAGE + report_file = os.path.join(deploy_dir_image, "report.txt") + report_file_dest = os.path.join(testimage_dir, "report.txt") + shutil.copyfile(report_file, report_file_dest) + + # Extract the log files from the Wic image to the testimage logs directory + resultspath = deployfile + ':3/acs_results' + import subprocess + subprocess.run(['wic', 'cp', resultspath, logdir], check=True) + + # Create a symlink to the acs_results directory + if os.path.lexists(loglink): + os.remove(loglink) + os.symlink(os.path.basename(logdir), loglink) + + # Create a top-level symlink to the acs_results directory + top_logdir = os.path.join(get_testimage_json_result_dir(d), d.getVar("PN")) + log_name = d.getVar('ACS_LOG_NAME') + top_link = os.path.join(top_logdir, log_name) + log_target = os.path.relpath(logdir, top_logdir) + os.symlink(log_target, top_link) + + # Parse the logs and generate results file + logger = make_logger_bitbake_compatible(logging.getLogger("BitBake")) + + sct_log = os.path.join(logdir, 'sct_results', 'Overall', 'Summary.ekl') + sct_seq = os.path.join(logdir, 'sct_results', 'Sequence', 'EBBR.seq') + + parser_path = os.path.join(edk2_test_parser_dir, "parser.py") + # format-sr-results.py needs the output file to be called "result.md" + subprocess.run([parser_path, sct_log, sct_seq, "--md", + os.path.join(logdir, "result.md")], check=True) + + scripts_path = os.path.join(systemready_scripts_dir, + "format-sr-results.py") + summary_path = os.path.join(testimage_dir, "summary.md") + subprocess.run([scripts_path, "--dir", testimage_dir, "--md", summary_path], + check=True) + + # Symlink acs-console.log to default_log + subprocess.run(["ln", "-sf", os.path.join(testimage_dir, "default_log"), + os.path.join(testimage_dir, "acs-console.log")], check=True) + + # Run the check-sr-results.py systemready script to check the results + check_sr_results_log_path = os.path.join(testimage_dir, + "check_sr_results.log") + with open(check_sr_results_log_path, "w") as f: + check_sr_results_path = os.path.join(systemready_scripts_dir, + "check-sr-results.py") + try: + subprocess.run([check_sr_results_path, "--dir", testimage_dir, + "--print-meta", "--debug"], + stdout=f, stderr=f, text=True, check=True) + except subprocess.CalledProcessError: + logger.error(f"ACS run failed the check SystemReady results. See " + f"{summary_path} and {check_sr_results_log_path} for " + f"details of the error.") + raise bb.BBHandledException() +}
meta-arm-systemready/classes/extra_imagedepends_only.bbclass new file +25 -0
@@ -0,0 +1,25 @@ +# This class is to be inherited by recipes interested in only deploying what is +# listed in the EXTRA_IMAGEDEPENDS. +# It is inheriting the image.bbclass to make sure that the +# image_license.manifest is generated. + +IMAGE_FSTYPES = "" + +inherit image + +IMAGE_FEATURES = "" +EXTRA_IMAGE_FEATURES = "" + +INHIBIT_DEFAULT_DEPS = "1" +DEPENDS = "" +RDEPENDS = "" +RRECOMMENDS = "" + +deltask do_prepare_recipe_sysroot +deltask do_flush_pseudodb +deltask do_image_qa +do_rootfs[depends] = "" +do_rootfs[noexec] = "1" +do_image[noexec] = "1" +do_image_complete[noexec] = "1" +do_build[depends] = ""
meta-arm-systemready/conf/layer.conf new file +15 -0
@@ -0,0 +1,15 @@ +# We have a conf and classes directory, add to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have recipes-* directories, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" + +BBFILE_COLLECTIONS += "meta-arm-systemready" +BBFILE_PATTERN_meta-arm-systemready = "^${LAYERDIR}/" + +LAYERSERIES_COMPAT_meta-arm-systemready = "nanbield" + +LAYERDEPENDS_meta-arm-systemready = "core" + +addpylib ${LAYERDIR}/lib oeqa
meta-arm-systemready/lib/oeqa/runtime/cases/arm_systemready_ir_acs.py new file +37 -0
@@ -0,0 +1,37 @@ +from oeqa.runtime.case import OERuntimeTestCase + + +class SystemReadyACSTest(OERuntimeTestCase): + def setUp(self): + self.console = self.td.get('ARM_SYSTEMREADY_ACS_CONSOLE') + self.assertNotEqual(self.console, '', + msg='ARM_SYSTEMREADY_ACS_CONSOLE is not set') + + def test_acs(self): + """ + The purpose of this test case is to detect any issues with the ACS + tests themselves. The intention is to fail only if there is an issue + running the tests, not if an ACS test fails + """ + self.target.transition('on') + # The tests finish on a root shell + test_patterns = [r'([a-zA-Z0-9_ ]+): \[([a-zA-Z_ ]+)\]', + 'ACS run is completed'] # Signifies successful completion + + while True: + match_id = self.target.expect(self.console, test_patterns, + timeout=10*60*60) + if match_id == 0: + # A test group's result has been printed + matches = self.target.match(self.console) + group_name = matches[1].decode().strip() + status = matches[2].decode().strip() + self.logger.info(f'Test Group ({group_name}): {status}') + elif match_id == 1: + break + + # Workaround to ensure the model syncs the log files to disk + self.target.sendline(self.console, r'sync /mnt') + self.target.expect(self.console, r'root@generic-arm64:~#') + + self.logger.info('Linux tests complete')
meta-arm-systemready/recipes-bsp/arm-systemready/arm-systemready-firmware.bb new file +14 -0
@@ -0,0 +1,14 @@ +SUMMARY = "Arm SystemReady Firmware Image" +DESCRIPTION = "This recipe ensures that all packages listed in \ +ARM_SYSTEMREADY_FIRMWARE variable (set at machine conf) are deployed." + +EXTRA_IMAGEDEPENDS = "${ARM_SYSTEMREADY_FIRMWARE}" + +inherit extra_imagedepends_only + +python() { + if not d.getVar("ARM_SYSTEMREADY_FIRMWARE"): + raise bb.parse.SkipRecipe("ARM_SYSTEMREADY_FIRMWARE needs to be set") +} + +do_testimage[noexec] = "1"
meta-arm-systemready/recipes-devtools/python/python3-construct-native_2.10.68.bb new file +13 -0
@@ -0,0 +1,13 @@ +SUMMARY = "A powerful declarative symmetric parser/builder for binary data" +HOMEPAGE = "https://github.com/construct/construct" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=202b39559c1c79fe4715ce81e9e0ac02" + +PYPI_PACKAGE = "construct" + +SRC_URI[sha256sum] = "7b2a3fd8e5f597a5aa1d614c3bd516fa065db01704c72a1efaaeec6ef23d8b45" + +inherit pypi +inherit setuptools3 +inherit native
meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-ir-acs.bb new file +61 -0
61 lines not on this page · raw message
meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-scripts-native.bb new file +31 -0
@@ -0,0 +1,31 @@ +SUMMARY = "System Ready Scripts" +DESCRIPTION = "A collection of scripts to help with SystemReady compliance." +HOMEPAGE = "https://gitlab.arm.com/systemready/systemready-scripts" + +inherit native + +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=85b7d439a311c22626c2e3f05daf628e" + +RDEPENDS:${PN} = "python3-packaging-native python3-pyyaml-native \ +python3-chardet-native python3-requests-native python3-construct-native \ +dtc-native python3-dtschema-wrapper-native" + +PV = "v2023.04" +S = "${WORKDIR}/git" +SRC_URI = "\ + git://git.gitlab.arm.com/systemready/systemready-scripts.git;protocol=https;nobranch=1 \ + file://0001-check-sr-results-Return-non-zero-exit-code-on-failur.patch \ + file://0002-check-sr-results-Device-tree-improvements.patch \ +" + +# The SRCREV is at the v2023.04 tag +SRCREV = "f8244ab8da09f9e6005ceff81ebb234f35a2a698" + +do_install() { + install -d ${D}/${libdir}/systemready_scripts + cp -r ${S}/* ${D}/${libdir}/systemready_scripts +} + +do_configure[noexec] = "1" +do_compile[noexec] = "1"
meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-scripts/0001-check-sr-results-Return-non-zero-exit-code-on-failur.patch new file +37 -0
@@ -0,0 +1,37 @@ +From ad8f2826f6e2cefb630f7fc2c7c99857f224e109 Mon Sep 17 00:00:00 2001 +From: Debbie Martin <[email protected]> +Date: Tue, 5 Sep 2023 21:37:46 +0100 +Subject: [PATCH] check-sr-results: Return non-zero exit code on failure + +Return a non-zero exit code if there are any warnings or errors found. + +Upstream-Status: Pending +Signed-off-by: Debbie Martin <[email protected]> +--- + check-sr-results.py | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/check-sr-results.py b/check-sr-results.py +index 12b89cd..48658f0 100755 +--- a/check-sr-results.py ++++ b/check-sr-results.py +@@ -185,6 +185,9 @@ class Stats: + def inc_error(self): + self._inc('error') + ++ def has_warnings_or_errors(self): ++ return self.data['warning'] or self.data['error'] ++ + + # Download (possibly large) file from URL. + # We raise an exception in case of issue. +@@ -1519,3 +1522,6 @@ if __name__ == '__main__': + if args.print_meta: + print() + print_meta() ++ ++ if stats.has_warnings_or_errors(): ++ exit(1) +-- +2.25.1 +
meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-scripts/0002-check-sr-results-Device-tree-improvements.patch new file +77 -0
77 lines not on this page · raw message
meta-arm-systemready/recipes-test/arm-systemready-acs/edk2-test-parser-native.bb new file +26 -0
@@ -0,0 +1,26 @@ +SUMMARY = "EDK2 Test Parser" +DESCRIPTION = "EDK2 Test Parser for parsing the results of UEFI SCT tests" +HOMEPAGE = "https://gitlab.arm.com/systemready/edk2-test-parser" + +inherit native + +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=c0550be4b3b9c0223efd0eaa70dc9085" + +RDEPENDS:${PN} = "python3-packaging-native python3-pyyaml-native \ + python3-jsonschema-native" + +PV = "v2023.04" +S = "${WORKDIR}/git" +SRC_URI = "git://git.gitlab.arm.com/systemready/edk2-test-parser.git;protocol=https;nobranch=1" + +# The SRCREV is at the v2023.04 tag +SRCREV = "e8cdb692592d2a152cb87cf4d9fbd7ba2ae8b405" + +do_install() { + install -d ${D}/${libdir}/edk2_test_parser + cp -r ${S}/* ${D}/${libdir}/edk2_test_parser +} + +do_configure[noexec] = "1" +do_compile[noexec] = "1"
meta-arm-systemready/recipes-test/arm-systemready-linux-distros/arm-systemready-linux-distros-debian.bb new file +41 -0
41 lines not on this page · raw message
meta-arm-systemready/recipes-test/arm-systemready-linux-distros/arm-systemready-linux-distros-opensuse.bb new file +69 -0
69 lines not on this page · raw message
meta-arm-systemready/recipes-test/arm-systemready-linux-distros/arm-systemready-linux-distros.inc new file +50 -0
50 lines not on this page · raw message
Signature · 1 line
2.25.1
PATCH 3/5 arm-bsp/systemready: Bring up the Arm SystemReady IR ACS 2.0 suite on FVP base
In reply to Debbie Martin1. Configure FVP base to allow Arm SystemReady IR ACS console access.
2. Configure FVP base Arm SystemReady IR ACS firmware build.
3. Add the machine-specific report.txt for FVP base.
4. Patch the check-sr-results.yaml and format-sr-results.yaml files to handle the known differences between FVP base and the expected ACS functionality.
5. Add a README with instructions of how to use the meta-arm-systemready layer with fvp-base.
--- meta-arm-bsp/conf/layer.conf | 5 + meta-arm-bsp/conf/machine/fvp-base.conf | 7 +- .../arm-systemready-ir-acs-fvp-base.inc | 2 + .../arm-systemready-ir-acs.bbappend | 1 + ...rm-systemready-scripts-native-fvp-base.inc | 5 + .../arm-systemready-scripts-native.bbappend | 1 + ...-Change-the-expected-SR-result-confi.patch | 227 ++++++++++++++++++ .../files/fvp-base/report.txt | 34 +++ meta-arm-systemready/README.md | 126 ++++++++++ 9 files changed, 406 insertions(+), 2 deletions(-) create mode 100644 meta-arm-bsp/dynamic-layers/meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-ir-acs-fvp-base.inc create mode 100644 meta-arm-bsp/dynamic-layers/meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-ir-acs.bbappend create mode 100644 meta-arm-bsp/dynamic-layers/meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-scripts-native-fvp-base.inc create mode 100644 meta-arm-bsp/dynamic-layers/meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-scripts-native.bbappend create mode 100644 meta-arm-bsp/dynamic-layers/meta-arm-systemready/recipes-test/arm-systemready-acs/files/fvp-base/0001-check-sr-results-Change-the-expected-SR-result-confi.patch create mode 100644 meta-arm-bsp/dynamic-layers/meta-arm-systemready/recipes-test/arm-systemready-acs/files/fvp-base/report.txt create mode 100644 meta-arm-systemready/README.md
meta-arm-bsp/conf/layer.conf +5 -0
@@ -19,3 +19,8 @@ LAYERDEPENDS_meta-arm-bsp:append:musca-s1 = " meta-python" # Additional license directories. LICENSE_PATH += "${LAYERDIR}/custom-licenses" + +BBFILES_DYNAMIC += " \ + meta-arm-systemready:${LAYERDIR}/dynamic-layers/meta-arm-systemready/*/*/*.bb \ + meta-arm-systemready:${LAYERDIR}/dynamic-layers/meta-arm-systemready/*/*/*.bbappend \ +"
meta-arm-bsp/conf/machine/fvp-base.conf +5 -2
@@ -8,6 +8,10 @@ require conf/machine/include/arm/arch-armv8a.inc TUNE_FEATURES = "aarch64" +ARM_SYSTEMREADY_FIRMWARE = "trusted-firmware-a:do_deploy" +ARM_SYSTEMREADY_ACS_CONSOLE = "default" +EXTRA_IMAGEDEPENDS = "${ARM_SYSTEMREADY_FIRMWARE}" + MACHINE_FEATURES = "efi" IMAGE_NAME_SUFFIX = ""
@@ -51,9 +55,8 @@ FVP_CONFIG[bp.virtioblockdevice.image_path] ?= "${IMAGE_NAME}.wic" # Set the baseline to ARMv8.4, as the default is 8.0. FVP_CONFIG[cluster0.has_arm_v8-4] = "1" FVP_CONFIG[cluster1.has_arm_v8-4] = "1" -FVP_CONSOLE ?= "terminal_0" +FVP_CONSOLES[default] = "terminal_0" FVP_TERMINALS[bp.terminal_0] ?= "Console" FVP_TERMINALS[bp.terminal_1] ?= "" FVP_TERMINALS[bp.terminal_2] ?= "" FVP_TERMINALS[bp.terminal_3] ?= "" -
meta-arm-bsp/dynamic-layers/meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-ir-acs-fvp-base.inc new file +2 -0
@@ -0,0 +1,2 @@ +FILESEXTRAPATHS:append := "${THISDIR}/files/${MACHINE}:" +SRC_URI:append = " file://report.txt"
meta-arm-bsp/dynamic-layers/meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-ir-acs.bbappend new file +1 -0
@@ -0,0 +1 @@ +include arm-systemready-ir-acs-${MACHINE}.inc
meta-arm-bsp/dynamic-layers/meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-scripts-native-fvp-base.inc new file +5 -0
@@ -0,0 +1,5 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/files/fvp-base:" + +SRC_URI:append = " \ + file://0001-check-sr-results-Change-the-expected-SR-result-confi.patch \ +"
meta-arm-bsp/dynamic-layers/meta-arm-systemready/recipes-test/arm-systemready-acs/arm-systemready-scripts-native.bbappend new file +1 -0
@@ -0,0 +1 @@ +include arm-systemready-scripts-native-${MACHINE}.inc
meta-arm-bsp/dynamic-layers/meta-arm-systemready/recipes-test/arm-systemready-acs/files/fvp-base/0001-check-sr-results-Change-the-expected-SR-result-confi.patch new file +227 -0
227 lines not on this page · raw message
meta-arm-bsp/dynamic-layers/meta-arm-systemready/recipes-test/arm-systemready-acs/files/fvp-base/report.txt new file +34 -0
@@ -0,0 +1,34 @@ +General information +------------------- +- Arm SystemReady Band: IR +- System name: FVP Base A AEM +- Prepared by: +- E-mail: +- Date: + +System information +------------------ +- Company: Arm +- System: FVP Base A AEM +- SoC: +- FW version: +- Memory: +- Storage devices / disks: +- Network controllers: +- Other Hardware information: + +Test Logs and Results +--------------------- +- ACS version used: 2.0 +- ACS URL (if pre-built binary): https://github.com/ARM-software/arm-systemready/blob/v23.03_IR_2.0.0/IR/prebuilt_images/v23.03_2.0.0/ir-acs-live-image-generic-arm64.wic.xz +- Changes to ACS (if built from source): + +- Test Logs collected +[X] ACS - SCT +[X] ACS - BSA - UEFI +[X] ACS - BSA - Linux +[X] ACS - FWTS +[X] ACS - Linux boot log +[X] ACS - Linux dumps +[X] ACS - UEFI Shell dumps +[ ] ACS - Capsule Update
meta-arm-systemready/README.md new file +126 -0
126 lines not on this page · raw message
--
2.25.1
PATCH 4/5 kas: Add kas configuration for Arm SystemReady and fvp-base
In reply to Debbie MartinAdd systemready firmware, systemready ACS, systemready distros, and fvp-base kas configurations. Update the README file with instructions on how to build and run using them.
--- kas/arm-systemready-firmware.yml | 12 ++++++ kas/arm-systemready-ir-acs.yml | 17 ++++++++ kas/arm-systemready-linux-distros-debian.yml | 7 +++ ...arm-systemready-linux-distros-opensuse.yml | 7 +++ kas/fvp-base.yml | 43 +++++++++++++++++++ meta-arm-systemready/README.md | 22 ++++++++++ 6 files changed, 108 insertions(+) create mode 100644 kas/arm-systemready-firmware.yml create mode 100644 kas/arm-systemready-ir-acs.yml create mode 100644 kas/arm-systemready-linux-distros-debian.yml create mode 100644 kas/arm-systemready-linux-distros-opensuse.yml create mode 100644 kas/fvp-base.yml
kas/arm-systemready-firmware.yml new file +12 -0
@@ -0,0 +1,12 @@ +header: + version: 13 + +repos: + meta-arm: + layers: + meta-arm-systemready: + +distro: nodistro + +target: + - arm-systemready-firmware
kas/arm-systemready-ir-acs.yml new file +17 -0
@@ -0,0 +1,17 @@ +header: + version: 13 + includes: + - kas/arm-systemready-firmware.yml + +env: + TESTIMAGE_AUTO: "1" + # The full testimage run typically takes around 12-24h on fvp-base. + TEST_OVERALL_TIMEOUT: "${@ 24*60*60}" + +local_conf_header: + systemready-ir-acs: | + IMAGE_CLASSES:append = " testimage" + + +target: + - arm-systemready-ir-acs
kas/arm-systemready-linux-distros-debian.yml new file +7 -0
@@ -0,0 +1,7 @@ +header: + version: 13 + includes: + - kas/arm-systemready-firmware.yml + +target: + - arm-systemready-linux-distros-debian
kas/arm-systemready-linux-distros-opensuse.yml new file +7 -0
@@ -0,0 +1,7 @@ +header: + version: 13 + includes: + - kas/arm-systemready-firmware.yml + +target: + - arm-systemready-linux-distros-opensuse
kas/fvp-base.yml new file +43 -0
43 lines not on this page · raw message
meta-arm-systemready/README.md +22 -0
@@ -78,6 +78,28 @@ Currently, this layer only supports [Arm SystemReady IR ACS version v23.03_2.0.0][], which is verified on the [`fvp-base`][] machine. +## Build and Run + +To build the firmware for Arm SystemReady on the supported machines (take the +`fvp-base` machine as an example): + + kas build kas/fvp-base.yml:kas/arm-systemready-firmware.yml + + +To run the Arm SystemReady ACS tests on the supported machines (take running +Arm SystemReady IR on the `fvp-base` machine as an example): + + kas build kas/fvp-base.yml:kas/arm-systemready-ir-acs.yml + +To run the Linux distributions installation on the supported machines (take +installing openSUSE on the `fvp-base` machine as an example): + + kas build kas/fvp-base.yml:kas/arm-systemready-linux-distros-opensuse.yml + + kas shell \ + kas/fvp-base.yml:kas/arm-systemready-linux-distros-opensuse.yml \ + -c "../scripts/runfvp --verbose --console" + ## Guidelines for Reusing and Extending Currently, this layer only supports the Arm SystemReady IR band running on the
Signature · 1 line
2.25.1
PATCH 5/5 ci: Add fvpboot to IMAGE_CLASSES
In reply to Debbie MartinUse IMAGE_CLASSES rather than a direct INHERIT for fvpboot. This is Yocto best practice as it is used to enable functionality across all image recipes.
--- ci/fvp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ci/fvp.yml +1 -1
@@ -4,7 +4,7 @@ header: local_conf_header: testimagefvp: | LICENSE_FLAGS_ACCEPTED += "Arm-FVP-EULA" - INHERIT += "fvpboot" + IMAGE_CLASSES += "fvpboot" failing_tests: | # This fails but we can't add to the ignorelist from meta-arm yet # https://bugzilla.yoctoproject.org/show_bug.cgi?id=14604
Signature · 1 line
2.25.1
Jon Mason
AppliedQuoted 6 lines · Debbie Martin
For fvp-base, update the
DEFAULT_TEST_SUITESto includefvp_bootandfvp_devices. This is only the default behaviour; individual recipes can override this using theTEST_SUITESvariable.
Applied, thanks!
[1/5] arm/fvp-base: Update the default testsuites
commit: f78716db9860f32f27e376917e032412725918eb
[2/5] arm-systemready: Introduce the Arm SystemReady layer
commit: aebe535aa8c3505b45cfa92bb29edfbc15723e8b
[3/5] arm-bsp/systemready: Bring up the Arm SystemReady IR ACS 2.0 suite on FVP base
commit: f6dc41140c5072e39ce718121071083f2e4ff777
[4/5] kas: Add kas configuration for Arm SystemReady and fvp-base
commit: 16d03e507f93e4259593ddb7c812f9ae14249312
[5/5] ci: Add fvpboot to IMAGE_CLASSES
commit: 00e5691e2fe0a96b44e2f38c48240c998a1a0f1fBest regards,
Signature · 1 line
Jon Mason <[email protected]>