blob: 5d94de326321af6cdf188774ef7f355d1994428f [file] [log] [blame]
#
# Copyright (c) 2021-2025 Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Expect script for Trusted Firmware + Linux boot process
#
# Refer to handle-arguments.inc for the list of parameters.
#
source [file join [file dirname [info script]] handle-arguments.inc]
# Trusted Firmware boot section
source [file join [file dirname [info script]] trusted-firmware.inc]
# Linux kernel boot section
expect_string "Booting Linux on physical CPU" "Linux is booting"
expect_string "Linux version" "Linux printed its version"
# The kernel prints some information it takes from the preloaded DTB.
# Check for following information to see that we actually got the right DTB.
# 1. Machine model
# 2. Command line passed via the "/chosen" node
expect_re "Machine model: FVP Base" "Linux successfully identified the machine model"
expect_string "Kernel command line: console=ttyAMA0" "Linux received the correct command line"
# Check if the injected initrd values are correct and working
expect_string "Unpacking initramfs..." "Linux found the initrd values in the chosen node"
expect_string "Freeing initrd memory" "Linux successfully unpacked the initrd"
# Check if Linux booted successfully and we have access to the Linux terminal
expect_string "Freeing unused kernel memory" "Linux kernel boot success"
expect_string "/ # " "The user has access to the Linux terminal"
exit_uart 0