blob: 2281f3cee41ae1c379ea6990503c22f64422f2bb [file] [log] [blame]
Leonardo Sandoval6eff3f72021-05-03 11:12:37 -05001#
2# Copyright (c) 2021, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6# Script to interact with AArch64 Trusted Firmware-A.
7#
8
9# Initial boot message won't be present if we're starting at BL31. Skip waiting
10# for them by inspecting the environment variable 'skip_early_boot_msgs'.
11if [ -z "$skip_early_boot_msgs" ]; then
12
Leonardo Sandoval5cfc11f2021-09-08 16:08:13 -050013 expect_string+=('i;Booting Trusted Firmware')
Leonardo Sandoval6eff3f72021-05-03 11:12:37 -050014
15 prompt='Booting BL2'
Paul Sokolovskya5946672023-06-02 12:28:30 +030016 # Catch all possible BL2 loading error messages, namely:
Leonardo Sandoval6eff3f72021-05-03 11:12:37 -050017 # "Failure in pre image load handling of BL2"
18 # "Failed to load BL2 firmware."
19 # "Failure in post image load handling of BL2"
Paul Sokolovskyefabfc82023-05-11 02:11:40 +030020 # "BL2: Failed to load image id"
21 failures='Fail.*load.*BL2|BL2.*Fail.*load'
Leonardo Sandoval5cfc11f2021-09-08 16:08:13 -050022 expect_string+=("i;${prompt};;${failures}")
Leonardo Sandoval6eff3f72021-05-03 11:12:37 -050023
Paul Sokolovskya5946672023-06-02 12:28:30 +030024 expect_string+=("i;BL1: Booting BL31;;${failures}")
Leonardo Sandoval6eff3f72021-05-03 11:12:37 -050025fi