# Test class to boot aspeed machines # # SPDX-License-Identifier: GPL-2.0-or-later from .linuxkernel import LinuxKernelTest class AspeedTest(LinuxKernelTest): def do_test_arm_aspeed(self, machine, image): self.set_machine(machine) self.vm.set_console() self.vm.add_args('-drive', 'file=' + image + ',if=mtd,format=raw', '-net', 'nic', '-snapshot') self.vm.launch() self.wait_for_console_pattern("U-Boot 2016.07") self.wait_for_console_pattern("## Loading kernel from FIT Image at 20080000") self.wait_for_console_pattern("Starting kernel ...") self.wait_for_console_pattern("Booting Linux on physical CPU 0x0") self.wait_for_console_pattern( "aspeed-smc 1e620000.spi: read control register: 203b0641") self.wait_for_console_pattern("ftgmac100 1e660000.ethernet eth0: irq ") self.wait_for_console_pattern("systemd[1]: Set hostname to")