From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0867CC43603 for ; Wed, 18 Dec 2019 21:22:41 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AA8A12176D for ; Wed, 18 Dec 2019 21:22:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="q79xBpfa" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AA8A12176D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:60866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihgmF-0005TZ-SS for qemu-devel@archiver.kernel.org; Wed, 18 Dec 2019 16:22:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49087) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihgl3-0004dW-IV for qemu-devel@nongnu.org; Wed, 18 Dec 2019 16:21:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihgl1-0000tt-6T for qemu-devel@nongnu.org; Wed, 18 Dec 2019 16:21:25 -0500 Received: from mail-il1-x12b.google.com ([2607:f8b0:4864:20::12b]:32790) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ihgl0-0000tb-Vh; Wed, 18 Dec 2019 16:21:23 -0500 Received: by mail-il1-x12b.google.com with SMTP id v15so2979358iln.0; Wed, 18 Dec 2019 13:21:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eYOQYD7N468B9qLiuc+fIol2HVdnn3O8hnxJaHLAR74=; b=q79xBpfa6sMS3V6cd4FV5Gr3IhTdrdVLHJ9ywxwepUVH3mk7lAwFjgHSA2RiLttoLb al87Mf00mz2U0HtNnIZkIYxdGzGXaRUXtti65ohi5muYPWEMgIoKdCHSV0UtR/8QrUQx F7SIIlWLmPZBsD/SVSyGxXO16CRvQJzNiOZ30fpW1q1oj0AxXqOwSDbKeDwJVR9Tm7p/ noasGN4FxAiYa5ptWdfMzQSkHrohaMqB0pvv64R+9dNOmIz7q+arvN8Pcpb+pFUBXYKj fsBZvNxTsmgmPwU73FMEJkj32fVtN+X8Y3p5fcNPr/op6wpFEII+zbwwYKcskpjAgLuB LpbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eYOQYD7N468B9qLiuc+fIol2HVdnn3O8hnxJaHLAR74=; b=RKa86a+ol+KVhR/qPSpklfnX6xBf4iIvLkJhdzNI7C30e+gwAP7Be6pA5sdf7mbE+A G7h1FT9R9jlI3vjsAVpXbOY/VWAmRi5SQ9zMJesvDP8rJPewJw6BPXxPlLuizds8ra5D /PYxyUC86/5qImpS44fNaRrd9D9y1pUNxTMbtB1p4Ju3lj3t4OkfpD8cuuntECvcH8Qz hRLrvG/oDXsg8nI4EzME+CzF8M5s+KikoACWnM1ssGb0EnbcXCIERyS5d7GpJAk9W9n4 2cXrwyG3y5nbi0o++kry0OPqGBfa0+1GtjMNIxBLgarnI9CMB0cgQWzGLTXbzggj3a7D CqWA== X-Gm-Message-State: APjAAAX+h8iDJWBK80GW+D/8q9tO30q2jjNhlbnP3t+HIYy5PXepgWjT 6ATjCz8L6snlUe0d1lyCBi+u8NBxTol/QKvuZ7U= X-Google-Smtp-Source: APXvYqzrtrtEHZP/g8KDI3c8WeSDu5eweQ24GxMBopYnuGgnXkdZnv3ACKG/q5U9LqMinHJbVb4yxYg0xxpAEDeO5f4= X-Received: by 2002:a92:a103:: with SMTP id v3mr3372445ili.265.1576704082031; Wed, 18 Dec 2019 13:21:22 -0800 (PST) MIME-Version: 1.0 References: <20191217182730.943-1-f4bug@amsat.org> <20191217182730.943-3-f4bug@amsat.org> In-Reply-To: <20191217182730.943-3-f4bug@amsat.org> From: Niek Linnenbank Date: Wed, 18 Dec 2019 22:21:11 +0100 Message-ID: Subject: Re: [PATCH 2/5] tests/boot_linux_console: Add initrd test for the Orange Pi PC board To: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= Content-Type: multipart/alternative; boundary="000000000000b9bbe2059a010660" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::12b X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , QEMU Developers , qemu-arm , Cleber Rosa , =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= , Guenter Roeck Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --000000000000b9bbe2059a010660 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This one also works fine on my host (Ubuntu 18.04 LTS): Tested-by: Niek Linnenbank On Tue, Dec 17, 2019 at 7:27 PM Philippe Mathieu-Daud=C3=A9 wrote: > This test boots a Linux kernel on a OrangePi PC board and verify > the serial output is working. > > The kernel image and DeviceTree blob are built by the Raspbian > project (based on Debian): > https://www.raspbian.org/RaspbianImages > > The cpio image used comes from the linux-build-test project: > https://github.com/groeck/linux-build-test > > If ARM is a target being built, "make check-acceptance" will > automatically include this test by the use of the "arch:arm" tags. > > Alternatively, this test can be run using: > > $ avocado --show=3Dconsole run -t machine:orangepi-pc > tests/acceptance/boot_linux_console.py > console: Uncompressing Linux... done, booting the kernel. > console: Booting Linux on physical CPU 0x0 > console: Linux version 4.20.7-sunxi (root@armbian.com) (gcc version > 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #5.75 SMP Fri Feb 8 09:02:10 CET > 2019 > console: CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=3D50c53= 87d > console: CPU: div instructions available: patching division code > console: CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing > instruction cache > console: OF: fdt: Machine model: Xunlong Orange Pi PC > [...] > console: Trying to unpack rootfs image as initramfs... > console: Freeing initrd memory: 3256K > console: Freeing unused kernel memory: 1024K > console: Run /init as init process > console: mount: mounting devtmpfs on /dev failed: Device or resource bu= sy > console: Starting logging: OK > console: Initializing random number generator... random: dd: > uninitialized urandom read (512 bytes read) > console: done. > console: Starting network: OK > console: Found console ttyS0 > console: Linux version 4.20.7-sunxi (root@armbian.com) (gcc version > 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #5.75 SMP Fri Feb 8 09:02:10 CET > 2019 > console: Boot successful. > console: cat /proc/cpuinfo > console: / # cat /proc/cpuinfo > console: processor : 0 > console: model name : ARMv7 Processor rev 5 (v7l) > console: BogoMIPS : 125.00 > console: Features : half thumb fastmult vfp edsp neon vfpv3 tls > vfpv4 idiva idivt vfpd32 lpae evtstrm > console: CPU implementer : 0x41 > console: CPU architecture: 7 > console: CPU variant : 0x0 > console: CPU part : 0xc07 > console: CPU revision : 5 > [...] > console: processor : 3 > console: model name : ARMv7 Processor rev 5 (v7l) > console: BogoMIPS : 125.00 > console: Features : half thumb fastmult vfp edsp neon vfpv3 tls > vfpv4 idiva idivt vfpd32 lpae evtstrm > console: CPU implementer : 0x41 > console: CPU architecture: 7 > console: CPU variant : 0x0 > console: CPU part : 0xc07 > console: CPU revision : 5 > console: Hardware : Allwinner sun8i Family > console: Revision : 0000 > console: Serial : 0000000000000000 > console: cat /proc/iomem > console: / # cat /proc/iomem > console: 01000000-010fffff : clock@1000000 > console: 01c00000-01c00fff : system-control@1c00000 > console: 01c02000-01c02fff : dma-controller@1c02000 > [...] > console: reboot > console: / # reboot > console: / # Found console ttyS0 > console: Stopping network: OK > console: hrtimer: interrupt took 21852064 ns > console: Saving random seed... random: dd: uninitialized urandom read > (512 bytes read) > console: done. > console: Stopping logging: OK > console: umount: devtmpfs busy - remounted read-only > console: umount: can't unmount /: Invalid argument > console: The system is going down NOW! > console: Sent SIGTERM to all processes > console: Sent SIGKILL to all processes > console: Requesting system reboot > console: reboot: Restarting system > PASS (48.32 s) > JOB TIME : 49.16 s > > Signed-off-by: Philippe Mathieu-Daud=C3=A9 > --- > tests/acceptance/boot_linux_console.py | 41 ++++++++++++++++++++++++++ > 1 file changed, 41 insertions(+) > > diff --git a/tests/acceptance/boot_linux_console.py > b/tests/acceptance/boot_linux_console.py > index 820239e439..daabd47404 100644 > --- a/tests/acceptance/boot_linux_console.py > +++ b/tests/acceptance/boot_linux_console.py > @@ -437,6 +437,47 @@ class BootLinuxConsole(Test): > console_pattern =3D 'Kernel command line: %s' % kernel_command_l= ine > self.wait_for_console_pattern(console_pattern) > > + def test_arm_orangepi_initrd(self): > + """ > + :avocado: tags=3Darch:arm > + :avocado: tags=3Dmachine:orangepi-pc > + """ > + deb_url =3D ('https://apt.armbian.com/pool/main/l/' > + > 'linux-4.20.7-sunxi/linux-image-dev-sunxi_5.75_armhf.deb') > + deb_hash =3D '1334c29c44d984ffa05ed10de8c3361f33d78315' > + deb_path =3D self.fetch_asset(deb_url, asset_hash=3Ddeb_hash) > + kernel_path =3D self.extract_from_deb(deb_path, > + '/boot/vmlinuz-4.20.7-sunxi'= ) > + dtb_path =3D > '/usr/lib/linux-image-dev-sunxi/sun8i-h3-orangepi-pc.dtb' > + dtb_path =3D self.extract_from_deb(deb_path, dtb_path) > + initrd_url =3D ('https://github.com/groeck/linux-build-test/raw/= ' > + '2eb0a73b5d5a28df3170c546ddaaa9757e1e0848/rootfs/' > + 'arm/rootfs-armv7a.cpio.gz') > + initrd_hash =3D '604b2e45cdf35045846b8bbfbf2129b1891bdc9c' > + initrd_path_gz =3D self.fetch_asset(initrd_url, > asset_hash=3Dinitrd_hash) > + initrd_path =3D os.path.join(self.workdir, 'rootfs.cpio') > + archive.gzip_uncompress(initrd_path_gz, initrd_path) > + > + self.vm.set_machine('orangepi-pc') > + self.vm.set_console() > + kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE + > + 'console=3DttyS0,115200 ' > + 'panic=3D-1 noreboot') > + self.vm.add_args('-kernel', kernel_path, > + '-dtb', dtb_path, > + '-initrd', initrd_path, > + '-append', kernel_command_line, > + '-no-reboot') > + self.vm.launch() > + self.wait_for_console_pattern('Boot successful.') > + > + exec_command_and_wait_for_pattern(self, 'cat /proc/cpuinfo', > + 'Allwinner sun8i Family'= ) > + exec_command_and_wait_for_pattern(self, 'cat /proc/iomem', > + 'system-control@1c00000'= ) > + exec_command_and_wait_for_pattern(self, 'reboot', > + 'reboot: Restarting > system') > + > def test_s390x_s390_ccw_virtio(self): > """ > :avocado: tags=3Darch:s390x > -- > 2.21.0 > > --=20 Niek Linnenbank --000000000000b9bbe2059a010660 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This one also works fine on my host (Ubuntu 18.04 LTS= ):

