blob: d0d8264b3dd9b1cd1b445ecf6cf2a9d36c9acfd8 [file] [log] [blame]
Zelalemfd529af2020-08-04 15:09:53 -05001#
2# Copyright (c) 2020, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6# Script to interact with an TF-A built with Trusted Board Boot
7#
8source [file join [file dirname [info script]] handle-arguments.inc]
9
10# This script tries to catch if dynamic authentication of images is enabled
11# during trusted board boot(BL2). The authentication is done using certificates.
12
Chris Kay78ea2c32022-11-15 12:24:24 +000013expect_string "BL1: Booting BL2" "BL2 is booting"
14expect_string "Disabling authentication of images dynamically" "dynamic authentication was disabled"
Zelalemfd529af2020-08-04 15:09:53 -050015expect {
16 # Catch all loading of authentication certificates i.e.,
17 # TRUSTED_BOOT_FW_CERT_ID U(6)
18 # TRUSTED_KEY_CERT_ID U(7)
19 # SCP_FW_KEY_CERT_ID U(8)
20 # SOC_FW_KEY_CERT_ID U(9)
21 # TRUSTED_OS_FW_KEY_CERT_ID U(10)
22 # NON_TRUSTED_FW_KEY_CERT_ID U(11)
23 # SCP_FW_CONTENT_CERT_ID U(12)
24 # SOC_FW_CONTENT_CERT_ID U(13)
25 # TRUSTED_OS_FW_CONTENT_CERT_ID U(14)
26 # NON_TRUSTED_FW_CONTENT_CERT_ID U(15)
27
28 -re "Loading image id=(6|7|8|9|10|11|12|13|14|15) at address " {
Chris Kay78ea2c32022-11-15 12:24:24 +000029 message "dynamic authentication is still enabled"
Zelalemfd529af2020-08-04 15:09:53 -050030 exit_uart -1
31 }
Madhukar Pappireddyb437d242020-12-23 15:27:29 -060032 "BL1: Booting BL31" {
Chris Kay78ea2c32022-11-15 12:24:24 +000033 message "BL31 is booting"
Madhukar Pappireddyb437d242020-12-23 15:27:29 -060034 }
Zelalemfd529af2020-08-04 15:09:53 -050035 }