Leonardo Sandoval | 6eff3f7 | 2021-05-03 11:12:37 -0500 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2021, Arm Limited. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | # Script to interact with AArch32 Trusted Firmware-A. |
| 7 | # |
| 8 | |
| 9 | # Initial boot message won't be present if we're starting at SP_MIN. Skip |
| 10 | # waiting for them by inspecting the environment variable |
| 11 | # 'skip_early_boot_msgs'. |
| 12 | if [ -z "$skip_early_boot_msgs" ]; then |
| 13 | |
Leonardo Sandoval | 5cfc11f | 2021-09-08 16:08:13 -0500 | [diff] [blame] | 14 | expect_string+=('i;Booting Trusted Firmware') |
Leonardo Sandoval | 6eff3f7 | 2021-05-03 11:12:37 -0500 | [diff] [blame] | 15 | |
| 16 | prompt='BL1: Booting BL2' |
| 17 | # Catch all 3 possible BL2 loading error messages, namely: |
| 18 | # "Failure in pre image load handling of BL2" |
| 19 | # "Failed to load BL2 firmware." |
| 20 | # "Failure in post image load handling of BL2" |
| 21 | failures='Fail.*load.*BL2' |
Leonardo Sandoval | 5cfc11f | 2021-09-08 16:08:13 -0500 | [diff] [blame] | 22 | expect_string+=("i;${prompt};;${failures}") |
Leonardo Sandoval | 6eff3f7 | 2021-05-03 11:12:37 -0500 | [diff] [blame] | 23 | |
Leonardo Sandoval | 5cfc11f | 2021-09-08 16:08:13 -0500 | [diff] [blame] | 24 | expect_string+=('i;BL1: Booting BL32') |
Leonardo Sandoval | 6eff3f7 | 2021-05-03 11:12:37 -0500 | [diff] [blame] | 25 | fi |
| 26 | |
Leonardo Sandoval | 5cfc11f | 2021-09-08 16:08:13 -0500 | [diff] [blame] | 27 | expect_string+=('i;SP_MIN:') |