NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-prep/54346: NetBSD/prep does not work in qemu since NetBSD-4.0



>Number:         54346
>Category:       port-prep
>Synopsis:       NetBSD/prep does not work in qemu since NetBSD-4.0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-prep-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 06 06:50:00 +0000 2019
>Originator:     Kamil Rytarowski
>Release:        5.0 and newer (until 8.1)
>Organization:
TNF
>Environment:
QEMU emulator version 4.0.0
>Description:
NetBSD/prep 4.0 is the last version that boots and installs in Qemu 4.0.0.

Reported by upstream Qemu developers.
>How-To-Repeat:
Proposed patch that will probably land the upstream qemu repository.

Return-Path: <philippe.mathieu.daude%gmail.com@localhost>
Received: from mail.netbsd.org ([199.233.217.200]) by mx-ha.gmx.net (mxgmx113
 [212.227.17.4]) with ESMTPS (Nemesis) id 0LgMTA-1iInjw2YY0-00nhWZ for
 <n54%gmx.com@localhost>; Thu, 27 Jun 2019 13:02:25 +0200
Received: by mail.netbsd.org (Postfix)
	id B5CDD84D55; Thu, 27 Jun 2019 11:02:22 +0000 (UTC)
Delivered-To: kamil%netbsd.org@localhost
Received: from localhost (localhost [127.0.0.1])
	by mail.netbsd.org (Postfix) with ESMTP id B293C84CF1
	for <kamil%netbsd.org@localhost>; Thu, 27 Jun 2019 11:02:22 +0000 (UTC)
X-Virus-Scanned: amavisd-new at netbsd.org
Received: from mail.netbsd.org ([IPv6:::1])
	by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025)
	with ESMTP id olpS3KVTxGq5 for <kamil%netbsd.org@localhost>;
	Thu, 27 Jun 2019 11:02:22 +0000 (UTC)
Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by mail.netbsd.org (Postfix) with ESMTPS id C705284C85
	for <kamil%netbsd.org@localhost>; Thu, 27 Jun 2019 11:02:21 +0000 (UTC)
Received: by mail-wr1-x441.google.com with SMTP id p13so2020639wru.10
        for <kamil%netbsd.org@localhost>; Thu, 27 Jun 2019 04:02:21 -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:in-reply-to:references
         :mime-version:content-transfer-encoding;
        bh=jQnUw1BmzWMnlXfW7LCtb9pyPaLN7VGNxTThl1xshH4=;
        b=okvCFFyI/GD3UYTpUy2PezAIcSdUIVxUPzNHPeVjwCqwra3G0pOEYorV88rscei2ty
         5lrRwyJT3hLFzvZGeCD0376xzadqEATdlJufEUDKtZqzCcIT24d84Hsm+H+r4araXYvr
         yFzg+YWq+/5Z9EggXHFztXwolWuuIzQeTtDroH4VZ2ynao3Y6cW1v3eMcJ6UqA01Qz0L
         XaV1OdkgqgyHLTcedbS3lXmJwc6TXen9qcEaUUA9k/DQbY4Uo6pHVtaJ+DivPKgTaXoj
         LmBR7zsp2hpQ0Uh6rOAwEN0y0gtJp4gAGkN7q8yjXA4qT2CJtWyJK03xTL6J0ntSs+oc
         xu6A==
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=jQnUw1BmzWMnlXfW7LCtb9pyPaLN7VGNxTThl1xshH4=;
        b=aoPm5/g9+aLczJSDGYh8jF7db3a47tF7wsBj7346tTWUhx8xql4MMlBokmSRKXfiNW
         U1Nml1KyVnkiO60R+EznIINWPI1k/obuT0v89QUKe0RklAv1TE4iwuoIUlCaJCp0AW0k
         Gq/u1J+n+1VYufTwCX2q9N20O7lyiexnRB+Z8xqNHpBI7BuZAIJIPZZQfX8gqGtbkEDq
         8c4SW/XlViGLGNa8O0S0gNxvNdebsp2YihgkeY/5QpeZHMP09+TbTpRScDIRCmj/5HeW
         CE8Yk1gdeaa4fV9kDYtXPhTNgUUgxpWC8xJJf5FLhPzYv1ILbdHGMdSru5zjkyO59bk+
         XAJg==
X-Gm-Message-State: APjAAAWczqXAgnOZQoH3srbeLDJu/1uY3XYILAdN/v5KVw6cIKceg8Jz
	XFPVy+74akgwyVjffciGeso=
