From nobody Thu Nov 13 23:40:11 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1583099948; cv=none; d=zohomail.com; s=zohoarc; b=HA2HlnIdO0sZJn6KfGgoYl34jF0+kosdlJv/Xh/wQt6VFBTt76jIZKaExLZMwqMl1jD8h4aAksE5m+2ec8aKBDCpWo67MP3VBw/Y77xpa76S4rO6jKT5bRigeZ2UBt1YcIHincueOGKDffUjPpELSyFeey436bW5lvq8Mnnmebo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583099948; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=FU9N2QwY0KBXx2FL+IQpwvRT5WjHXUfq+3rdC6n0pFg=; b=QsMdGJgYptQhyDL04G3VK5CDlU+Sh3KkGh3v/K/08ARs2C3IMtrTRTQs2isekVjpObI1wG20+uIT9OxIYqC2w2iX04alRuVS9oA196yI9CF46wrrVoYwJJeMstHVAyNKYUAQOvQUS7XuznuVSPbBsftttkJC4mhXjljxb3vzirw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1583099948791495.1547030531649; Sun, 1 Mar 2020 13:59:08 -0800 (PST) Received: from localhost ([::1]:52312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8Wc5-0007Sg-Ji for importer@patchew.org; Sun, 01 Mar 2020 16:59:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57865) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8WU8-0001Gl-4E for qemu-devel@nongnu.org; Sun, 01 Mar 2020 16:50:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j8WU6-0006VG-Am for qemu-devel@nongnu.org; Sun, 01 Mar 2020 16:50:52 -0500 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:55592) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j8WU6-0006Us-3F; Sun, 01 Mar 2020 16:50:50 -0500 Received: by mail-wm1-x344.google.com with SMTP id 6so608633wmi.5; Sun, 01 Mar 2020 13:50:49 -0800 (PST) Received: from pavilion.home ([2a02:a456:6be8:1:8edc:d4ff:fe8b:18b7]) by smtp.gmail.com with ESMTPSA id e8sm25033124wrr.69.2020.03.01.13.50.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Mar 2020 13:50:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FU9N2QwY0KBXx2FL+IQpwvRT5WjHXUfq+3rdC6n0pFg=; b=agDflG0URUJYxehXjEr0iQosRiRMDCZw1+VD1dpq9lEnyQb48Ph2XZ0YuvglX4yBkq 8skZYMDXt41LZqQ2u1KfycC7y+f3TjmsAjjMLLBy1HTN7IJP9QF7hrdp7KLG8Umm4moF eySO2krkiLI+WfQMxuBt2UDx7G7Y9OAg/FQOKmi85K7runH6AcuME4sR+TcH2Kj54WW8 qzSzea2G0sv6eAfywROOse4xZjnv9ZTKsfbGMEXIz2XVcK2/ZzpMwOuV9/qh4qiNciAB 4Txdg9Lq6Ywe9wYtvi6OZPavxbih8wEYJG++Z5gYoo+aD4Og+tl9BGp9OcVGW4uDaROJ JYeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FU9N2QwY0KBXx2FL+IQpwvRT5WjHXUfq+3rdC6n0pFg=; b=ScAgklgM5iwn4YDmJ2R2WDpmbd78uoWitoRLCYMDj495Th85Mca5mfXyUMA5mYxJ+1 OIEFmPvW3XvBZ9t9q2dLh2WMk+JtMufW0phptk30TJB65ilidqvo7eC6p5pmVESjyWWu ho4pWYebZUuFOAoDs27QeLTCtZKGGlfvQCWw5jTri/wVDLViHk8FU+3XXE0wjLPKMnz8 DCp0bOoJl3as7taHOhYBzehaU4jKtbCrQS11fMacv9+6idh+sqV3XgJcl/66Xgw3VCw7 TJ9K3PhYTFRGN6roLVCkeypL3EcyyRjIhh7XTt5LzGqJ3xBP7gVYXW6xm+1EP95lg15k 0j4w== X-Gm-Message-State: APjAAAXDac3K+5BO+RGJ4xIJnNZxS1a/Z/JbwsI4WlYSerslH6q93/P7 9eMcKz60eKMYi8Nnxw2BrbDvt/AL X-Google-Smtp-Source: APXvYqwiK6f0JOAi5keD7ZXNa906XVo7KAy4nYOFk6qmNPA2OErYWkik5eoynGdSjWjrC+soOp/WLw== X-Received: by 2002:a7b:c34f:: with SMTP id l15mr15849923wmj.103.1583099448722; Sun, 01 Mar 2020 13:50:48 -0800 (PST) From: Niek Linnenbank To: qemu-devel@nongnu.org Subject: [PATCH v6 15/18] tests/boot_linux_console: Add a SD card test for the OrangePi PC board Date: Sun, 1 Mar 2020 22:50:26 +0100 Message-Id: <20200301215029.15196-16-nieklinnenbank@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200301215029.15196-1-nieklinnenbank@gmail.com> References: <20200301215029.15196-1-nieklinnenbank@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::344 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@linaro.org, alex.bennee@linaro.org, jasowang@redhat.com, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , b.galvani@gmail.com, Niek Linnenbank , qemu-arm@nongnu.org, imammedo@redhat.com, philmd@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Philippe Mathieu-Daud=C3=A9 The kernel image and DeviceTree blob are built by the Armbian project (based on Debian): https://www.armbian.com/orange-pi-pc/ The SD image is from the kernelci.org project: https://kernelci.org/faq/#the-code 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/bo= ot_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=3D50c5387d [...] console: sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=3D16 sec, = nowayout=3D0) console: sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.2 console: sunxi-mmc 1c0f000.mmc: Got CD GPIO console: ledtrig-cpu: registered to indicate activity on CPUs console: hidraw: raw HID events driver (C) Jiri Kosina console: usbcore: registered new interface driver usbhid console: usbhid: USB HID core driver console: Initializing XFRM netlink socket console: sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB console: NET: Registered protocol family 10 console: mmc0: host does not support reading read-only switch, assuming w= rite-enable console: mmc0: Problem switching card into high-speed mode! console: mmc0: new SD card at address 4567 console: mmcblk0: mmc0:4567 QEMU! 60.0 MiB [...] console: EXT4-fs (mmcblk0): mounting ext2 file system using the ext4 subs= ystem console: EXT4-fs (mmcblk0): mounted filesystem without journal. Opts: (nu= ll) console: VFS: Mounted root (ext2 filesystem) on device 179:0. console: Run /sbin/init as init process console: EXT4-fs (mmcblk0): re-mounted. Opts: block_validity,barrier,user= _xattr,acl console: Starting syslogd: OK console: Starting klogd: OK console: Populating /dev using udev: udevd[203]: starting version 3.2.7 console: /bin/sh: can't access tty; job control turned off console: cat /proc/partitions console: / # cat /proc/partitions console: major minor #blocks name console: 1 0 4096 ram0 console: 1 1 4096 ram1 console: 1 2 4096 ram2 console: 1 3 4096 ram3 console: 179 0 61440 mmcblk0 console: reboot console: / # reboot console: umount: devtmpfs busy - remounted read-only console: EXT4-fs (mmcblk0): re-mounted. Opts: (null) 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 JOB TIME : 68.64 s Signed-off-by: Philippe Mathieu-Daud=C3=A9 [NL: rename in commit message Raspbian to Armbian, remove vm.set_machine()] Signed-off-by: Niek Linnenbank --- 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 dabc8ef2af..7ef69c7bac 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -572,6 +572,47 @@ class BootLinuxConsole(Test): exec_command_and_wait_for_pattern(self, 'reboot', 'reboot: Restarting system= ') =20 + def test_arm_orangepi_sd(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.de= b') + 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) + rootfs_url =3D ('http://storage.kernelci.org/images/rootfs/buildro= ot/' + 'kci-2019.02/armel/base/rootfs.ext2.xz') + rootfs_hash =3D '692510cb625efda31640d1de0a8d60e26040f061' + rootfs_path_xz =3D self.fetch_asset(rootfs_url, asset_hash=3Drootf= s_hash) + rootfs_path =3D os.path.join(self.workdir, 'rootfs.cpio') + archive.lzma_uncompress(rootfs_path_xz, rootfs_path) + + self.vm.set_console() + kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE + + 'console=3DttyS0,115200 ' + 'root=3D/dev/mmcblk0 rootwait rw ' + 'panic=3D-1 noreboot') + self.vm.add_args('-kernel', kernel_path, + '-dtb', dtb_path, + '-drive', 'file=3D' + rootfs_path + ',if=3Dsd,for= mat=3Draw', + '-append', kernel_command_line, + '-no-reboot') + self.vm.launch() + shell_ready =3D "/bin/sh: can't access tty; job control turned off" + self.wait_for_console_pattern(shell_ready) + + exec_command_and_wait_for_pattern(self, 'cat /proc/cpuinfo', + 'Allwinner sun8i Family') + exec_command_and_wait_for_pattern(self, 'cat /proc/partitions', + 'mmcblk0') + exec_command_and_wait_for_pattern(self, 'reboot', + 'reboot: Restarting system= ') + def test_s390x_s390_ccw_virtio(self): """ :avocado: tags=3Darch:s390x --=20 2.17.1