Leonardo Sandoval | 6eff3f7 | 2021-05-03 11:12:37 -0500 | [diff] [blame] | 1 | # |
Salman Nabi | db6d968 | 2025-02-25 12:45:13 +0000 | [diff] [blame] | 2 | # Copyright (c) 2021-2025 Arm Limited. All rights reserved. |
Leonardo Sandoval | 6eff3f7 | 2021-05-03 11:12:37 -0500 | [diff] [blame] | 3 | # |
| 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 Sokolovsky | eece6f7 | 2021-12-01 15:04:29 +0300 | [diff] [blame] | 10 | source $ci_root/expect-lava/trusted-firmware.inc |
Leonardo Sandoval | 6eff3f7 | 2021-05-03 11:12:37 -0500 | [diff] [blame] | 11 | |
| 12 | # Linux kernel boot section |
Leonardo Sandoval | 5cfc11f | 2021-09-08 16:08:13 -0500 | [diff] [blame] | 13 | expect_string+=('i;Booting Linux on physical CPU') |
| 14 | expect_string+=('i;Linux version') |
Leonardo Sandoval | 6eff3f7 | 2021-05-03 11:12:37 -0500 | [diff] [blame] | 15 | |
| 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 Kay | 27634d6 | 2024-02-09 16:27:38 +0000 | [diff] [blame] | 20 | expect_string+=('i;Machine model: FVP Base') |
Leonardo Sandoval | 5cfc11f | 2021-09-08 16:08:13 -0500 | [diff] [blame] | 21 | expect_string+=('i;Kernel command line: console=ttyAMA0') |
Salman Nabi | db6d968 | 2025-02-25 12:45:13 +0000 | [diff] [blame] | 22 | |
| 23 | # Check if the injected initrd values are correct and working |
| 24 | expect_string+=('i;Unpacking initramfs...') |
| 25 | expect_string+=('i;Freeing initrd memory') |
| 26 | |
| 27 | # Check if linux booted successfully and we have access to the linux terminal |
| 28 | expect_string+=('i;Freeing unused kernel memory') |
| 29 | expect_string+=('i;/ # ') |