=C2=A0 Tested-by: Niek Linnenbank <nieklinnenbank@gmail.com>

On= Tue, Dec 17, 2019 at 7:27 PM Philippe Mathieu-Daud=C3=A9 <f4bug@amsat.org> wrote:
This test boots a Linux kernel on a Or= angePi PC board and verify
the serial output is working.

The kernel image and DeviceTree blob are built by the Raspbian
project (based on Debian):
https://www.raspbian.org/RaspbianImages

The cpio image used comes from the linux-build-test project:
https://github.com/groeck/linux-build-test

If ARM is a target being built, "make check-acceptance" will
automatically include this test by the use of the "arch:arm" tags= .

Alternatively, this test can be run using:

=C2=A0 $ avocado --show=3Dconsole run -t machine:orangepi-pc tests/acceptan= ce/boot_linux_console.py
=C2=A0 console: Uncompressing Linux... done, booting the kernel.
=C2=A0 console: Booting Linux on physical CPU 0x0
=C2=A0 console: Linux version 4.20.7-sunxi (root@armbian.com) (gcc version 7.2.1 20171011 (L= inaro GCC 7.2-2017.11)) #5.75 SMP Fri Feb 8 09:02:10 CET 2019
=C2=A0 console: CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=3D50= c5387d
=C2=A0 console: CPU: div instructions available: patching division code
=C2=A0 console: CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing inst= ruction cache
=C2=A0 console: OF: fdt: Machine model: Xunlong Orange Pi PC
=C2=A0 [...]
=C2=A0 console: Trying to unpack rootfs image as initramfs...
=C2=A0 console: Freeing initrd memory: 3256K
=C2=A0 console: Freeing unused kernel memory: 1024K
=C2=A0 console: Run /init as init process
=C2=A0 console: mount: mounting devtmpfs on /dev failed: Device or resource= busy
=C2=A0 console: Starting logging: OK
=C2=A0 console: Initializing random number generator... random: dd: uniniti= alized urandom read (512 bytes read)
=C2=A0 console: done.
=C2=A0 console: Starting network: OK
=C2=A0 console: Found console ttyS0
=C2=A0 console: Linux version 4.20.7-sunxi (root@armbian.com) (gcc version 7.2.1 20171011 (L= inaro GCC 7.2-2017.11)) #5.75 SMP Fri Feb 8 09:02:10 CET 2019
=C2=A0 console: Boot successful.
=C2=A0 console: cat /proc/cpuinfo
=C2=A0 console: / # cat /proc/cpuinfo
=C2=A0 console: processor=C2=A0 =C2=A0 =C2=A0 : 0
=C2=A0 console: model name=C2=A0 =C2=A0 =C2=A0: ARMv7 Processor rev 5 (v7l)=
=C2=A0 console: BogoMIPS=C2=A0 =C2=A0 =C2=A0 =C2=A0: 125.00
=C2=A0 console: Features=C2=A0 =C2=A0 =C2=A0 =C2=A0: half thumb fastmult vf= p edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
=C2=A0 console: CPU implementer=C2=A0 =C2=A0 =C2=A0 =C2=A0 : 0x41
=C2=A0 console: CPU architecture: 7
=C2=A0 console: CPU variant=C2=A0 =C2=A0 : 0x0
=C2=A0 console: CPU part=C2=A0 =C2=A0 =C2=A0 =C2=A0: 0xc07
=C2=A0 console: CPU revision=C2=A0 =C2=A0: 5
=C2=A0 [...]
=C2=A0 console: processor=C2=A0 =C2=A0 =C2=A0 : 3
=C2=A0 console: model name=C2=A0 =C2=A0 =C2=A0: ARMv7 Processor rev 5 (v7l)=
=C2=A0 console: BogoMIPS=C2=A0 =C2=A0 =C2=A0 =C2=A0: 125.00
=C2=A0 console: Features=C2=A0 =C2=A0 =C2=A0 =C2=A0: half thumb fastmult vf= p edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
=C2=A0 console: CPU implementer=C2=A0 =C2=A0 =C2=A0 =C2=A0 : 0x41
=C2=A0 console: CPU architecture: 7
=C2=A0 console: CPU variant=C2=A0 =C2=A0 : 0x0
=C2=A0 console: CPU part=C2=A0 =C2=A0 =C2=A0 =C2=A0: 0xc07
=C2=A0 console: CPU revision=C2=A0 =C2=A0: 5
=C2=A0 console: Hardware=C2=A0 =C2=A0 =C2=A0 =C2=A0: Allwinner sun8i Family=
=C2=A0 console: Revision=C2=A0 =C2=A0 =C2=A0 =C2=A0: 0000
=C2=A0 console: Serial=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: 0000000000000000<= br> =C2=A0 console: cat /proc/iomem
=C2=A0 console: / # cat /proc/iomem
=C2=A0 console: 01000000-010fffff : clock@1000000
=C2=A0 console: 01c00000-01c00fff : system-control@1c00000
=C2=A0 console: 01c02000-01c02fff : dma-controller@1c02000
=C2=A0 [...]
=C2=A0 console: reboot
=C2=A0 console: / # reboot
=C2=A0 console: / # Found console ttyS0
=C2=A0 console: Stopping network: OK
=C2=A0 console: hrtimer: interrupt took 21852064 ns
=C2=A0 console: Saving random seed... random: dd: uninitialized urandom rea= d (512 bytes read)
=C2=A0 console: done.
=C2=A0 console: Stopping logging: OK
=C2=A0 console: umount: devtmpfs busy - remounted read-only
=C2=A0 console: umount: can't unmount /: Invalid argument
=C2=A0 console: The system is going down NOW!
=C2=A0 console: Sent SIGTERM to all processes
=C2=A0 console: Sent SIGKILL to all processes
=C2=A0 console: Requesting system reboot
=C2=A0 console: reboot: Restarting system
=C2=A0 PASS (48.32 s)
=C2=A0 JOB TIME=C2=A0 =C2=A0: 49.16 s

