blob: 13a4d8ccc2537ce85d0db259c614b6d68614e28d [file] [log] [blame]
Madhukar Pappireddy9062ebf2021-03-02 17:07:06 -06001#
2# Copyright (c) 2021 Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6# Expect script for Trusted Firmware + Linux boot process
7#
8# Refer to handle-arguments.inc for the list of parameters.
9#
10
11source [file join [file dirname [info script]] handle-arguments.inc]
12
13# Trusted Firmware boot section
14source [file join [file dirname [info script]] trusted-firmware.inc]
15
16# Linux kernel boot section
Chris Kay78ea2c32022-11-15 12:24:24 +000017expect_string "Booting Linux on physical CPU" "Linux is booting"
18expect_string "Linux version" "Linux printed its version"
Madhukar Pappireddy9062ebf2021-03-02 17:07:06 -060019
20# The kernel prints some information it takes from the preloaded DTB.
21# Check for following information to see that we actually got the right DTB.
22# 1. Machine model
23# 2. Command line passed via the "/chosen" node
Chris Kay27634d62024-02-09 16:27:38 +000024expect_re "Machine model: FVP Base" "Linux successfully identified the machine model"
Chris Kay78ea2c32022-11-15 12:24:24 +000025expect_string "Kernel command line: console=ttyAMA0" "Linux received the correct command line"
Madhukar Pappireddy9062ebf2021-03-02 17:07:06 -060026
27exit_uart 0