Skip to contentSkip to conversation

tests/avocado: Add a quick test to boot Trusted Firmware on SBSA-ref

PATCH-for-8.0 Philippe Mathieu-Daudé 1 participant 1 message Dec 13, 2022

lore
Share & tools
lore
#0 lore raw

This quick test boots TF-A on the SBSA-ref machine up to the EDK2 banner.

It was helpful to catch an issue with Secure PTW fixed in commit cead7fa4c0 ("target/arm: Two fixes for secure ptw").

Prebuilt flash volumes are included, with the build recipes to reproduce.

Example of execution:

  $ avocado --show=app,console run -t machine:sbsa-ref tests/avocado
   (1/1) tests/avocado/machine_aarch64_sbsaref.py:Aarch64SbsarefMachine.test_sbsaref_tfa_v2_8:
  console: NOTICE:  Booting Trusted Firmware
  console: NOTICE:  BL1: v2.7(release):v2.8-rc0
  console: NOTICE:  BL1: Built : 22:41:04, Nov 15 2022
  console: NOTICE:  BL1: Booting BL2
  console: NOTICE:  BL2: v2.5(release):v2.5-432-ga4ea20502
  console: NOTICE:  BL2: Built : 13:50:23, Sep 13 2021
  console: NOTICE:  BL1: Booting BL31
  console: NOTICE:  BL31: v2.5(release):v2.5-432-ga4ea20502
  console: NOTICE:  BL31: Built : 13:50:23, Sep 13 2021
  console: UEFI firmware (version 1.0 built at 22:54:31 on Nov 15 2022)
  console: QEMU SBSA-REF Machine
   arm-virt                                            2.00 GHz
   1.0                                                 1024 MB RAM
  PASS (1.73 s)
  RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
  JOB TIME   : 1.94 s
---
 MAINTAINERS                              |  1 +
 tests/avocado/machine_aarch64_sbsaref.py | 96 ++++++++++++++++++++++++
 2 files changed, 97 insertions(+)
 create mode 100644 tests/avocado/machine_aarch64_sbsaref.py
MAINTAINERS +1 -0
index 6966490c94..ddc2340661 100644
@@ -891,6 +891,7 @@ L: [email protected]
 S: Maintained
 F: hw/arm/sbsa-ref.c
 F: docs/system/arm/sbsa.rst
+F: tests/avocado/machine_aarch64_sbsaref.py
 
 Sharp SL-5500 (Collie) PDA
 M: Peter Maydell <[email protected]>
tests/avocado/machine_aarch64_sbsaref.py new file +96 -0

96 lines not on this page · raw message

Signature · 1 line
2.38.1