From nobody Thu Nov 13 18:08:16 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=amsat.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1581794709358591.0953717384454; Sat, 15 Feb 2020 11:25:09 -0800 (PST) Received: from localhost ([::1]:53906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j333s-0000ME-4C for importer@patchew.org; Sat, 15 Feb 2020 14:25:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36445) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j331H-00048m-3a for qemu-devel@nongnu.org; Sat, 15 Feb 2020 14:22:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j331F-0000xM-Vl for qemu-devel@nongnu.org; Sat, 15 Feb 2020 14:22:27 -0500 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]:33902) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j331F-0000wI-OJ for qemu-devel@nongnu.org; Sat, 15 Feb 2020 14:22:25 -0500 Received: by mail-ed1-x541.google.com with SMTP id r18so15484541edl.1 for ; Sat, 15 Feb 2020 11:22:25 -0800 (PST) Received: from localhost.localdomain (78.red-88-21-202.staticip.rima-tde.net. [88.21.202.78]) by smtp.gmail.com with ESMTPSA id a24sm657128ejt.40.2020.02.15.11.22.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Feb 2020 11:22:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1Vyu9OnmWLRZk34xoTCmZmRuvcPUbomKmqmGWzA039U=; b=EKgFpt8vK68yhgmHOlXXi7COP6KaADvMvoM1xcvkzpNoFmPZ7lvdhjANri/X5gdNUs 0QOrFwv9WXKvq+JO/D30P0/9sDZuc5w1UHYfPjAmOTELvwJuNGgVyd/kMNY6DFNntiDb uf2HFuaUOFlIT93xNNd9f42rSKle4oxIlPBXpLn5S6GJsrZVLjRp0vCJfPz0Thy9oa73 LuUrefxZ7vrs8oRtCMMVw1RsyYpV+qldidFm4QQLP+BfnIY+Ap8rSnGii/wEE4IGaC3y A+A9hgJCwRKQQdvaZaZDd6HZdb2foFxTgrsh1J+14d14nDqUuZG1AMYr0cEPWv0IbBC9 b8vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=1Vyu9OnmWLRZk34xoTCmZmRuvcPUbomKmqmGWzA039U=; b=EqAMWVG8it9XEjrdaPcb8iZLTexpnmJuupeA9eK/pFs13w5/gK7XTvhpnsqjneGsv3 V8pVJhN8BQkHAGjkrCJxtRC2erSJVlZiRB3yoDEWTyO9JG3u7RQ1+ojKTMp2c8BR3yJb icp6KLhVKUfPNvjCUELKAuwtGX9VX1tQYSZGUebKVYZ0WjsI2fu41bwnxAc2hy9YNK/w kg5Pw+/8amMz8AOONIckckleSlgzd+hz1n/aDeokRlc7puO9Ofbo6hAB2j/0N4mTH2jU CLaMQYQDW2hVB7SNm802fgHf0rhVbGoFqdPZWeUPCPOfm+lC1KFmKTnvKEWRJjWQ1S4h WssA== X-Gm-Message-State: APjAAAWPk0zwUOju1fjSSEmeV0xdPRZIRQF6agMe7C7egSU8yLn7K1we ylmZKtYXj0Cs5l2P7mPC2Y7gVZWK8j0= X-Google-Smtp-Source: APXvYqx0yOlFtVdwLa0GhSdeaLOAssFshLn0AZcXBbOZuVCkTdWsgRZQXC528ylHpPtodyF4+wuvQQ== X-Received: by 2002:a17:906:3746:: with SMTP id e6mr8694432ejc.165.1581794544602; Sat, 15 Feb 2020 11:22:24 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 4/8] tests/acceptance/boot_linux_console: Test the raspi0 console Date: Sat, 15 Feb 2020 20:22:12 +0100 Message-Id: <20200215192216.4899-5-f4bug@amsat.org> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200215192216.4899-1-f4bug@amsat.org> References: <20200215192216.4899-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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::541 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 , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Andrew Baumann , Igor Mammedov Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) $ avocado --show=3Dapp,console run -t machine:raspi0 tests/acceptance/ JOB ID : af8e017486290758bff39c986934134199af3556 JOB LOG : avocado/job-results/job-2020-02-05T23.53-af8e017/job.log (1/1) tests/acceptance/boot_linux_console.py:BootLinuxConsole.test_arm_r= aspi0_uart0: console: [ 0.000000] Booting Linux on physical CPU 0x0 console: [ 0.000000] Linux version 4.14.98+ (dom@dom-XPS-13-9370) (gcc= version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1200 Tue Fe= b 12 20:11:02 GMT 2019 console: [ 0.000000] CPU: ARMv6-compatible processor [410fb767] revisi= on 7 (ARMv7), cr=3D00c5387d console: [ 0.000000] CPU: VIPT aliasing data cache, unknown instructio= n cache console: [ 0.000000] OF: fdt: Machine model: Raspberry Pi Zero W console: [ 0.000000] earlycon: pl11 at MMIO 0x20201000 (options '') console: [ 0.000000] bootconsole [pl11] enabled console: [ 0.000000] Memory policy: Data cache writeback console: [ 0.000000] cma: Reserved 8 MiB at 0x1b800000 console: [ 0.000000] Built 1 zonelists, mobility grouping on. Total p= ages: 113680 console: [ 0.000000] Kernel command line: printk.time=3D0 earlycon=3Dp= l011,0x20201000 console=3DttyAMA0 PASS (12.59 s) RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | = CANCEL 0 JOB TIME : 12.88 s Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Luc Michel --- tests/acceptance/boot_linux_console.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot= _linux_console.py index c8eabae695..bd3f0fc852 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -355,15 +355,18 @@ def do_test_arm_raspi(self, version, uart_model): """ serial_kernel_cmdline =3D { 'pl011': { + 0: 'earlycon=3Dpl011,0x20201000 console=3DttyAMA0', 1: 'earlycon=3Dpl011,0x20201000 console=3DttyAMA0', 2: 'earlycon=3Dpl011,0x3f201000 console=3DttyAMA0', }, } kernel =3D { + 0: '/boot/kernel.img', 1: '/boot/kernel.img', 2: '/boot/kernel7.img', } dtb =3D { + 0: '/boot/bcm2708-rpi-0-w.dtb', 1: '/boot/bcm2708-rpi-b.dtb', 2: '/boot/bcm2709-rpi-2-b.dtb', } @@ -385,6 +388,15 @@ def do_test_arm_raspi(self, version, uart_model): console_pattern =3D 'Kernel command line: %s' % kernel_command_line self.wait_for_console_pattern(console_pattern) =20 + def test_arm_raspi0_uart0(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dmachine:raspi0 + :avocado: tags=3Dcpu:arm1176 + :avocado: tags=3Ddevice:pl011 + """ + self.do_test_arm_raspi(0, 'pl011') + def test_arm_raspi1_uart0(self): """ :avocado: tags=3Darch:arm --=20 2.21.1