[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/3] tests/avocado: add Alpine Linux boot on AArch64/sbsa-ref
From: |
Alex Bennée |
Subject: |
Re: [PATCH 3/3] tests/avocado: add Alpine Linux boot on AArch64/sbsa-ref |
Date: |
Fri, 03 Mar 2023 11:38:31 +0000 |
User-agent: |
mu4e 1.9.21; emacs 29.0.60 |
Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> writes:
> To unify tests for AArch64/virt and AArch64/sbsa-ref we boot
> same Alpine Linux image on both.
>
> Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
> ---
> tests/avocado/machine_aarch64_sbsaref.py | 29 ++++++++++++++++++++++++
> 1 file changed, 29 insertions(+)
>
> diff --git a/tests/avocado/machine_aarch64_sbsaref.py
> b/tests/avocado/machine_aarch64_sbsaref.py
> index e36e53d4d5..fdbde4b891 100644
> --- a/tests/avocado/machine_aarch64_sbsaref.py
> +++ b/tests/avocado/machine_aarch64_sbsaref.py
> @@ -148,3 +148,32 @@ def test_sbsaref_linux_max(self):
> :avocado: tags=cpu:max
> """
> self.boot_linux('max')
> +
> + # This tests the whole boot chain from EFI to Userspace
> + # We only boot a whole OS for the current top level CPU and GIC
> + # Other test profiles should use more minimal boots
> + def test_alpine_sbsaref_max(self):
> + """
> + :avocado: tags=arch:aarch64
> + :avocado: tags=machine:sbsa-ref
> + """
> + self.fetch_firmware()
> +
> + iso_url = ('https://dl-cdn.alpinelinux.org/'
> + 'alpine/v3.17/releases/aarch64/'
> + 'alpine-standard-3.17.2-aarch64.iso')
> +
> + # Alpine use sha256 so I recalculated this myself
> + iso_sha1 = '76284fcd7b41fe899b0c2375ceb8470803eea839'
> + iso_path = self.fetch_asset(iso_url, asset_hash=iso_sha1)
> +
> + self.vm.set_console()
> + self.vm.add_args("-cpu", "max,pauth-impdef=on")
> + self.vm.add_args("-machine", "sbsa-ref")
> + self.vm.add_args("-drive", f"file={iso_path},format=raw")
> + self.vm.add_args('-device', 'virtio-rng-pci,rng=rng0')
> + self.vm.add_args('-object',
> 'rng-random,id=rng0,filename=/dev/urandom')
> +
> + self.vm.launch()
> + wait_for_console_pattern(self, 'Welcome to Alpine Linux 3.17')
> +
This seems to get to grub before hanging:
2023-03-03 11:35:53,696 protocol L0495 DEBUG| Transitioning from
'Runstate.CONNECTING' to 'Runstate.RUNNING'.
2023-03-03 11:35:53,700 __init__ L0153 DEBUG| NOTICE: Booting
Trusted Firmware
2023-03-03 11:35:53,700 __init__ L0153 DEBUG| NOTICE: BL1:
v2.8(release):v2.8-335-g6264643a0
2023-03-03 11:35:53,700 __init__ L0153 DEBUG| NOTICE: BL1: Built :
17:51:50, Feb 8 2023
2023-03-03 11:35:53,703 __init__ L0153 DEBUG| NOTICE: BL1: Booting
BL2
2023-03-03 11:35:53,707 __init__ L0153 DEBUG| NOTICE: BL2:
v2.8(release):v2.8-335-g6264643a0
2023-03-03 11:35:53,707 __init__ L0153 DEBUG| NOTICE: BL2: Built :
17:51:50, Feb 8 2023
2023-03-03 11:35:53,722 __init__ L0153 DEBUG| NOTICE: BL1: Booting
BL31
2023-03-03 11:35:53,727 __init__ L0153 DEBUG| NOTICE: BL31:
v2.8(release):v2.8-335-g6264643a0
2023-03-03 11:35:53,727 __init__ L0153 DEBUG| NOTICE: BL31: Built :
17:51:50, Feb 8 2023
2023-03-03 11:35:53,732 __init__ L0153 DEBUG| UEFI firmware (version
1.0 built at 16:17:37 on Feb 9 2023)
2023-03-03 11:35:57,556 __init__ L0153 DEBUG|
ESC[2JESC[04DESC[=3hESC[2JESC[09DESC[0mESC[30mESC[47mWelcome to GRUB!
2023-03-03 11:35:57,599 __init__ L0153 DEBUG|
ESC[0mESC[37mESC[40mESC[0mESC[30mESC[40mESC[2JESC[01;01HESC[0mESC[37mESC[40mESC[02;30HGNU
GRUB version 2.06
2023-03-03 11:35:57,624 __init__ L0153 DEBUG|
ESC[01C/----------------------------------------------------------------------------\ESC[05;02H|ESC[76C|ESC[06;02H|ESC[76C|ESC[07;02H|ESC[76C|ESC[08;02H|ESC[76C|ESC[09;02H|ESC[76C|ESC[10;02H|ESC[76C|ESC[11;02H|ESC[76C|ESC[12;02H|ESC[76C|ESC[13;02H|ESC[76C|ESC[14;02H|ESC[76C|ESC[15;02H|ESC[76C|ESC[16;02H|ESC[76C|ESC[17;02H|ESC[76C|ESC[18;02H\----------------------------------------------------------------------------/ESC[19;02HESC[20;02H
Use the ^ and v keys to select which entry is highlighted.
2023-03-03 11:35:57,628 __init__ L0153 DEBUG| Press enter to boot the
selected OS, `e' to edit the commands
2023-03-03 11:35:57,632 __init__ L0153 DEBUG| before booting or `c'
for a command-line. ESC[05;80H
2023-03-03 11:35:57,698 __init__ L0153 DEBUG|
ESC[0mESC[30mESC[47mESC[05;03H*Linux lts
ESC[0mESC[37mESC[40mESC[01DESC[06;03H
ESC[01DESC[07;03H
ESC[01DESC[08;03H
ESC[01DESC[09;03H
ESC[01DESC[10;03H
ESC[01DESC[11;03H
ESC[01DESC[12;03H
ESC[01DESC[13;03H
ESC[01DESC[14;03H
ESC[01DESC[15;03H
ESC[01DESC[16;03H
ESC[01D
ESC[17;03H
ESC[01DESC[02C
2023-03-03 11:35:58,724 __init__ L0153 DEBUG| ESC[05;78HESC[23;01H
The highlighted entry will be executed automatically in 1s.
ESC[05;78HESC[23;01H The highlighted entry will be executed automatically in
0s.
ESC[05;78HESC[0mESC[30mESC[40mESC[2JESC[01;01HESC[0mESC[37mESC[40mESC[0mESC[30mESC[40mESC[2J
ESC[04DESC[0mESC[37mESC[40m Booting `Linux lts'
2023-03-03 11:37:51,367 stacktrace L0039 ERROR|
2023-03-03 11:37:51,368 stacktrace L0041 ERROR| Reproduced traceback
from:
/home/alex/lsrc/qemu.git/builds/arm.all/tests/venv/lib/python3.9/site-packages/avocado/core/test.py:770
2023-03-03 11:37:51,368 stacktrace L0045 ERROR| Traceback (most recent
call last):
2023-03-03 11:37:51,368 stacktrace L0045 ERROR| File
"/home/alex/lsrc/qemu.git/builds/arm.all/tests/avocado/machine_aarch64_sbsaref.py",
line 178, in test_alpine_sbsaref_max
--
Alex Bennée
Virtualisation Tech Lead @ Linaro