johpow01 | 936638d | 2021-11-08 18:22:24 -0600 | [diff] [blame] | 1 | #
|
Chris Kay | 3d2ae33 | 2022-11-15 11:32:03 +0000 | [diff] [blame^] | 2 | # Copyright (c) 2021-2022 Arm Limited. All rights reserved.
|
johpow01 | 936638d | 2021-11-08 18:22:24 -0600 | [diff] [blame] | 3 | #
|
| 4 | # SPDX-License-Identifier: BSD-3-Clause
|
| 5 | #
|
| 6 | # Expect script for booting Yocto linux on FVP-R
|
| 7 | #
|
| 8 |
|
| 9 | source [file join [file dirname [info script]] handle-arguments.inc]
|
| 10 |
|
| 11 | # FVP-R BL1
|
| 12 | expect {
|
| 13 | "Booting Trusted Firmware" {
|
| 14 | puts "<<Booting Trusted Firmware>>"
|
| 15 | }
|
johpow01 | 936638d | 2021-11-08 18:22:24 -0600 | [diff] [blame] | 16 | }
|
| 17 |
|
| 18 | expect {
|
| 19 | "BL1: Booting BL33" {
|
| 20 | puts "<<Booting BL33>>"
|
| 21 | }
|
johpow01 | 936638d | 2021-11-08 18:22:24 -0600 | [diff] [blame] | 22 | }
|
| 23 |
|
| 24 | # Uboot
|
| 25 | expect {
|
| 26 | "U-Boot" {
|
| 27 | puts "<<Entered Uboot>>"
|
| 28 | }
|
johpow01 | 936638d | 2021-11-08 18:22:24 -0600 | [diff] [blame] | 29 | }
|
| 30 |
|
| 31 | # Yocto
|
| 32 | expect {
|
| 33 | "Booting Linux on physical CPU" {
|
| 34 | puts "<<Booting Linux>>"
|
| 35 | }
|
johpow01 | 936638d | 2021-11-08 18:22:24 -0600 | [diff] [blame] | 36 | }
|
| 37 |
|
| 38 | expect {
|
| 39 | "fvp-baser-aemv8r64 login:" {
|
| 40 | puts "<<Yocto Login Prompt Received>>"
|
| 41 | send "root\n"
|
| 42 | }
|
johpow01 | 936638d | 2021-11-08 18:22:24 -0600 | [diff] [blame] | 43 | }
|
| 44 |
|
| 45 | expect {
|
| 46 | "#" {
|
| 47 | puts "<<Successfully Reached Yocto Shell>>"
|
| 48 | }
|
johpow01 | 936638d | 2021-11-08 18:22:24 -0600 | [diff] [blame] | 49 | }
|