SystemReady SR is a band of system certification in the Arm SystemReady program that ensures interoperability of Arm based servers with standard operating systems and hypervisors.
SystemReady SR-certified platforms implement a minimum set of hardware and firmware features that an operating system can depend on to deploy the operating system image. Compliant systems must conform to the:
- Server Base System Architecture (SBSA) specification
- SBBR recipe of the Base Boot Requirements (BBR) specification
- The SystemReady SR certification and testing requirements are specified in the Arm SystemReady Requirements Specification (SRS)
This section contains the build scripts and the live-images for the SystemReady SR band.
The collection of code and scripts under arm-systemready/SR is an enhanced replacement of the Arm Enterprise ACS repository
- Code quality: v2.1.0
- The latest pre-built release of ACS is available for download here: v24.03_2.1.0
- The SBSA tests are written for version 7.1 of the SBSA specification.
- The BBR tests are written for the SBBR section in version 1.0 of the BBR specification.
- The compliance suite is not a substitute for design verification.
- To review the ACS logs, Arm licensees can contact Arm directly through their partner managers.
- To build a release version of the code, checkout the main branch with the appropriate release tag.
- To build the latest version of the code with bug fixes and new features, use the main branch.
- Prebuilt images for each release are available in the prebuilt_images folder. You can either choose to use these images or build your own image by following the build steps.
- To access the prebuilt_images, click prebuilt_images
- The prebuilt images are archived after compression to the .xz format. On Linux, use the xz utility to uncompress the image
xz -d sr_acs_live_image.img.xz
. On Windows, use the 7zip or a similar utility. - If you choose to use the prebuilt image, skip the build steps and navigate to the Verification section below.
Before starting the ACS build, ensure that the following requirements are met:
- Ubuntu 18.04 or later LTS with at least 32GB of free disk space.
- Use bash shell.
- You must have sudo privilege to install tools required for build.
- Install
git
usingsudo apt install git
git config --global user.name "Your Name"
andgit config --global user.email "Your Email"
must be configured.
-
Clone the arm-systemready repository
git clone https://github.com/ARM-software/arm-systemready.git
-
Navigate to the SR/scripts directory
cd arm-systemready/SR/scripts
-
Run get_source.sh to download all related sources and tools for the build. Provide the sudo permission when prompted
./build-scripts/get_source.sh
-
To start the build of the SR ACS live image, execute the below step
./build-scripts/build-sr-live-image.sh
-
If all the above steps are successful, then the bootable image will be available at /path-to-arm-systemready/SR/scripts/output/sr_acs_live_image.img.xz
Note: The image is generated in a compressed (.xz) format. The image must be uncompressed before it is used.
This image comprise of single FAT file system partition recognized by UEFI:
- 'BOOT_ACS'
Approximate size: 640 MB
contains bootable applications and test suites.
contains a 'acs_results' directory which stores logs of the automated execution of ACS.
Note: UEFI EDK2 setting for "Console Preference": The default is "Graphical". When that is selected, Linux output will goes to the graphical console (HDMI monitor). To force serial console output, you may change the "Console Preference" to "Serial".
sudo permission is required for building RD-N2 software stack.
Follow the steps mentioned in RD-N2 platform software user guide to obtain RD-N2 FVP.
For software stack build instructions, follow BusyBox Boot link under Supported Features by RD-N2 platform software stack section in the same guide.
Note: After the download of software stack code, please do the below changes before starting the build steps.
RD-N2 should be built with the GIC changes as mentioned below as applicable.
- If the system supports LPIs (Interrupt ID > 8192) then firmware should support installation of handler for LPI interrupts.
- If you are using edk2, change the ArmGic driver in the ArmPkg to support installation of handler for LPIs.
- Add the following in <path to RDN2 software stack>/uefi/edk2/ArmPkg/Drivers/ArmGic/GicV3/ArmGicV3Dxe.c
- After [#define ARM_GIC_DEFAULT_PRIORITY 0x80] +#define ARM_GIC_MAX_NUM_INTERRUPT 16384 - Change this in GicV3DxeInitialize function. -mGicNumInterrupts = ArmGicGetMaxNumInterrupts (mGicDistributorBase); +mGicNumInterrupts = ARM_GIC_MAX_NUM_INTERRUPT;
- Set the environment variable 'MODEL'
export MODEL=<absolute path to the RD-N2 FVP binary/FVP_RD_N2>
- Launch the RD-N2 FVP with the pre-built image with the following command
cd /path to RD-N2_FVP platform software/model-scripts/rdinfra/platforms/rdn2
./run_model.sh -v /path-to-sr-acs-live-image/sr_acs_live_image.img
This starts the ACS live image automation and run the test suites in sequence.
Known limitations:
On FVP models, with versions previous to 11.15.23, during the execution of the UEFI-SCT suite, the following behavior is observed:
- Execution of the 'UEFIRuntimeServices' tests may cause the test execution on FVP to stall and become non-responsive. The message displayed prior to this stall would be either “System may reset after 1 second…” or a print associated with 'SetTime' tests.
The FVP execution must be terminated and restarted by running the run_model.sh script to continue with the execution of the tests. The execution continues from the test that is next in sequence of the test prior to FVP stall.
- It may appear that the test execution has stalled with the message “Waiting for few seconds for signal …” displayed on the console. This is expected behavior and the progress of tests will continue after a 20-minute delay.
Note: When verifiying ACS on hardware, ensure that ACS image is not in two different boot medias (USB, NVMe drives etc) attached to the device.
The test suite execution can be automated or manual. Automated execution is the default execution method when no key is pressed during boot.
The live image boots to UEFI Shell. The different test applications can run in the following order:
- SCT tests for BBR compliance.
- UEFI Shell application for SBSA compliance. (https://github.com/ARM-software/bsa-acs/blob/main/README.md) for BSA compliance.
- FWTS tests for BBR compliance.
- OS tests for Linux SBSA compliance.
Note: To skip FWTS and OS tests for debugging, append "noacs" to the Linux command by editing the "Linux Boot" option in the grub menu during image boot.
To start an extended run of UEFI-SCT append "-nostartup startup.nsh sct_extd" to the shell.efi command by editing the "bbr/bsa" option in the grub menu during image boot.
Now SIE ACS is integrated with SR ACS image, which can be accessed through GRUB options.
For the verification steps of SIE ACS, refer to the SIE ACS Verification.
-
Firmware Test Suite (FWTS) TAG: v23.07.00
-
Base System Architecture (SBSA) TAG: v23.09_REL7.1.3
-
Base System Architecture (BSA) TAG: v23.09_REL1.0.6
-
Base Boot Requirements (BBR) TAG: v23.09_SR_REL2.0.0_ES_REL1.3.0_IR_REL2.1.0
-
UEFI Self Certification Tests (UEFI-SCT) TAG: 032822757792c5d4d0bfed1fd8524e69ef4f2d17
Arm SystemReady SR ACS test suite may run at higher privilege level. An attacker may utilize these tests as a means to elevate privilege which can potentially reveal the platform security assets. To prevent the leakage of Secure information, it is strongly recommended that the ACS test suite is run only on development platforms. If it is run on production systems, the system should be scrubbed after running the test suite.
SystemReady ACS is distributed under Apache v2.0 License.
- For feedback, use the GitHub Issue Tracker that is associated with this repository.
- For support, send an email to [email protected] with details.
- Arm licensees can contact Arm directly through their partner managers.
- Arm welcomes code contributions through GitHub pull requests.
Copyright (c) 2022-2024, Arm Limited and Contributors. All rights reserved.