blob: ae1de8bf04a4db7f24cd564c37d2a95f7c8042b8 [file] [log] [blame]
johpow01936638d2021-11-08 18:22:24 -06001#
2# Copyright (c) 2021 Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6# Expect script for booting Yocto linux on FVP-R
7#
8
9source [file join [file dirname [info script]] handle-arguments.inc]
10
11# FVP-R BL1
12expect {
13 "Booting Trusted Firmware" {
14 puts "<<Booting Trusted Firmware>>"
15 }
16 timeout {
17 exit_uart -1
18 }
19}
20
21expect {
22 "BL1: Booting BL33" {
23 puts "<<Booting BL33>>"
24 }
25 timeout {
26 exit_uart -1
27 }
28}
29
30# Uboot
31expect {
32 "U-Boot" {
33 puts "<<Entered Uboot>>"
34 }
35 timeout {
36 exit_uart -1
37 }
38}
39
40# Yocto
41expect {
42 "Booting Linux on physical CPU" {
43 puts "<<Booting Linux>>"
44 }
45 timeout {
46 exit_uart -1
47 }
48}
49
50expect {
51 "fvp-baser-aemv8r64 login:" {
52 puts "<<Yocto Login Prompt Received>>"
53 send "root\n"
54 }
55 timeout {
56 exit_uart -1
57 }
58}
59
60expect {
61 "#" {
62 puts "<<Successfully Reached Yocto Shell>>"
63 }
64 timeout {
65 exit_uart -1
66 }
67}