X-Google-Smtp-Source: APXvYqztIsSdVhuYPAGqQaOxxZQ5Cns3pvaVv8Wnbs2Qregw5hiu5BwkA0nID1yzDrulkjh4WUzEaQ==
X-Received: by 2002:adf:eb86:: with SMTP id t6mr2726356wrn.96.1561633340363;
        Thu, 27 Jun 2019 04:02:20 -0700 (PDT)
Received: from x1.local (183.red-88-21-202.staticip.rima-tde.net. [88.21.202.183])
        by smtp.gmail.com with ESMTPSA id y18sm6368968wmi.23.2019.06.27.04.02.10
        (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256);
        Thu, 27 Jun 2019 04:02:13 -0700 (PDT)
Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= <philippe.mathieu.daude%gmail.com@localhost>
From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= <f4bug%amsat.org@localhost>
To: qemu-devel%nongnu.org@localhost
Cc: Eduardo Habkost <ehabkost%redhat.com@localhost>,
	Fam Zheng <fam%euphon.net@localhost>,
	=?UTF-8?q?Herv=C3=A9=20Poussineau?= <hpoussin%reactos.org@localhost>,
	Thomas Huth <huth%tuxfamily.org@localhost>,
	=?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= <philmd%redhat.com@localhost>,
	Cleber Rosa <crosa%redhat.com@localhost>,
	=?UTF-8?q?Alex=20Benn=C3=A9e?= <alex.bennee%linaro.org@localhost>,
	Artyom Tarasenko <atar4qemu%gmail.com@localhost>,
	Kamil Rytarowski <kamil%netbsd.org@localhost>,
	Mark Cave-Ayland <mark.cave-ayland%ilande.co.uk@localhost>,
	=?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= <f4bug%amsat.org@localhost>
Subject: [PATCH 1/5] tests/acceptance: Add test that runs NetBSD installer on PRep/40p
Date: Thu, 27 Jun 2019 13:01:57 +0200
Message-Id: <20190627110201.1999-2-f4bug%amsat.org@localhost>
X-Mailer: git-send-email 2.19.1
In-Reply-To: <20190627110201.1999-1-f4bug%amsat.org@localhost>
References: <20190627110201.1999-1-f4bug%amsat.org@localhost>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Envelope-To: <n54%gmx.com@localhost>
X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3;
X-Spam-Flag: NO
X-UI-Filterresults: notjunk:1;V03:K0:wd+hlq/oWWI=:ozuxze2i5MrGY5IOYSpMccOh/D
 d0svkVuSStVe7/od0jOGGJxvTjudrn8F37az7c+Avx5WeumCKtRbwYmC+K/BDKjioONx5++C5
 ZHEF2b717NgM3+1ubif8tHYWrE4ruJ/MjGEt17kqPjcoU1gLKbSwPlMrzvLwTDGNHC+Ag1Zdw
 jPTiCwRuG44GJCvwHUXokfHwKWgXr+cIfhDJbMkgVqhOzkG5XKeqBECARl5ewmRRRduvQpsnr
 vmF2pYyp/zxySmwpL8N3HOL0o6g8z7SCENYbh8WiNAU/Me/6Qgf7B0Wm2efh0fT9U+CNiv8Yu
 N4KeBdPqEoBc54WHIVojMcw0Ah5cOEdU+o4UNS4E/CnvQRj79gjKY701LyMh2j9zf0eWiRxyj
 1cvursQkcmDTeRVrbAKfaMCMlciEEJsLk5kDOYs7Z4vBpYgCjkt/9b6lTP4lW5rVXSPQIXd8E
 p0S5vPo1aO8Vnk56eEDIxThjzGuXaxzXDpw0BB39joPqAxYgkHu0MaNsIHT4pF36HbbaAua8I
 rDwflWhYh1kNnxPBsX5O3BXZXTRT4Knj7Qpjpd5PI/5NBszm68BRC+Wrh8GuYS0F/m0gJy+ZS
 HbcirAGnrMwsxTK0p5GGO3g/Be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EpdBJeHv0cmrjjWYHPY4I9GM
 CEpJur/l3SJgWSZAmOd0iza/55Re0tGZQIlHT7ZjRQDdroy4OIzbyt4FuR3YGnWF7AuVfX9cY
 fgnFkSz866OtBkHq+TP1jA3X4Gs5m3wPhREcPbNxDQEOyxLUqZzNRl1T/SwlhPeURVD9PfEAk
 PqAZI1RKz4eyC2L8042dy48yvWHPj0pres1xDRdOnno2p+VQopJcFwgrLLh6FxsCeqBoZc9rl
 mDHU/b3I8ZtXhZB/cERtf07npZ1tlp8zG2/7T+skQ992947TK9giSyYLchqS3F3gsw5A1l4p7
 bA2S8bDn6a2GpS/r+lkB674l4p77SLRiVM27s4/OwsGNW/CjCpESoKSmuSKKL9FJprrrjiakr
 qzmv0Fqj6lWQ0TiRMtLSzKD6IKkuV9gKJh0hN6UYmDVEWxoJ/evu/oN4s4UkArPaEZ7V67GuX
 mYjRxjs/rUDduYdGce8okirhxr6vEo3DnVKrhKEbFSYdhk7ild0V9LNyXHTNpc8EMi8sVr7Q3
 G6Ug3mr9eMtDhi51hITjRdzXBmL6tt8Nm90dgA5OIykUzSjB0ttXMIvHCZ5/CkqLFwQQyZ92Q
 uuRMPdfmezDWd3o/B0TIu7u6Z6H4Ze4/uyboog9zGKIkAITfyRyrkyIsTHbLbL6wyJ3Qpv2tg
 EloEsJhl6QbpKMmjHGShe0pt6JPI3oefVYsqeTTH3921F4IMg=

