Sandrine Bailleux | 57bffcd | 2020-08-04 14:46:06 +0200 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2020, Arm Limited. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | source [file join [file dirname [info script]] handle-arguments.inc] |
| 8 | |
| 9 | expect { |
Olivier Deprez | c561e6e | 2020-07-30 10:24:47 +0200 | [diff] [blame] | 10 | "Booting Primary Cactus Secure Partition" { |
Sandrine Bailleux | 57bffcd | 2020-08-04 14:46:06 +0200 | [diff] [blame] | 11 | puts "<<SP entry>>" |
| 12 | } |
| 13 | timeout { |
| 14 | exit_uart -1 |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | expect { |
Olivier Deprez | c561e6e | 2020-07-30 10:24:47 +0200 | [diff] [blame] | 19 | "FFA_VERSION returned 1.0" { |
Madhukar Pappireddy | 5bc6cdd | 2021-01-28 14:45:08 -0600 | [diff] [blame] | 20 | puts "<<SP checked FF-A version>>" |
Sandrine Bailleux | 57bffcd | 2020-08-04 14:46:06 +0200 | [diff] [blame] | 21 | } |
| 22 | timeout { |
| 23 | exit_uart -1 |
| 24 | } |
| 25 | } |
| 26 | |
Madhukar Pappireddy | 5bc6cdd | 2021-01-28 14:45:08 -0600 | [diff] [blame] | 27 | # UART2 captures prints from SP0. If we exit from here, expect script will stop |
| 28 | # capturing the output from telnet process spawned for tracking uart2 console. |
| 29 | # Hence, we need to hold the uart such that the expect script captures the |
| 30 | # outputs to uart log. We do this by configuring timeout to never expire and |
| 31 | # expecting an unexpected string such as "FOOBAR". Refer uart-hold.inc |
| 32 | |
| 33 | source [file join [file dirname [info script]] uart-hold.inc] |