feat(plat/fvp_r): add run and test configs to boot Yocto Linux on FVP-R
This patch adds the appropriate files to build TF-A for fvp_r
and then boot to the Yocto Linux command line. If the command
line is reached the test is considered successful.
This patch only adds support for ARM internal Jenkins CI, support for
OpenCI will be added in a future patch.
Files needed by Jenkins can be found here:
http://files.oss.arm.com/downloads/tf-a/fvp_r/
Change-Id: Id18f76b0233d67a8ae8967fedc5b93220a09002e
Signed-off-by: John Powell <john.powell@arm.com>
Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
diff --git a/expect/fvp-r-yocto.exp b/expect/fvp-r-yocto.exp
new file mode 100644
index 0000000..ae1de8b
--- /dev/null
+++ b/expect/fvp-r-yocto.exp
@@ -0,0 +1,67 @@
+#
+# Copyright (c) 2021 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+# Expect script for booting Yocto linux on FVP-R
+#
+
+source [file join [file dirname [info script]] handle-arguments.inc]
+
+# FVP-R BL1
+expect {
+ "Booting Trusted Firmware" {
+ puts "<<Booting Trusted Firmware>>"
+ }
+ timeout {
+ exit_uart -1
+ }
+}
+
+expect {
+ "BL1: Booting BL33" {
+ puts "<<Booting BL33>>"
+ }
+ timeout {
+ exit_uart -1
+ }
+}
+
+# Uboot
+expect {
+ "U-Boot" {
+ puts "<<Entered Uboot>>"
+ }
+ timeout {
+ exit_uart -1
+ }
+}
+
+# Yocto
+expect {
+ "Booting Linux on physical CPU" {
+ puts "<<Booting Linux>>"
+ }
+ timeout {
+ exit_uart -1
+ }
+}
+
+expect {
+ "fvp-baser-aemv8r64 login:" {
+ puts "<<Yocto Login Prompt Received>>"
+ send "root\n"
+ }
+ timeout {
+ exit_uart -1
+ }
+}
+
+expect {
+ "#" {
+ puts "<<Successfully Reached Yocto Shell>>"
+ }
+ timeout {
+ exit_uart -1
+ }
+}