Skip to content

Commit 5c5b37f

Browse files
chetan-rathoreAshishsharma1903Ashish Sharmaamratheshsathishas89
authored
SR ACS v3.0.1 changes (#385)
* log parser: comment prints not needed + file name small caps (#260) Co-authored-by: cherat01 <chetan.singh2@arm.com> * Update init.sh : add ttySC0 for renesas platform (#261) * Improvements in log parser (#262) * Update init.sh : add ttySC0 for renesas platform * log parser changes --------- Co-authored-by: cherat01 <chetan.singh2@arm.com> * log parser improvements for manual to os tests and mvp to standalone (#263) * log parser improvements for manual to os tests and mvp to standalone * log parser improvements --------- Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * 3.0 development (#264) * minor syntax changes * Change MVP to Standalone --------- Co-authored-by: cherat01 <chetan.singh2@arm.com> * capsule update into standalone (#267) Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * acs_info.json , acs summary into merge jsons, compliant capability into merge json (#268) * acs_info.json , acs summary into merge jsons, compliant capability into merge json * acs_info.txt removal --------- Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * Automatically SecureBoot to Linux, post completion of BBSR SCT (#269) - added changes to enable automatic secureboot to linux, after completion BBSR SCT. Post boot FWTS and TPM checks were run. - Removed BBSR Linux Boot grub option. Signed-off-by: Amrathesh <amrathesh@arm.com> * boot_sources script improvements (#270) Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * Yocto DT build changes for glibc issue and reduce time taken by DT build (#271) * Build recipe which takes long time firt * Update woden.yml : Limit glibc locale packages * Update woden.yml * correct syntax of calling multiple yocto commands * Update build-systemready-dt-band-live-image.sh * Update build-systemready-dt-band-live-image.sh --------- Co-authored-by: cherat01 <chetan.singh2@arm.com> * 3.0_development (#272) * - Capsule update test issue. - Failed to test yocto_image.flag and capsule_update_check.flag - Fixed and optimized the capsule update test. Change-Id: I46c0cbfa54253c90487c5cab8522eddf1c48d430 * - Modified mount command with extra attributes - for proper mounting Change-Id: I2dffcf64d94edc501ddc8d5017d313501179acec --------- Co-authored-by: Sathisha S <sathisha.shivaramappa@arm.com> * Changes to upgrade the components for DT and SR band (#273) * Upgrade edk2 to edk2-stable202111 and sct to feb commit * Update ebbr-sct.bb: correct version fields. * correct commit id of edk2-stable202411 * use latest edk2-libc commit * Use 3.0_dev branch of bbr-acs * Linux version updated to v6.12, fwts version updated to 25.01.00 Signed-off-by: Guru9902 <gururaj.revankar@arm.com> * Comment added --------- Signed-off-by: Guru9902 <gururaj.revankar@arm.com> Co-authored-by: cherat01 <chetan.singh2@arm.com> Co-authored-by: chetan singh rathore <chetanrgithub@gmail.com> * Add error handling if git clone fails (#274) Co-authored-by: cherat01 <chetan.singh2@arm.com> * single reason formatting and some major changes in html and json (#275) Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * Adding wget & curl testing to ethtool-test script (#278) * Update ethtool-test.py * Update ethtool-test.sh * 3.0 development: Use buildroot mirror and changes in ebbr-sct for building latest edk2 (#279) * Use buildroot mirror * Update ebbr-sct.bb: export cc flags for latest edk2 build in ebbr-sct * Update ebbr-sct.bb: use latest edk2 in ebbr-sct * Corrected yocto path (#280) * Correct yocto image flag path * correct debug_dump stall print --------- Co-authored-by: cherat01 <chetan.singh2@arm.com> * Config tool updater and tools Readme (#283) Signed-off-by: Manjunatha D <manjunatha.d@arm.com> Co-authored-by: Manjunatha D <manjunatha.d@arm.com> * Added ScrtStartup.nsh for manual execution for DT image (#285) * - Capsule update test issue. - Failed to test yocto_image.flag and capsule_update_check.flag - Fixed and optimized the capsule update test. Change-Id: I46c0cbfa54253c90487c5cab8522eddf1c48d430 * - Modified mount command with extra attributes - for proper mounting Change-Id: I2dffcf64d94edc501ddc8d5017d313501179acec * - Added ScrtStartup.nsh for manual execution - Added ScrtStartup.nsh support for SystemReady-devicetree-band Change-Id: Ia8ff3404c1b2f1237d989564d5e59a6fe0c71923 --------- Co-authored-by: Sathisha S <sathisha.shivaramappa@arm.com> * Implementation and testing of seperate capsule_update.nsh for DT image (#286) * - Capsule update test issue. - Failed to test yocto_image.flag and capsule_update_check.flag - Fixed and optimized the capsule update test. Change-Id: I46c0cbfa54253c90487c5cab8522eddf1c48d430 * - Modified mount command with extra attributes - for proper mounting Change-Id: I2dffcf64d94edc501ddc8d5017d313501179acec * - Added ScrtStartup.nsh for manual execution - Added ScrtStartup.nsh support for SystemReady-devicetree-band Change-Id: Ia8ff3404c1b2f1237d989564d5e59a6fe0c71923 * - Implementation and testing of seperate capsule_update.nsh - Implemented seperate capsule_update.nsh - Tested the same changes on Buildroot and Corstone1000 platforms Change-Id: I1addd3e0e4aa985e3ba631f0d815c0266cb5ea7a --------- Co-authored-by: Sathisha S <sathisha.shivaramappa@arm.com> * Fixed ACPI command issue for DT image while running debug_dump.nsh (#287) * - Capsule update test issue. - Failed to test yocto_image.flag and capsule_update_check.flag - Fixed and optimized the capsule update test. Change-Id: I46c0cbfa54253c90487c5cab8522eddf1c48d430 * - Modified mount command with extra attributes - for proper mounting Change-Id: I2dffcf64d94edc501ddc8d5017d313501179acec * - Added ScrtStartup.nsh for manual execution - Added ScrtStartup.nsh support for SystemReady-devicetree-band Change-Id: Ia8ff3404c1b2f1237d989564d5e59a6fe0c71923 * - Implementation and testing of seperate capsule_update.nsh - Implemented seperate capsule_update.nsh - Tested the same changes on Buildroot and Corstone1000 platforms Change-Id: I1addd3e0e4aa985e3ba631f0d815c0266cb5ea7a * - Fixed acpi command issue for DT image - For DT image, acpi command should not run while executing the debug_dump.nsh and fixed the same issue. --------- Co-authored-by: Sathisha S <sathisha.shivaramappa@arm.com> * Remove ESP part type for BOOT_ACS partiton (#288) - Ensure ACS image excludes ESP to validate system configuration issues. Signed-off-by: Amrathesh <amrathesh@arm.com> * sct and edks2 parser changes (#289) Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * psci checker added in merged json and html under standalone tests (#290) Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * Correct yocto_image.flag in main log parser script (#291) * ethtool wget and curl tests added in json and htmls (#292) Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * boot sources script changes for enhancements (#293) Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * dump improvements : print mandatory test logs as error and recommended as warning (#294) * If mandatory test log is missing print error * comment duplicate psci logs to json call --------- Co-authored-by: cherat01 <chetan.singh2@arm.com> * major changes for mandatory or recommended suites , waiver changes (#295) Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * Addition of acs test tools guide (#296) * Create acs_test_tools_guide.md Initial check-in of ACS test tools guide, which details for each Band the test tools which are run, their runtime environment and path of results * Minor updates * Improvements for complaince calculation (#298) Co-authored-by: cherat01 <chetan.singh2@arm.com> * changes in compliance result (#299) Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * Read write processing logs_to_json.py changes in standalone test for read write check (#300) Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * case added where json is formed but hasnt run any test, it'll be considered failure for compliance and no user prompt in read write logs is now skipped not failed (#301) Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * dtschema updated 2025.2 , linux kernel source version updated to 6.10 in process_scehma (#302) Signed-off-by: Guru9902 <gururaj.revankar@arm.com> * linux command line options for early linux boot prints (#303) * Update startup.nsh : add earlycon and serial console linux command line options * Update woden-image.bb : add command line options for early linux boot prints * Changes related to linux cmd line parametr, DT results template, minor capsule update (#304) * changes to linux command line parameter * dt results template changes * temp using bbr fork branch * use dt startup.nsh * create acs_results_template * Revert the bbr-acs source to main repo * Revert the bbr-acs source to main repo for DT * change capsuleupdate result log path to fw folder --------- Co-authored-by: cherat01 <chetan.singh2@arm.com> * Increase DT boot partition size to 350M (#305) * Post script logs are now parsed into json and html and in merged json. (#307) * POST PROCESSING logs are now parsed injto json and html and in merged json * improvements logs_to_json.py n/a for reason and no info cases printed --------- Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * boot partition must be aligned to 1024 (#308) * Image partition needs to be aligned to 1024 ..increase to 360 MB * Correct the name of image in rm command * handle case where boot partition is not mapped to fs0 (#309) Co-authored-by: cherat01 <chetan.singh2@arm.com> * Handling corner cases (#310) * fixes in capsule-on-disk logs, acs_config for dt * Handle the case where other boot medium also have Image file --------- Co-authored-by: cherat01 <chetan.singh2@arm.com> * Minor changes for os test processing (#311) Co-authored-by: cherat01 <chetan.singh2@arm.com> * correct post script path relative to LOGS_PATH (#312) * SR band, consider sbsa mandatory based on run config (#313) Co-authored-by: cherat01 <chetan.singh2@arm.com> * Added BBSR Disable Secure Boot instructions (#315) - added instruction required to disable Secure Boot on systems utilizing either U-Boot or UEFI firmware by leveraging the SystemReady ACS test keys. * print if suite is recommened or mandatory as per srs (#316) Co-authored-by: cherat01 <chetan.singh2@arm.com> * Move the guide folder at tip of repository (#317) Co-authored-by: cherat01 <chetan.singh2@arm.com> * Use the BSA and SBSA 25.03 rel tag (#318) Co-authored-by: cherat01 <chetan.singh2@arm.com> * Changes to make SR startup more readable * Minor echo related changes in uefi scripts (#320) * Update startup.nsh: Minor echo prints * Update debug_dump.nsh: Comment duplicate echo * Syntax related changes: fix tabs and whitespaces, add uefi debug prints (#321) * Added debug prints to follow complaince run * replace tabs with spaces, add debug echo in uefi scripts --------- Co-authored-by: cherat01 <chetan.singh2@arm.com> * test category changes(now merge json has waivable,srs scope, and main readiness grouping fields captured from test category.json), apply waiver changed for changes (#322) Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * feedback changes for corner cases FWTS (#323) Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * SR execution enviroment changes (#324) Co-authored-by: cherat01 <chetan.singh2@arm.com> * Added scrt option and config file check to Parser.efi (#325) * Execution environment changes (#328) Signed-off-by: Guru9902 <gururaj.revankar@arm.com> * Update startup.nsh (#329) * Parser.efi modified, Variable checks added (#335) * Parser app changes added Signed-off-by: Guru9902 <gururaj.revankar@arm.com> * Variable checks added Signed-off-by: Guru9902 <gururaj.revankar@arm.com> --------- Signed-off-by: Guru9902 <gururaj.revankar@arm.com> * Pull in latest changes of 3.0 development branch to SR Execution Enviroment branch (#336) * fix for soc family extraction and sleep timer increase after log parser (#327) Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * bbsr tpm logs are now parsed into json and htmls, and some minor improv (#333) Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * Upgrade ACS version for 3.0.1 release (#334) Co-authored-by: cherat01 <chetan.singh2@arm.com> --------- Co-authored-by: Ashish sharma <55487856+Ashishsharma1903@users.noreply.github.com> Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> Co-authored-by: cherat01 <chetan.singh2@arm.com> * Variable check syntax corrected (#337) Signed-off-by: Guru9902 <gururaj.revankar@arm.com> * Install gnu-efi dependencies in github runners (#340) Co-authored-by: cherat01 <chetan.singh2@arm.com> * Sync SR EE branch with 3.0_dev changes (#341) * fix for soc family extraction and sleep timer increase after log parser (#327) Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * bbsr tpm logs are now parsed into json and htmls, and some minor improv (#333) Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * Upgrade ACS version for 3.0.1 release (#334) Co-authored-by: cherat01 <chetan.singh2@arm.com> * Install gnu-efi dependencies in github runners (#339) Co-authored-by: cherat01 <chetan.singh2@arm.com> --------- Co-authored-by: Ashish sharma <55487856+Ashishsharma1903@users.noreply.github.com> Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> Co-authored-by: cherat01 <chetan.singh2@arm.com> * acs_run_config parameters resetted to default value for automation run and SCT rollbacked to stable version (#342) * Rollback SCT commit to stable 202406 * updates to acs_run_config with default values --------- Co-authored-by: cherat01 <chetan.singh2@arm.com> * Changes for bbsr in SR execution enviroment (#343) * Separate section for BBSR SCT and BBSR FWTS * Update bbsr_startup.nsh : changes for BBSR in execution enviroment * BBSR option added in parser.efi (#344) Signed-off-by: Guru9902 <gururaj.revankar@arm.com> * sign the parser.efi (#345) Co-authored-by: cherat01 <chetan.singh2@arm.com> * Changes for Linux execution enviroment (#346) * Linux EE changes for SR * Added changes for bsa and sbsa run based on config file --------- Co-authored-by: cherat01 <chetan.singh2@arm.com> * Mount the results parition for even noacs option (#347) Co-authored-by: cherat01 <chetan.singh2@arm.com> * Tabs and whitespaces corrected, debug message for Linux ee (#348) Co-authored-by: cherat01 <chetan.singh2@arm.com> * Parser.py script added to SR image,path update in Parser.py (#349) * Update Parser.py * Update make_image.sh * init.sh updated with variable checks (#350) Signed-off-by: Guru9902 <gururaj.revankar@arm.com> * bsa,sbsa,fwts linux EE run scripts added (#351) Signed-off-by: Guru9902 <gururaj.revankar@arm.com> * Comments added to acs_run_config.ini (#353) Signed-off-by: Guru9902 <gururaj.revankar@arm.com> * Keep kernel version to 6.10 (#356) * Handling corner cases for SR execution enviroment (#357) * log parser enhacements for fwts * handling results folder creation when linux sbsa is run alone * Direct the output to FWTSResults.log when fwts is run as part of execution enviroment --------- Co-authored-by: cherat01 <chetan.singh2@arm.com> * bbsr fwts,tpm option added under config control (#358) Signed-off-by: Guru9902 <gururaj.revankar@arm.com> * parser app build script added (#360) Signed-off-by: Guru9902 <gururaj.revankar@arm.com> * Update acs_run_config.ini : SBSA must be false by default in automation run * Correct the BSA verbose parsing * Update acs_config.txt : Correct ACS version tag for SR band * Update sctversion.patch: Corrected SBBR tag for 3.0.1 release * Added sbbr fwts modules in config file * Added config file option for BBSR SCT * bbsr command parsing option added to parser.efi (#361) Signed-off-by: Guru9902 <gururaj.revankar@arm.com> * sctversion updates (#362) Co-authored-by: cherat01 <chetan.singh2@arm.com> * Update secure_init.sh: syntax error corrected * Update startup.nsh (#363) * Use latest xBSA code bases * Update secure_init.sh: Correcting syntax error * Increase sync time for acs results * Parser related changes for app and script (#364) * Colon added at end of FS%i * Update bsa.nsh : handle cases when bsa command not generated * Update Parser_app.c: generate bsa command if -bsa flag passed parser.efi should not check if automation_bsa is true or not for generating bsacommand. uefi script will check that logic. * generate sbsa, sct, bbsrsct command if required flag passed * Update sbsa.nsh : handle cases when bsa command not generated * Updates to bsa and sbsa parsing as per linux parameters supported * Minor changes while echoing of uefi var --------- Co-authored-by: cherat01 <chetan.singh2@arm.com> * Not run SBSA linux by default if not enabled in config file (#365) * init.sh syntax error corrected and skip 900 module for bsa/sbsa in acs_run_config (#367) * Update init.sh : correct if else loop syntax * Update init.sh * skip BSA/SBSA exerciser module 900 in config file Signed-off-by: Guru9902 <gururaj.revankar@arm.com> --------- Signed-off-by: Guru9902 <gururaj.revankar@arm.com> Co-authored-by: Guru9902 <gururaj.revankar@arm.com> * Minor changes related to syntaz and version (#368) Co-authored-by: cherat01 <chetan.singh2@arm.com> * Skip parsing acs_run_config for DT image (#370) * Update bsa.nsh Update bsa.nsh : Handle case for skipping parser.efi for DT band * Change to yocto_image flag from bsa_dt flag * Update secure_init.sh : Not run parser script for DT * whitespace remove (#373) Co-authored-by: cherat01 <chetan.singh2@arm.com> * Parser app code updated to handle memory leaks (#375) Signed-off-by: Guru9902 <gururaj.revankar@arm.com> * BBSR extension compliance results changes (#377) Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> * Addign Weasyprint(PDF conversion package) to IR (#378) Signed-off-by: Manjunatha D <manjunatha.d@arm.com> Co-authored-by: Manjunatha D <manjunatha.d@arm.com> * Addign Weasyprint(PDF conversion package) to IR (#379) Signed-off-by: Manjunatha D <manjunatha.d@arm.com> Co-authored-by: Manjunatha D <manjunatha.d@arm.com> * clone the 3.0.1 branch in systemready-scripts for ACS 3.0.1 (#380) * Add dependency packages for html to pdf conversion, minor prints changes (#381) * Update woden-image.bb : Adding dependency packages for html to pdf conversion tool * Update main_log_parser.sh : Convert ACS summary to pdf for DT band only * Update secure_init.sh : comment the duplicate run completed prints * Update init.sh : minor print change * Use post script 3.0.1 branch for 3.0.1 release (#382) * Update systemready-scripts.bb : Use 3.0.1 branch for 3.0.1 release * Update main_log_parser.sh: minor correction * Corrected ebbr acs and spec versions in acs summary (#383) * Updated ebbr version for SR 3.0.1 release * Corrected EBBR specification version --------- Co-authored-by: cherat01 <chetan.singh2@arm.com> --------- Signed-off-by: Amrathesh <amrathesh@arm.com> Signed-off-by: Guru9902 <gururaj.revankar@arm.com> Signed-off-by: Manjunatha D <manjunatha.d@arm.com> Co-authored-by: cherat01 <chetan.singh2@arm.com> Co-authored-by: Ashish sharma <55487856+Ashishsharma1903@users.noreply.github.com> Co-authored-by: Ashish Sharma <ashsha06@a081966.arm.com> Co-authored-by: Amrathesh . <48640575+amrathesh@users.noreply.github.com> Co-authored-by: sathishas89 <49908026+sathishas89@users.noreply.github.com> Co-authored-by: Sathisha S <sathisha.shivaramappa@arm.com> Co-authored-by: Gururaj <108717118+Guru9902@users.noreply.github.com> Co-authored-by: manjunath3divakar <134777680+manjunath3divakar@users.noreply.github.com> Co-authored-by: Manjunatha D <manjunatha.d@arm.com> Co-authored-by: Guru9902 <gururaj.revankar@arm.com>
1 parent 4b18848 commit 5c5b37f

101 files changed

Lines changed: 10175 additions & 3972 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

SystemReady-band/README.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- [Steps to Manually Build Image](#steps-to-manually-build-image)
99
- [Image Directory Structure](#image-directory-structure)
1010
- [Details and Functionalities of the Image](#details-and-functionalities-of-the-image)
11-
- [Grub Menu & Complaince Run](#grub-menu--complaince-run)
11+
- [Grub Menu & Compliance Run](#grub-menu--compliance-run)
1212
- [ACS configs file](#acs-configs-file)
1313
- [Log Parser scripts](#log-parser-scripts)
1414
- [Standard Formatted Result](#standard-formatted-result)
@@ -143,8 +143,8 @@ This image comprise of single FAT file system partition recognized by UEFI: <br
143143
- app directory contains CapsuleApp.efi
144144
- bbr directory contains SCT related bianries and sequence files
145145
- bbsr-keys contains cryptographic keys for secure boot and testing secure firmware updates
146-
- bsa directory contains bsa uefi executable for bsa complaince
147-
- bsa/sbsa directory contains sbsa uefi executable for bsa complaince
146+
- bsa directory contains bsa uefi executable for bsa compliance
147+
- bsa/sbsa directory contains sbsa uefi executable for bsa compliance
148148
- config directory contains system, acs related config files
149149
- debug directory contains script to gather debug information
150150
- parser directory contains uefi parser executable to parse acs_config file
@@ -164,22 +164,20 @@ This image comprise of single FAT file system partition recognized by UEFI: <br
164164

165165
## Details and Functionalities of the Image
166166

167-
### Grub Menu & Complaince Run
167+
### Grub Menu & Compliance Run
168168
```
169169
│ Linux Boot │
170170
│*SystemReady band ACS (Automation) │
171-
│ SCT for BBSR (optional) │
172-
│ Linux Boot for BBSR (optional) │
171+
│ BBSR Compliance (Automation) │
173172
│ Linux Boot with SetVirtualAddressMap enabled |
174173
```
175174
- **Linux Boot** : This option will boot the ACS Linux kernel and run the default Linux tool (linux debug dump, fwts, linux bsa, linux sbsa (if selected))
176175
- noacs command line parameter: Edit the Linux Boot grub menu option and add **noacs** at the end of Linux Boot grub menu option, to boot into ACS Linux kernel without running the default Linux test suites.
177176
- initcall_blacklist=psci_checker command line parameter: Edit the Linux Boot grub menu option and add **initcall_blacklist=psci_checker** to skip default linux psci_checker tool.
178-
- **SystemReady band ACS (Automation)** : This is **default** option and will run the automated complaince
179-
- UEFI complaince run - SCT, BSA UEFI, SBSA UEFI (if selected)
180-
- Boots to Linux and run Linux complaince run - FWTS, BSA Linux, SBSA Linux (if selected)
181-
- **SCT for BBSR (optional)** : This option will run the SCT tests required for BBSR complaince. For the verification steps of BBSR ACS, refer to the [BBSR ACS Verification](../common/docs/BBSR_ACS_Verification.md).
182-
- **Linux Boot for BBSR (optional)** : This option will run the SCT tests required for BBSR complaince. For the verification steps of BBSR ACS, refer to the [BBSR ACS Verification](../common/docs/BBSR_ACS_Verification.md).
177+
- **SystemReady band ACS (Automation)** : This is **default** option and will run the automated compliance
178+
- UEFI compliance run - SCT, BSA UEFI, SBSA UEFI (if selected)
179+
- Boots to Linux and run Linux compliance run - FWTS, BSA Linux, SBSA Linux (if selected)
180+
- **BBSR Compliance (Automation)** : This option will run the SCT and FWTS tests required for BBSR compliance, perform a Linux secure boot, and, if a TPM is present, evaluate the measured boot log. For the verification steps of BBSR ACS, refer to the [BBSR ACS Verification](../common/docs/BBSR_ACS_Verification.md).
183181
- **Linux Boot with SetVirtualAddressMap enabled** : This option is for debug purpose, to boot ACS Linux with SetVAMap on.
184182

185183
### ACS configs file

SystemReady-band/build-scripts/build-all.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
# @file
4-
# Copyright (c) 2021-2024, Arm Limited or its affiliates. All rights reserved.
4+
# Copyright (c) 2021-2025, Arm Limited or its affiliates. All rights reserved.
55
# SPDX-License-Identifier : Apache-2.0
66

77
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -28,6 +28,7 @@ PACKAGE=$2
2828

2929
source ./build-scripts/build-efitools.sh
3030
source ./build-scripts/build-bbsr-keys.sh
31+
source ./build-scripts/build-parser-app.sh
3132
source ./build-scripts/build-uefi.sh $@
3233
source ./build-scripts/build-bsaefi.sh $@
3334
source ./build-scripts/build-sbsaefi.sh $@

SystemReady-band/build-scripts/build-buildroot.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ do_build ()
6969
chmod +x root_fs_overlay/usr/bin/secure_init.sh
7070
cp $TOP_DIR/ramdisk/device_driver.sh root_fs_overlay/usr/bin/
7171
chmod +x root_fs_overlay/usr/bin/device_driver.sh
72+
cp $TOP_DIR/ramdisk/bsa.sh root_fs_overlay/bin/
73+
chmod +x root_fs_overlay/bin/bsa.sh
74+
cp $TOP_DIR/ramdisk/sbsa.sh root_fs_overlay/bin/
75+
chmod +x root_fs_overlay/bin/sbsa.sh
76+
cp $TOP_DIR/ramdisk/fwts.sh root_fs_overlay/bin/
77+
chmod +x root_fs_overlay/bin/fwts.sh
7278
cp $TOP_DIR/bbr-acs/bbsr/config/bbsr_fwts_tests.ini root_fs_overlay/bin/
7379
cp $TOP_DIR/ramdisk/verify_tpm_measurements.py root_fs_overlay/bin/
7480

SystemReady-band/build-scripts/build-linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
# Copyright (c) 2021-2024, Arm Limited or its affiliates. All rights reserved.
3+
# Copyright (c) 2021-2025, Arm Limited or its affiliates. All rights reserved.
44
# SPDX-License-Identifier : Apache-2.0
55

66
# Licensed under the Apache License, Version 2.0 (the "License");
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
#!/bin/bash
2+
3+
# @file
4+
# Copyright (c) 2021-2025, Arm Limited or its affiliates. All rights reserved.
5+
# SPDX-License-Identifier : Apache-2.0
6+
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
19+
TOP_DIR=`pwd`
20+
. $TOP_DIR/../common/config/systemready-band-source.cfg
21+
22+
# === Configuration ===
23+
EDK2_TAG="$EDK2_SRC_VERSION"
24+
GCC_VERSION="13.2.rel1"
25+
APP_NAME="parser"
26+
GCC_PREFIX="aarch64-none-linux-gnu-"
27+
TOP_DIR=$(pwd)
28+
TOOLCHAIN_PATH="$TOP_DIR/tools/arm-gnu-toolchain-${GCC_VERSION}-x86_64-aarch64-none-linux-gnu/bin"
29+
GCC_BIN="$TOOLCHAIN_PATH/$GCC_PREFIX"
30+
EDK2_DIR="$TOP_DIR/edk2"
31+
LIBC_DIR="$EDK2_DIR/edk2-libc"
32+
APP_PATH="$EDK2_DIR/ShellPkg/Application/$APP_NAME"
33+
KEYS_DIR=$TOP_DIR/bbsr-keys
34+
CONFIG_PARSER_EFI=${TOP_DIR}/parser/Parser.efi
35+
36+
do_build()
37+
{
38+
39+
mkdir -p $TOP_DIR/$APP_NAME
40+
# === Prepare edk2 environment ===
41+
pushd "$EDK2_DIR"
42+
43+
echo "Cleaning previous builds..."
44+
git reset --hard
45+
#git reset --hard
46+
rm -rf Build/*
47+
48+
echo "Applying patches..."
49+
git apply "$TOP_DIR/../common/patches/0001-parser-app.patch"
50+
51+
echo "Setting up parser_app source..."
52+
rm -rf "$APP_PATH"
53+
cp -r "$TOP_DIR/../common/parser" "$APP_PATH"
54+
55+
echo "Setting environment variables..."
56+
export GCC49_AARCH64_PREFIX="$GCC_BIN"
57+
export PACKAGES_PATH="$EDK2_DIR:$LIBC_DIR"
58+
59+
echo "packages path : $PACKAGES_PATH"
60+
# === Build ===
61+
echo "Configuring EDK2 build environment..."
62+
source ./edksetup.sh --reconfig
63+
make -C BaseTools/Source/C
64+
65+
echo "Building Parser.efi..."
66+
build -a AARCH64 -t GCC49 -p ShellPkg/ShellPkg.dsc -m ShellPkg/Application/$APP_NAME/Parser.inf
67+
68+
cp "$EDK2_DIR/Build/Shell/DEBUG_GCC49/AARCH64/Parser.efi" "$TOP_DIR/$APP_NAME/Parser.efi"
69+
git reset --hard
70+
71+
popd
72+
echo "✅ Build complete: $TOP_DIR/$APP_NAME/Parser.efi"
73+
74+
}
75+
76+
do_package ()
77+
{
78+
echo "Packaging uefi... $VARIANT";
79+
80+
echo "Signing Parser Application... "
81+
pushd $TOP_DIR
82+
# sign Parser.efi with db key
83+
sbsign --key $KEYS_DIR/TestDB1.key --cert $KEYS_DIR/TestDB1.crt $CONFIG_PARSER_EFI --output $TOP_DIR/output/Parser.efi
84+
85+
popd
86+
87+
}
88+
89+
do_clean()
90+
{
91+
pushd $TOP_DIR/$UEFI_PATH
92+
CROSS_COMPILE_DIR=$(dirname $CROSS_COMPILE)
93+
PATH="$PATH:$CROSS_COMPILE_DIR"
94+
source ./edksetup.sh
95+
make -C BaseTools/Source/C clean
96+
rm -rf Build/Shell/DEBUG_GCC49
97+
popd
98+
}
99+
100+
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
101+
source $DIR/framework.sh $@

SystemReady-band/build-scripts/build-uefi.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
# @file
4-
# Copyright (c) 2021-2024, Arm Limited or its affiliates. All rights reserved.
4+
# Copyright (c) 2021-2025, Arm Limited or its affiliates. All rights reserved.
55
# SPDX-License-Identifier : Apache-2.0
66

77
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -100,6 +100,7 @@ do_package ()
100100
pushd $TOP_DIR
101101
# sign Shell.efi with db key
102102
sbsign --key $KEYS_DIR/TestDB1.key --cert $KEYS_DIR/TestDB1.crt $TOP_DIR/$UEFI_SHELL_PATH/Shell_EA4BB293-2D7F-4456-A681-1F22F42CD0BC.efi --output $TOP_DIR/$UEFI_SHELL_PATH/Shell_EA4BB293-2D7F-4456-A681-1F22F42CD0BC.efi
103+
103104
popd
104105

105106
}

SystemReady-band/build-scripts/get_source.sh

Lines changed: 38 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
# @file
3-
# Copyright (c) 2021-2024, Arm Limited or its affiliates. All rights reserved.
3+
# Copyright (c) 2021-2025, Arm Limited or its affiliates. All rights reserved.
44
# SPDX-License-Identifier : Apache-2.0
55

66
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -31,17 +31,21 @@ get_linux_src()
3131
{
3232
echo "Downloading Linux source code. Version : $LINUX_KERNEL_VERSION"
3333
git clone --depth 1 --branch v$LINUX_KERNEL_VERSION https://github.com/torvalds/linux.git linux-${LINUX_KERNEL_VERSION}
34+
if [ $? -ne 0 ]; then
35+
echo "Error: Failed to download Linux source code"
36+
exit 1
37+
fi
3438
}
3539

3640
get_uefi_src()
3741
{
3842
echo "Downloading EDK2 source code. TAG : $EDK2_SRC_VERSION"
39-
git clone --depth 1 --single-branch \
40-
--branch $EDK2_SRC_VERSION https://github.com/tianocore/edk2.git
43+
git clone --depth 1 --single-branch --branch $EDK2_SRC_VERSION https://github.com/tianocore/edk2.git
44+
if [ $? -ne 0 ]; then
45+
echo "Error: Failed to download edk2 source code"
46+
exit 1
47+
fi
4148
pushd $TOP_DIR/edk2
42-
git apply $TOP_DIR/../common/patches/edk2_subhook_patch
43-
git add .gitmodules
44-
git rm --cached UnitTestFrameworkPkg/Library/SubhookLib/subhook
4549
git submodule update --init
4650
popd
4751
}
@@ -50,6 +54,11 @@ get_bsa_src()
5054
{
5155
pushd $TOP_DIR/edk2
5256
git clone https://github.com/tianocore/edk2-libc
57+
if [ $? -ne 0 ]; then
58+
echo "Error: Failed to download edk2 libc source code"
59+
exit 1
60+
fi
61+
5362
if [ -z $ARM_BSA_TAG ]; then
5463
#No TAG is provided. Download the latest code
5564
echo "Downloading Arm BSA source code."
@@ -94,6 +103,10 @@ get_cross_compiler()
94103
mkdir -p tools
95104
pushd $TOP_DIR/tools
96105
wget $CROSS_COMPILER_URL --no-check-certificate
106+
if [ $? -ne 0 ]; then
107+
echo "Error: Failed to dowload toolchain"
108+
exit 1
109+
fi
97110
tar -xf arm-gnu-toolchain-${GCC_TOOLS_VERSION}-x86_64-${TAG}.tar.xz
98111
mv arm-gnu-toolchain-13.2.Rel1-x86_64-aarch64-none-linux-gnu arm-gnu-toolchain-13.2.rel1-x86_64-aarch64-none-linux-gnu
99112
rm arm-gnu-toolchain-${GCC_TOOLS_VERSION}-x86_64-${TAG}.tar.xz
@@ -105,25 +118,23 @@ get_grub_src()
105118
{
106119
echo "Downloading grub source code,Version: ${GRUB_SRC_TAG}"
107120
git clone -b $GRUB_SRC_TAG https://github.com/rhboot/grub2.git grub
121+
if [ $? -ne 0 ]; then
122+
echo "Error: Failed to download Grub source code"
123+
exit 1
124+
fi
108125
pushd $TOP_DIR/grub
109126
git submodule update --init
110127
popd
111128
}
112129

113-
get_fwts_src()
114-
{
115-
echo "Downloading FWTS source code. TAG : ${FWTS_SRC_TAG}"
116-
git clone --single-branch git://kernel.ubuntu.com/hwe/fwts.git
117-
pushd $TOP_DIR/fwts
118-
git checkout $FWTS_SRC_TAG
119-
git submodule update --init
120-
popd
121-
}
122-
123130
get_sct_src()
124131
{
125132
echo "Downloading SCT (edk2-test) source code. TAG : ${SCT_SRC_TAG}"
126133
git clone --single-branch https://github.com/tianocore/edk2-test
134+
if [ $? -ne 0 ]; then
135+
echo "Error: Failed to download sct source code"
136+
exit 1
137+
fi
127138
pushd $TOP_DIR/edk2-test
128139
git checkout $SCT_SRC_TAG
129140
popd
@@ -157,7 +168,9 @@ get_linux-acs_src()
157168
get_bbr_acs_src()
158169
{
159170
echo "Downloading Arm BBR source code."
160-
git clone https://github.com/ARM-software/bbr-acs.git bbr-acs
171+
#git clone https://github.com/ARM-software/bbr-acs.git bbr-acs
172+
##TODO revert back to main branch
173+
git clone --branch SR_execution_enviroment https://github.com/ARM-software/bbr-acs.git bbr-acs
161174
if [ -n "$ARM_BBR_TAG" ]; then
162175
# TAG provided.
163176
echo "Checking out Arm BBR TAG: $ARM_BBR_TAG"
@@ -168,13 +181,17 @@ get_bbr_acs_src()
168181
get_buildroot_src()
169182
{
170183
echo "Downloading Buildroot source code. TAG : $BUILDROOT_SRC_VERSION"
171-
git clone -b $BUILDROOT_SRC_VERSION https://git.busybox.net/buildroot/
184+
#git clone -b $BUILDROOT_SRC_VERSION https://git.busybox.net/buildroot/
185+
#TODO git clone was failing with busybox url, try gitlab
186+
git clone -b $BUILDROOT_SRC_VERSION https://gitlab.com/buildroot.org/buildroot.git
187+
if [ $? -ne 0 ]; then
188+
echo "Error: Failed to download buildroot source code"
189+
exit 1
190+
fi
172191
pushd $TOP_DIR/buildroot/package/fwts
173192
echo "Applying Buildroot FWTS patch..."
174193
# patch buildroot config
175-
git apply $TOP_DIR/../common/patches/build_fwts_version_24.09.00.patch
176-
# copy patches for fwts source
177-
cp $TOP_DIR/../common/patches/0008-acpi-iort-memory-access-flag-update.patch .
194+
git apply $TOP_DIR/../common/patches/build_fwts_version_25.01.00.patch
178195
popd
179196
}
180197

SystemReady-band/build-scripts/make_image.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ PLATDIR=${TOP_DIR}/output
2828
OUTDIR=${PLATDIR}
2929
GRUB_BUILDROOT_CONFIG_FILE=${TOP_DIR}/build-scripts/config/grub-buildroot.cfg
3030
EFI_CONFIG_FILE=${TOP_DIR}/uefi_scripts/startup.nsh
31+
EE_EFI_CONFIG_FILE=${TOP_DIR}/uefi_scripts/startup_ee.nsh
3132
BBSR_STARTUP_FILE=${TOP_DIR}/uefi_scripts/bbsr_startup.nsh
3233
BSA_CONFIG_FILE=${TOP_DIR}/uefi_scripts/bsa.nsh
3334
SBSA_CONFIG_FILE=${TOP_DIR}/uefi_scripts/sbsa.nsh
@@ -36,7 +37,8 @@ DEBUG_CONFIG_FILE=${TOP_DIR}/uefi_scripts/debug_dump.nsh
3637
ACS_CONFIG_FILE=${TOP_DIR}/build-scripts/config/acs_config.txt
3738
SYSTEM_CONFIG_FILE=${TOP_DIR}/build-scripts/config/system_config.txt
3839
ACS_RUN_CONFIG_FILE=${TOP_DIR}/build-scripts/config/acs_run_config.ini
39-
CONFIG_PARSER_EFI=${TOP_DIR}/parser/Parser.efi
40+
CONFIG_PARSER_FILE=${TOP_DIR}/uefi_scripts/parser.nsh
41+
CONFIG_PARSER_PYTHON_FILE=${TOP_DIR}/../common/parser/Parser.py
4042
BLOCK_SIZE=512
4143
SEC_PER_MB=$((1024*2))
4244
GRUB_PATH=grub
@@ -51,6 +53,7 @@ create_cfgfiles ()
5153
mcopy -i $fatpart_name -o ${GRUB_BUILDROOT_CONFIG_FILE} ::/EFI/BOOT/grub.cfg
5254
mcopy -i $fatpart_name -o ${BBSR_STARTUP_FILE} ::/EFI/BOOT/
5355
mcopy -i $fatpart_name -o ${EFI_CONFIG_FILE} ::/EFI/BOOT/
56+
mcopy -i $fatpart_name -o ${EE_EFI_CONFIG_FILE} ::/EFI/BOOT/
5457
mcopy -i $fatpart_name -o ${BSA_CONFIG_FILE} ::/acs_tests/bsa/
5558
mcopy -i $fatpart_name -o ${SBSA_CONFIG_FILE} ::/acs_tests/bsa/sbsa
5659
mcopy -i $fatpart_name -o ${DEBUG_CONFIG_FILE} ::/acs_tests/debug/
@@ -96,7 +99,9 @@ create_fatpart ()
9699
mcopy -i $fatpart_name ${TOP_DIR}/bbsr-keys/*.auth ::/acs_tests/bbsr-keys
97100

98101
mcopy -i $fatpart_name ${UEFI_APPS_PATH}/CapsuleApp.efi ::/acs_tests/app
99-
mcopy -i $fatpart_name $CONFIG_PARSER_EFI ::/acs_tests/parser
102+
mcopy -i $fatpart_name $OUTDIR/Parser.efi ::/acs_tests/parser
103+
mcopy -i $fatpart_name $CONFIG_PARSER_FILE ::/acs_tests/parser
104+
mcopy -i $fatpart_name $CONFIG_PARSER_PYTHON_FILE ::/acs_tests/parser
100105

101106
echo "FAT partition image created"
102107
}
@@ -176,4 +181,3 @@ exit_fun() {
176181

177182
#prepare the disk image
178183
prepare_disk_image
179-

SystemReady-band/parser/Parser.efi

-48 KB
Binary file not shown.

0 commit comments

Comments
 (0)