blob: 949fea7d8995f8c41909c49f9363edbf8a8d51bf [file] [log] [blame]
Leonardo Sandoval6eff3f72021-05-03 11:12:37 -05001#
Salman Nabidb6d9682025-02-25 12:45:13 +00002# Copyright (c) 2021-2025 Arm Limited. All rights reserved.
Leonardo Sandoval6eff3f72021-05-03 11:12:37 -05003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6# Expect script for Trusted Firmware + Linux boot process
7#
8
9# Trusted Firmware boot section
Paul Sokolovskyeece6f72021-12-01 15:04:29 +030010source $ci_root/expect-lava/trusted-firmware.inc
Leonardo Sandoval6eff3f72021-05-03 11:12:37 -050011
12# Linux kernel boot section
Leonardo Sandoval5cfc11f2021-09-08 16:08:13 -050013expect_string+=('i;Booting Linux on physical CPU')
14expect_string+=('i;Linux version')
Leonardo Sandoval6eff3f72021-05-03 11:12:37 -050015
16# The kernel prints some information it takes from the preloaded DTB.
17# Check for following information to see that we actually got the right DTB.
18# 1. Machine model
19# 2. Command line passed via the "/chosen" node
Chris Kay27634d62024-02-09 16:27:38 +000020expect_string+=('i;Machine model: FVP Base')
Leonardo Sandoval5cfc11f2021-09-08 16:08:13 -050021expect_string+=('i;Kernel command line: console=ttyAMA0')
Salman Nabidb6d9682025-02-25 12:45:13 +000022
23# Check if the injected initrd values are correct and working
24expect_string+=('i;Unpacking initramfs...')
25expect_string+=('i;Freeing initrd memory')
26
27# Check if linux booted successfully and we have access to the linux terminal
28expect_string+=('i;Freeing unused kernel memory')
29expect_string+=('i;/ # ')