blob: 50dd5be5717df6a951070552358a61f1f30572cf [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
13expect_string "BL1: Booting BL2" "BL2 booting"
14expect_string "Disabling authentication of images dynamically" "Authentication disabled dynamically"
15expect {
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 " {
29 puts "<<Dynamic Authentication not disabled>>"
30 exit_uart -1
31 }
32 }
33exit_uart 0