# bbr-acs **Repository Path**: arm-system-ready/bbr-acs ## Basic Information - **Project Name**: bbr-acs - **Description**: 按照Base Boot Requirements (BBR) 检测系统固件兼容性,可以在此处直接下载: Latest Release:https://github.com/ARM-software/bbr-acs/releases/ - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-09 - **Last Updated**: 2024-07-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Base Boot Requirements - Architecture Compliance Suite BBR specification complements the BSA specification by defining the base firmware requirements required for out-of-box support of any BSA compatible operating system or hypervisor. These requirements are comprehensive enough to enable booting multi-core Arm platforms while remaining minimal enough to allow for OEM and ODM innovation, and market differentiation. For more information, see the [BBR specification](https://developer.arm.com/documentation/den0044/g/?lang=en). The BBR test suites check for compliance against the SBBR and EBBR specifications. These tests are also delivered through two runtime executable environments: - UEFI Self Certification Tests (SCT) - Firmware Test Suite (FWTS) ## Release details - Code Quality: v1.0.5 - The SBBR tests are written for version 1.0 of the BBR specification. - The EBBR tests are written for version 2.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. ## UEFI Self Certification Tests UEFI SCT tests the UEFI implementation requirements defined by SBBR/EBBR. **Prerequisite**: Ensure that the system time is correct before starting SCT tests. ### Running SCT BBR SCT tests are built as part of the test suite.
Running BBR SCT tests is now automated. You can choose to skip the automated SCT tests by pressing any key when the UEFI shell prompts. - Shell>Press any key to stop the EFI SCT running To run SCT manually, follow these steps: 1. `Shell>FS(X):` - `FS(X):>cd EFI\BOOT\bbr\SCT` - To run EBBR or SBBR tests `FS(X):EFI\BOOT\bbr\SCT>SCT -s ` - To run all tests `FS(X):EFI\BOOT\bbr\SCT>SCT -a -v` You can also select and run tests individually. For more information on running the tests, see the [SCT User Guide](http://www.uefi.org/testtools). #### Note: > For BBR ACS UEFI-SCT testlists for SBBR, EBBR and BBSR recipes, see the [Documentaion directory](./docs/). ### Manual intervention tests Some SCT tests for the ACS require manual intervention or interaction. To run the tests, follow these steps. 1. Move or copy the SCT logs into the result partition so they do not get overwritten. - `Shell>FS(Y):` - `FS(Y):> cd \acs_results\` - `FS(Y):\acs_results\> mv sct_results sct_results_orginal` 2. Run manual tests. - `FS(X):EFI\BOOT\bbr\SCT>SCT -s ` 3. While the system runs the reset tests, you may have to manually reset the system if it hangs. **Note:** The logs for the manual tests will overwrite the logs for the original test run which is the reason to have a copy of the original test. This new folder contains the logs from the new tests run in the manual sequence file. You may to concatenate some of the logs to view together. ## SBBR based on Firmware Test Suite FWTS is a package hosted by Canonical. FWTS provides tests for ACPI, SMBIOS and UEFI. Several SBBR assertions are tested through FWTS. ### Running FWTS tests From the UEFI shell, you can choose to boot Linux OS by entering the command: `Shell>exit` This command loads the grub menu. Press enter to choose the option 'Linux BusyBox' that boots the OS and runs FWTS tests and OS context BSA tests automatically.
Logs are stored in the results partition, which can be viewed on any machine after the tests are run. ## Building BBR BBR is automatically built and packaged into ACS, but it can also be built independently. #### 1. Get BBR repository `git clone https://github.com/ARM-software/bbr-acs.git` #### 2. Getting the required Source codes and Tools Navigate to the `bbr-acs//scripts` directory Get source by running the `./build-scripts/get__source.sh` This will download `edk2-test, edk2, fwts and tools` #### 3. Building SBBR & EBBR Run `./build-scripts/build_.sh` to build BBR components, SCT and FWTS. The script applies patches to create an "EBBR or SBBR" build recipe in the SCT and FWTS build system. The binaries of SCT are generated here `bbr-acs//scripts/edk2-test/uefi-sct/_SCT #(i.e. AARCH64_SCT)` The binaries of FWTS are generated here `bbr-acs//scripts/fwts/fwts_output` NOTE: The UEFI application, CapsuleApp.efi is also built and can be found at the location bbr-acs//scripts/edk2/Build/MdeModule/DEBUG_GCC5/AARCH64
NOTE: SBBR and EBBR build scripts also supports bulding fwts and sct individually. To build only SCT, pass the sct option to build script - `./build-scripts/build_.sh` sct To build only FWTS, pass the fwts option to build script - `./build-scripts/build_.sh` fwts ## License Arm BBR ACS is distributed under Apache v2.0 License. ## Feedback, contributions and support - For feedback, use the GitHub Issue Tracker that is associated with this repository. - For support, send an email to "support-systemready-acs@arm.com" with details. - Arm licensees may contact Arm directly through their partner managers. - Arm welcomes code contributions through GitHub pull requests. See the GitHub documentation on how to raise pull requests. -------------- *Copyright (c) 2021-2023, Arm Limited and Contributors. All rights reserved.*