Signed-off-by: Philippe Mathieu-Daud=C3=A9 <philmd@redhat.com>
---
=C2=A0tests/acceptance/boot_linux_console.py | 41 +++++++++++++++++++++++++= +
=C2=A01 file changed, 41 insertions(+)

diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot= _linux_console.py
index 820239e439..daabd47404 100644
--- a/tests/acceptance/boot_linux_console.py
+++ b/tests/acceptance/boot_linux_console.py
@@ -437,6 +437,47 @@ class BootLinuxConsole(Test):
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0console_pattern =3D 'Kernel command l= ine: %s' % kernel_command_line
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0self.wait_for_console_pattern(console_pat= tern)

+=C2=A0 =C2=A0 def test_arm_orangepi_initrd(self):
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 """
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 :avocado: tags=3Darch:arm
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 :avocado: tags=3Dmachine:orangepi-pc
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 """
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 deb_url =3D ('https://apt.armbi= an.com/pool/main/l/'
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'= linux-4.20.7-sunxi/linux-image-dev-sunxi_5.75_armhf.deb')
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 deb_hash =3D '1334c29c44d984ffa05ed10de8c3= 361f33d78315'
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 deb_path =3D self.fetch_asset(deb_url, asset_h= ash=3Ddeb_hash)
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 kernel_path =3D self.extract_from_deb(deb_path= ,
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 '/boot/vmlinuz-4.20.7-sunxi')
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 dtb_path =3D '/usr/lib/linux-image-dev-sun= xi/sun8i-h3-orangepi-pc.dtb'
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 dtb_path =3D self.extract_from_deb(deb_path, d= tb_path)
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 initrd_url =3D ('htt= ps://github.com/groeck/linux-build-test/raw/'
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 '2eb0a73b5d5a28df3170c546ddaaa9757e1e0848/rootfs/'
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 'arm/rootfs-armv7a.cpio.gz')
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 initrd_hash =3D '604b2e45cdf35045846b8bbfb= f2129b1891bdc9c'
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 initrd_path_gz =3D self.fetch_asset(initrd_url= , asset_hash=3Dinitrd_hash)
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 initrd_path =3D os.path.join(self.workdir, = 9;rootfs.cpio')
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 archive.gzip_uncompress(initrd_path_gz, initrd= _path)
+
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 self.vm.set_machine('orangepi-pc')
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 self.vm.set_console()
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 kernel_command_line =3D (self.KERNEL_COMMON_CO= MMAND_LINE +
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'console=3DttyS0,115200 '
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'panic=3D-1 noreboot')
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 self.vm.add_args('-kernel', kernel_pat= h,
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0'-dtb', dtb_path,
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0'-initrd', initrd_path,
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0'-append', kernel_command_line,
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0'-no-reboot')
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 self.vm.launch()
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 self.wait_for_console_pattern('Boot succes= sful.')
+
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 exec_command_and_wait_for_pattern(self, 'c= at /proc/cpuinfo',
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 'Allwinner sun8i Family')
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 exec_command_and_wait_for_pattern(self, 'c= at /proc/iomem',
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 'system-control@1c00000')
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 exec_command_and_wait_for_pattern(self, 'r= eboot',
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 'reboot: Restarting system')
+
=C2=A0 =C2=A0 =C2=A0def test_s390x_s390_ccw_virtio(self):
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"""
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:avocado: tags=3Darch:s390x
--
2.21.0



--
Niek Linnenbank

--000000000000b9bbe2059a010660--