johpow01 | 936638d | 2021-11-08 18:22:24 -0600 | [diff] [blame^] | 1 | #
|
| 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 |
|
| 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 | }
|
| 16 | timeout {
|
| 17 | exit_uart -1
|
| 18 | }
|
| 19 | }
|
| 20 |
|
| 21 | expect {
|
| 22 | "BL1: Booting BL33" {
|
| 23 | puts "<<Booting BL33>>"
|
| 24 | }
|
| 25 | timeout {
|
| 26 | exit_uart -1
|
| 27 | }
|
| 28 | }
|
| 29 |
|
| 30 | # Uboot
|
| 31 | expect {
|
| 32 | "U-Boot" {
|
| 33 | puts "<<Entered Uboot>>"
|
| 34 | }
|
| 35 | timeout {
|
| 36 | exit_uart -1
|
| 37 | }
|
| 38 | }
|
| 39 |
|
| 40 | # Yocto
|
| 41 | expect {
|
| 42 | "Booting Linux on physical CPU" {
|
| 43 | puts "<<Booting Linux>>"
|
| 44 | }
|
| 45 | timeout {
|
| 46 | exit_uart -1
|
| 47 | }
|
| 48 | }
|
| 49 |
|
| 50 | expect {
|
| 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 |
|
| 60 | expect {
|
| 61 | "#" {
|
| 62 | puts "<<Successfully Reached Yocto Shell>>"
|
| 63 | }
|
| 64 | timeout {
|
| 65 | exit_uart -1
|
| 66 | }
|
| 67 | }
|