blob: 4d38e0980ec37da02bb895363ca7c6c2c057732d [file] [log] [blame]
#
# Copyright (c) 2021, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Script to interact with AArch64 Trusted Firmware-A.
#
# Initial boot message won't be present if we're starting at BL31. Skip waiting
# for them by inspecting the environment variable 'skip_early_boot_msgs'.
if [ -z "$skip_early_boot_msgs" ]; then
expect_string+=('i;Booting Trusted Firmware')
prompt='Booting BL2'
# Catch all 3 possible BL2 loading error messages, namely:
# "Failure in pre image load handling of BL2"
# "Failed to load BL2 firmware."
# "Failure in post image load handling of BL2"
failures='Fail.*load.*BL2'
expect_string+=("i;${prompt};;${failures}")
expect_string+=('i;BL1: Booting BL31')
fi