1# Test class to boot aspeed machines 2# 3# SPDX-License-Identifier: GPL-2.0-or-later 4 5from .linuxkernel import LinuxKernelTest 6 7class AspeedTest(LinuxKernelTest): 8 9 def do_test_arm_aspeed(self, machine, image): 10 self.set_machine(machine) 11 self.vm.set_console() 12 self.vm.add_args('-drive', 'file=' + image + ',if=mtd,format=raw', 13 '-net', 'nic', '-snapshot') 14 self.vm.launch() 15 16 self.wait_for_console_pattern("U-Boot 2016.07") 17 self.wait_for_console_pattern("## Loading kernel from FIT Image at 20080000") 18 self.wait_for_console_pattern("Starting kernel ...") 19 self.wait_for_console_pattern("Booting Linux on physical CPU 0x0") 20 self.wait_for_console_pattern( 21 "aspeed-smc 1e620000.spi: read control register: 203b0641") 22 self.wait_for_console_pattern("ftgmac100 1e660000.ethernet eth0: irq ") 23 self.wait_for_console_pattern("systemd[1]: Set hostname to") 24