mirror of
https://github.com/qemu/qemu.git
synced 2024-12-15 15:33:29 +08:00
5baecf58ad
This test was written/tested around beginning of 2019, but was extracted from a bigger series and posted end of June 2019 [*]. Unfortunately I did not notice commit162abf1a8
was merged by then, which implements the AHB and APB plug and play devices. HelenOS 0.6 is expecting the PnP registers to be not implemented by QEMU, then forces the discovered AMBA devices (see [2]). Before162abf1a8
, the console was displaying: HelenOS bootloader, release 0.6.0 (Elastic Horse) Built on 2014-12-21 20:17:42 for sparc32 Copyright (c) 2001-2014 HelenOS project 0x4000bf20|0x4000bf20: kernel image (496640/128466 bytes) 0x4002b4f2|0x4002b4f2: ns image (154195/66444 bytes) 0x4003b87e|0x4003b87e: loader image (153182/66437 bytes) 0x4004bc03|0x4004bc03: init image (155339/66834 bytes) 0x4005c115|0x4005c115: locsrv image (162063/70267 bytes) 0x4006d390|0x4006d390: rd image (152678/65889 bytes) 0x4007d4f1|0x4007d4f1: vfs image (168480/73394 bytes) 0x4008f3a3|0x4008f3a3: logger image (158034/68368 bytes) 0x4009feb3|0x4009feb3: ext4fs image (234510/100301 bytes) 0x400b8680|0x400b8680: initrd image (8388608/1668901 bytes) ABMA devices: <1:00c> at 0x80000100 irq 3 <1:00d> at 0x80000200 <1:011> at 0x80000300 irq 8 Memory size: 64 MB As of this commit, it is now confused: ABMA devices: <1:3000> at 0x00000000 irq 0 <1:3000> at 0x00000000 irq 0 <1:3000> at 0x00000000 irq 0 <1:3000> at 0x00000000 irq 0 <1:3000> at 0x00000000 irq 0 <1:3000> at 0x00000000 irq 0 <1:3000> at 0x00000000 irq 0 ... As this test is not working as expected, simply disable it (by skipping it) for now. [1] https://www.mail-archive.com/qemu-devel@nongnu.org/msg627094.html [2] https://github.com/HelenOS/helenos/blob/0.6.0/boot/arch/sparc32/src/ambapp.c#L75 Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Tested-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20200331105048.27989-2-f4bug@amsat.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
38 lines
1.3 KiB
Python
38 lines
1.3 KiB
Python
# Functional test that boots a Leon3 machine and checks its serial console.
|
|
#
|
|
# Copyright (c) Philippe Mathieu-Daudé <f4bug@amsat.org>
|
|
#
|
|
# This work is licensed under the terms of the GNU GPL, version 2 or
|
|
# later. See the COPYING file in the top-level directory.
|
|
|
|
from avocado_qemu import Test
|
|
from avocado_qemu import wait_for_console_pattern
|
|
from avocado import skip
|
|
|
|
|
|
class Leon3Machine(Test):
|
|
|
|
timeout = 60
|
|
|
|
@skip("Test currently broken")
|
|
# A Window Underflow exception occurs before booting the kernel,
|
|
# and QEMU exit calling cpu_abort(), which makes this test to fail.
|
|
def test_leon3_helenos_uimage(self):
|
|
"""
|
|
:avocado: tags=arch:sparc
|
|
:avocado: tags=machine:leon3_generic
|
|
:avocado: tags=binfmt:uimage
|
|
"""
|
|
kernel_url = ('http://www.helenos.org/releases/'
|
|
'HelenOS-0.6.0-sparc32-leon3.bin')
|
|
kernel_hash = 'a88c9cfdb8430c66650e5290a08765f9bf049a30'
|
|
kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash)
|
|
|
|
self.vm.set_console()
|
|
self.vm.add_args('-kernel', kernel_path)
|
|
|
|
self.vm.launch()
|
|
|
|
wait_for_console_pattern(self, 'Copyright (c) 2001-2014 HelenOS project')
|
|
wait_for_console_pattern(self, 'Booting the kernel ...')
|