From nobody Fri Apr 26 19:12:08 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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 (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1568133665; cv=none; d=zoho.com; s=zohoarc; b=mOhbkZJjKSwitvqo1gE0t852HBazq3dByPPKGSk9HXD7DJt2CM+Z5ffVDMyKKVVAsMYRdMqJ7m+HGoU94KIzh6nOwTYfpy7jL3w2Hi8ApZnZtlxddgDr/azqFVmOtRRbIgGIpqMuhwDljPkTTH86h2fNpsrYeLQ0sjL6M0vdeK8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1568133665; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=PuYQXXa8eH65VFX6y4yqzMNFSFws0dtOs5XP+jiIGuo=; b=AKFNRB3SUdEKR1aKyof21fjJiq3mxsJE3SavKTkQPMqhnwWnN066//kXfoJHseJ7FHSF54QEh2rnwjjfgYSvMCyQEHbfot+oPKmnf3ZW3BXe0pKx/R3qJxbU3X5VU/93oYgdMtSo2YL06A9P9AXlWoDI0KsfE1724WoQe6jzFIQ= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1568133665243373.54417070185445; Tue, 10 Sep 2019 09:41:05 -0700 (PDT) Received: from localhost ([::1]:42982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7jCQ-0000bE-Cl for importer@patchew.org; Tue, 10 Sep 2019 12:41:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50947) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7j6D-0002b2-AI for qemu-devel@nongnu.org; Tue, 10 Sep 2019 12:34:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7j6B-0000Bg-51 for qemu-devel@nongnu.org; Tue, 10 Sep 2019 12:34:36 -0400 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:44697) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i7j6A-00006n-Bg for qemu-devel@nongnu.org; Tue, 10 Sep 2019 12:34:34 -0400 Received: by mail-wr1-x442.google.com with SMTP id k6so9191620wrn.11 for ; Tue, 10 Sep 2019 09:34:34 -0700 (PDT) Received: from localhost.localdomain (251.red-88-10-102.dynamicip.rima-tde.net. [88.10.102.251]) by smtp.gmail.com with ESMTPSA id w12sm27606354wrg.47.2019.09.10.09.34.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2019 09:34:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PuYQXXa8eH65VFX6y4yqzMNFSFws0dtOs5XP+jiIGuo=; b=MVjVp8OrHETo7rDsV8fku008L3U+6q8Gp8FvAQAKoB2uAGMA68ciuVB2QAxUH41R3L 4WENX7mzRcjuZZk6peFmGPrrBu1l+5Xwpkldet789jcfICONXg7F0cJ7uM0uQcwDtDwe jeQ/h20KRTxDO4RJ0wQXndWu1cOj8mtVz864cgrF5CoMGZDamFaCn/WO2E6pPbAkLmsN s1bSArgEC8AVjGZ1gFm0PmKFL4I0Qktjz0JP5r4KCLWjl0A9UPOznaWX+QEw2aDZet2j B2JcjGDLEXXriJEnP1W3fu/4glKV7TFV2tcXKldXARPtCsA5qLAseVtRsUc/LZfZaGTJ 7REg== 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 :mime-version:content-transfer-encoding; bh=PuYQXXa8eH65VFX6y4yqzMNFSFws0dtOs5XP+jiIGuo=; b=cBRG6iuC7LRl4fEQ+Wuog5A4UJSjkdEtVbcBBLWlwXknbnvgiV6kdA4hsDkafoFjmg SiyiDFV0d4cAXPgeE8XvT7J6dMuVwQxOXSFVRHTieNNkKheBAXEC+rll0r8tFDPDwlc1 xgr6BhLL3NhJjb41lUHeqQiwQUV10vJy4yIEdcVWQ1WeZ0XUvi06jx0lZSKgeqQnPp/O cUtj0CtFcWA403kQCPyZFcH2Eb4Gny/RlMW1VzYpxhCxSK1I+D4NCyiHUhxbYCMT/0l6 jVE3MCqOXtGe0SCc5S6w64aiXbeWQfAEcfspAOKgsLaIY90Kw0rw6lyeM88yR2h0S99X Hp0g== X-Gm-Message-State: APjAAAWY6lCqLoz1D96pTtr3fIjbBsvInDcla9J/RU5FKESkvv5eRUF7 fd4jRT10SXDBsMNOsVidfdM= X-Google-Smtp-Source: APXvYqyC9x9ycuvv7bEabETuPUzZmuXEjMFl2zVNw3PpdebKaLG8LFUrn7DsN+pjEIqfhs8vY4gtOg== X-Received: by 2002:a5d:628f:: with SMTP id k15mr12417104wru.124.1568133272645; Tue, 10 Sep 2019 09:34:32 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Laurent Vivier , qemu-devel@nongnu.org Date: Tue, 10 Sep 2019 18:34:30 +0200 Message-Id: <20190910163430.11326-1-f4bug@amsat.org> X-Mailer: git-send-email 2.20.1 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::442 Subject: [Qemu-devel] [PATCH] BootLinuxConsoleTest: Test the Quadra 800 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: Thomas Huth , Mark Cave-Ayland , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) This test boots a Linux kernel on a Quadra 800 board and verify the serial is working. Example: $ avocado --show=3Dapp,console run -t machine:q800 tests/acceptance/boot_= linux_console.py console: ABCFGHIJK console: Linux version 5.2.0-2-m68k (debian-kernel@lists.debian.org) (gcc= version 8.3.0 (Debian 8.3.0-21)) #1 Debian 5.2.9-2 (2019-08-21) console: Detected Macintosh model: 35 console: Apple Macintosh Quadra 800 console: Built 1 zonelists, mobility grouping on. Total pages: 32448 console: Kernel command line: printk.time=3D0 console=3DttyS0 vga=3Doff [...] console: Calibrating delay loop... 1236.99 BogoMIPS (lpj=3D6184960) [...] console: NuBus: Scanning NuBus slots. console: Slot 9: Board resource not found! console: SCSI subsystem initialized console: clocksource: Switched to clocksource via1 [...] console: macfb: framebuffer at 0xf9001000, mapped to 0x(ptrval), size 468k console: macfb: mode is 800x600x8, linelength=3D800 console: Console: switching to colour frame buffer device 100x37 console: fb0: DAFB frame buffer device console: pmac_zilog: 0.6 (Benjamin Herrenschmidt ) console: scc.0: ttyS0 at MMIO 0x50f0c022 (irq =3D 4, base_baud =3D 230400= ) is a Z85c30 ESCC - Serial port console: scc.1: ttyS1 at MMIO 0x50f0c020 (irq =3D 4, base_baud =3D 230400= ) is a Z85c30 ESCC - Serial port console: Non-volatile memory driver v1.3 console: adb: Mac II ADB Driver v1.0 for Unified ADB console: mousedev: PS/2 mouse device common for all mice console: random: fast init done console: Detected ADB keyboard, type . console: input: ADB keyboard as /devices/virtual/input/input0 console: input: ADB mouse as /devices/virtual/input/input1 console: rtc-generic rtc-generic: registered as rtc0 console: ledtrig-cpu: registered to indicate activity on CPUs [...] console: rtc-generic rtc-generic: setting system clock to 2019-09-10T16:2= 0:25 UTC (1568132425) console: List of all partitions: console: No filesystem could mount root, tried: JOB TIME : 2.91 s Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Cleber Rosa Reviewed-by: Laurent Vivier Tested-by: Cleber Rosa --- Based-on: <20190910113323.17324-1-laurent@vivier.eu> "hw/m68k: add Apple Machintosh Quadra 800 machine" https://lists.gnu.org/archive/html/qemu-devel/2019-09/msg01775.html --- tests/acceptance/boot_linux_console.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot= _linux_console.py index 2504ef0150..8e346bb0f4 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -373,3 +373,27 @@ class BootLinuxConsole(Test): self.vm.launch() console_pattern =3D 'Kernel command line: %s' % kernel_command_line self.wait_for_console_pattern(console_pattern) + + def test_m68k_q800(self): + """ + :avocado: tags=3Darch:m68k + :avocado: tags=3Dmachine:q800 + """ + deb_url =3D ('http://ftp.ports.debian.org/debian-ports/pool-m68k/m= ain' + '/l/linux/kernel-image-5.2.0-2-m68k-di_5.2.9-2_m68k.ude= b') + deb_hash =3D '0797e05129595f22f3c0142db5e199769a723bf9' + deb_path =3D self.fetch_asset(deb_url, asset_hash=3Ddeb_hash) + kernel_path =3D self.extract_from_deb(deb_path, + '/boot/vmlinux-5.2.0-2-m68k') + + self.vm.set_machine('q800') + self.vm.set_console() + kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE + + 'console=3DttyS0 vga=3Doff') + self.vm.add_args('-kernel', kernel_path, + '-append', kernel_command_line) + self.vm.launch() + console_pattern =3D 'Kernel command line: %s' % kernel_command_line + self.wait_for_console_pattern(console_pattern) + console_pattern =3D 'No filesystem could mount root' + self.wait_for_console_pattern(console_pattern) --=20 2.20.1