User case from:
http://mail-index.netbsd.org/port-prep/2017/04/11/msg000112.html

Signed-off-by: Philippe Mathieu-Daudé <f4bug%amsat.org@localhost>
---
 tests/acceptance/ppc_prep_40p.py | 63 ++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)
 create mode 100644 tests/acceptance/ppc_prep_40p.py

diff --git a/tests/acceptance/ppc_prep_40p.py b/tests/acceptance/ppc_prep_40p.py
new file mode 100644
index 0000000000..53f2d2ecf0
--- /dev/null
+++ b/tests/acceptance/ppc_prep_40p.py
@@ -0,0 +1,63 @@
+# Functional test that boots a PReP/40p machine and checks its serial console.
+#
+# Copyright (c) Philippe Mathieu-Daudé <f4bug%amsat.org@localhost>
+#
+# This work is licensed under the terms of the GNU GPL, version 2 or
+# later. See the COPYING file in the top-level directory.
+
+import os
+import logging
+
+from avocado import skipIf
+from avocado_qemu import Test
+
+
+class IbmPrep40pMachine(Test):
+
+    timeout = 60
+
+    # TODO refactor to MachineTest
+    def wait_for_console_pattern(self, success_message, failure_message=None):
+        """
+        Waits for messages to appear on the console, while logging the content
+
+        :param success_message: if this message appears, test succeeds
+        :param failure_message: if this message appears, test fails
+        """
+        console = self.vm.console_socket.makefile()
+        console_logger = logging.getLogger('console')
+        while True:
+            msg = console.readline().strip()
+            if not msg:
+                continue
+            console_logger.debug(msg)
+            if success_message in msg:
+                break
+            if failure_message and failure_message in msg:
+                fail = 'Failure message found in console: %s' % failure_message
+                self.fail(fail)
+
+    @skipIf(os.getenv('CONTINUOUS_INTEGRATION'), 'Running on Travis-CI')
+    def test_factory_firmware_and_netbsd(self):
+        """
+        :avocado: tags=arch:ppc
+        :avocado: tags=machine:40p
+        :avocado: tags=slowness:high
+        """
+        bios_url = ('ftp://ftp.boulder.ibm.com/rs6000/firmware/'
+                    '7020-40p/P12H0456.IMG')
+        bios_hash = '1775face4e6dc27f3a6ed955ef6eb331bf817f03'
+        bios_path = self.fetch_asset(bios_url, asset_hash=bios_hash)
+        drive_url = ('https://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/'
+                     'NetBSD-4.0/prep/installation/floppy/generic_com0.fs')
+        drive_hash = 'dbcfc09912e71bd5f0d82c7c1ee43082fb596ceb'
+        drive_path = self.fetch_asset(drive_url, asset_hash=drive_hash)
+
+        self.vm.set_machine('40p')
+        self.vm.set_console()
+        self.vm.add_args('-bios', bios_path,
+                         '-fda', drive_path)
+        self.vm.launch()
+        os_banner = 'NetBSD 4.0 (GENERIC) #0: Sun Dec 16 00:49:40 PST 2007'
+        self.wait_for_console_pattern(os_banner)
+        self.wait_for_console_pattern('Model: IBM PPS Model 6015')
-- 
2.19.1


>Fix:
N/A



Home | Main Index | Thread Index | Old Index