Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 1 | # |
Chris Kay | 3d2ae33 | 2022-11-15 11:32:03 +0000 | [diff] [blame] | 2 | # Copyright (c) 2019-2022 Arm Limited. All rights reserved. |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 6 | # Expect script for Trusted Firmware + EDK2 UART0 |
| 7 | # |
| 8 | # Refer to handle-arguments.inc for the list of parameters. |
| 9 | # |
| 10 | |
| 11 | source [file join [file dirname [info script]] handle-arguments.inc] |
| 12 | |
| 13 | # Trusted Firmware boot section |
| 14 | source [file join [file dirname [info script]] trusted-firmware.inc] |
| 15 | |
| 16 | # EDK2 section |
| 17 | expect { |
| 18 | "UEFI firmware" { |
| 19 | puts "<<EDK2 starting>>" |
| 20 | } |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 21 | } |
| 22 | |
| 23 | expect { |
| 24 | "UEFI Interactive Shell" { |
| 25 | puts "<<EDK2 shell starting>>" |
| 26 | } |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | expect { |
| 30 | "any other key to continue." { |
| 31 | send "\r" |
| 32 | } |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | expect { |
| 36 | "Shell>" { |
| 37 | send "fs0:\r" |
| 38 | } |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | expect { |
| 42 | "FS0:" { |
| 43 | send "UefiInfo.efi\r" |
| 44 | puts "<<Loading UEFI application>>" |
| 45 | } |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | expect { |
| 49 | -re "Loading driver at .* UefiInfo.efi" { |
| 50 | puts "<<UEFI application is being loaded>>" |
| 51 | } |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 52 | } |
| 53 | |
| 54 | expect { |
| 55 | "FS0:" { |
| 56 | puts "<<UEFI application loaded>>" |
| 57 | } |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | exit_uart 0 |