From nobody Tue Nov 18 06:08:28 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1610417369; cv=none; d=zohomail.com; s=zohoarc; b=eajFUUyWa2w3oV+hO1wKfyN+TgnNtSiUX6M02vjGkS5HJsZnjgVmhrbsEqolrg054vcZYDHEdompqzE3Ew+KtWWVgg0LIStQiWbYLaTVrYPUJw6PnDyVJ82rfzk7gfpkipUk5vL7v/98Tk6erYn/bynNVE3NwABct4cYS00NO9M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610417369; 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; bh=modyNqP3xAEY6ztmzin0lBjEpTr7Jx2kmLszwqpUZm8=; b=hxPiZitTXAEXk3R2eSPp3KHnVN/Ui94rMM2nhZ822Mnkv2TXGI7IIvl8fXnqvLzfJIzweHUzT79bNfNnOryx6r9+QNVeqik9/gcZCVqxbtUFdIHr5fAlkTuob4khq3J0GEJi9NRKNzidH71r5nUTw/KkRaYSdssGLa89GRfucwE= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 161041736932296.0563163569609; Mon, 11 Jan 2021 18:09:29 -0800 (PST) Received: from localhost ([::1]:50442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kz97f-00070g-Fz for importer@patchew.org; Mon, 11 Jan 2021 21:09:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kz960-0006W2-Gn for qemu-devel@nongnu.org; Mon, 11 Jan 2021 21:07:44 -0500 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:49757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kz95y-0000kA-0H for qemu-devel@nongnu.org; Mon, 11 Jan 2021 21:07:44 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id B98F75805C8; Mon, 11 Jan 2021 21:07:39 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 11 Jan 2021 21:07:39 -0500 Received: from strike.U-LINK.com (unknown [116.228.84.2]) by mail.messagingengine.com (Postfix) with ESMTPA id 7F66B1080063; Mon, 11 Jan 2021 21:07:36 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=fm1; bh=modyNqP3xAEY6ztmzin0lBjEpT r7Jx2kmLszwqpUZm8=; b=r2uB8Sf1vxBADPA1HRkjsfXMEDkFsTnkFE+IpZA888 19qTVBW+bwc4iBeuthUWKJzcEaXtPOZmiGvG4lDnYZxXl2oSqDuULhwzqR7Eqrff zCu5i3KjNXhyzeU0s8UlvCsOGqw5K21IsF8moR0C0Ni52aLfvo8BmTYet9Mt+JRJ kNovLRannDK+Nzrk6VogxKJS6hM7+efESjC908fxUFIQn9brlI3AcUVDofeRXUlp xquRNrfQwS6qNUp+xUJQ5tWRAnp26bfw4SDtXBBe3Xa5EXsw2N31WtzipoSQ6uVZ OpzPGwmebexHWvu8YzbTcvIyc61RLrVeR6o/tpLgwUuQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=modyNq P3xAEY6ztmzin0lBjEpTr7Jx2kmLszwqpUZm8=; b=b6cxGfA2EAgcQAnLDshW3K EijsXZ/IpasPFwL4+r5VTyh6ymxKZUkLzucOsGgU0NRonos6SqRElw2KM6KjjGea p6iz5HQJU2ZQzMkA3oVmD/1ACdn53X1d5B8Ehy/pFtCiy0Ez5HLKNkeaOI8pw2zw iwWPzlDzSnovjioVsA5svWpn59zqKqdEuXkirm8dNYmVPb2YSYuu5YmC0rivCW5w tZF4mGV/+r0JwePC9ILtlVJ7ZAzlgBixeEd++jgwkgyQZaDnFyMG+qJFr68KGpe5 U9g0JnEyEsfG0mW/xD4v2L8hePk2O4uhxtd/JTUE3thUTN+aUSCXFDvNrU1udQBA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdehvddggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffogggtgfesthekredtredtjeenucfhrhhomheplfhirgiguhhn ucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqeenucggtf frrghtthgvrhhnpeefvdetieejkeffvddvuedtjeevhfdugeduffegjeeitdetffdvgeeg udeugfdtfeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeduudeirddvvd ekrdekgedrvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: From: Jiaxun Yang To: qemu-devel@nongnu.org Subject: [PATCH] tests/acceptance: Test PMON with Loongson-3A1000 CPU Date: Tue, 12 Jan 2021 10:07:08 +0800 Message-Id: <20210112020708.62922-1-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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; Received-SPF: permerror client-ip=66.111.4.230; envelope-from=jiaxun.yang@flygoat.com; helo=new4-smtp.messagingengine.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HEXHASH_WORD=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_SORBS_WEB=1.5, SPF_HELO_PASS=-0.001, T_SPF_PERMERROR=0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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: Huacai Chen , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Test booting of PMON bootloader on loongson3-virt platform. $ (venv) AVOCADO_ALLOW_UNTRUSTED_CODE=3D1 \ avocado --show=3Dapp,console \ run -t machine:loongson3-virt tests/acceptance Fetching asset from tests/acceptance/machine_mips_loongson3v.py:MipsLoongso= n3v.test_pmon_serial_console JOB ID : 8e202b3727847c9104d0d3d6546ed225d35f6706 JOB LOG : /home/flygoat/avocado/job-results/job-2021-01-12T10.02-8e202b3= /job.log (1/1) tests/acceptance/machine_mips_loongson3v.py:MipsLoongson3v.test_pmon= _serial_console: console: PMON2000 MIPS Initializing. Standby... console: 00000000Jump to 9fc console: Init Memory done. console: The uncache data is: console: 00000000: 5555555555555555 console: 00000008: aaaaaaaaaaaaaaaa console: 00000010: 3333333333333333 console: 00000018: cccccccccccccccc console: 00000020: 7777777777777777 console: 00000028: 8888888888888888 console: 00000030: 1111111111111111 console: 00000038: eeeeeeeeeeeeeeee console: The cached data is: console: 00000000: 5555555555555555 console: 00000008: aaaaaaaaaaaaaaaa console: 00000010: 3333333333333333 console: 00000018: cccccccccccccccc console: 00000020: 7777777777777777 console: 00000028: 8888888888888888 console: 00000030: 1111111111111111 console: 00000038: eeeeeeeeeeeeeeee console: Copy PMON to execute location... console: start =3D 0x8f900000 console: s0 =3D 0x30300000 console: _edata =3D 0x8f989010 console: _end =3D 0x8f98a028copy text section done. console: Copy PMON to execute location done. console: sp=3D8f8fc000 console: Uncompressing Bios................................................= ............................OK,Booting Bios console: FREQ console: DONE console: DEVI console: ENVI console: MAPV console: NVRAM@8f7ff898 console: STDV console: 80100000: memory between 8f7ff400-8f800000 is already been alloc= ated,heap is already above this point console: SBDD console: P12PCIH console: PCIH console: PCID console: setting up 1 bus console: PCI bus 0 slot 1: probe...completed console: PCI bus 0 slot 1/0: vendor/product: 0x106b/0x003f (serialbus, USB,= interface: 0x10, revision: 0x00) console: PCI bus 0 slot 1/0: reg 0x10 =3D 0xffffff00 console: PCI bus 0 slot 2: probe...completed console: PCI bus 0 slot 2/0: vendor/product: 0x1af4/0x1000 (network, ethern= et, interface: 0x00, revision: 0x00) console: PCI bus 0 slot 2/0: reg 0x10 =3D 0xffffffe1 console: PCI bus 0 slot 2/0: reg 0x14 =3D 0xfffff000 console: PCI bus 0 slot 2/0: reg 0x20 =3D 0xffffc00c console: PCI bus 0 slot 2/0: reg 0x30 =3D 0xfffc0000 console: PCI bus 0 slot 3: probe...completed console: PCI bus 0 slot 4: probe...completed console: PCI bus 0 slot 5: probe...completed console: PCI bus 0 slot 6: probe...completed console: PCI bus 0 slot 7: probe...completed console: PCI bus 0 slot 8: probe...completed console: PCI bus 0 slot 9: probe...completed console: PCI bus 0 slot 10: probe...completed console: PCI bus 0 slot 11: probe...completed console: PCI bus 0 slot 12: probe...completed console: PCI bus 0 slot 13: probe...completed console: PCI bus 0 slot 14: probe...completed console: PCI bus 0 slot 15: probe...completed console: PCI bus 0 slot 16: probe...completed console: PCI bus 0 slot 17: probe...completed console: PCI bus 0 slot 18: probe...completed console: PCI bus 0 slot 19: probe...completed console: PCI bus 0 slot 20: probe...completed console: PCI bus 0 slot 21: probe...completed console: PCI bus 0 slot 22: probe...completed console: PCI bus 0 slot 23: probe...completed console: PCI bus 0 slot 24: probe...completed console: PCI bus 0 slot 25: probe...completed console: PCI bus 0 slot 26: probe...completed console: PCI bus 0 slot 27: probe...completed console: PCI bus 0 slot 28: probe...completed console: PCI bus 0 slot 29: probe...completed console: PCI bus 0 slot 30: probe...completed console: PCI bus 0 slot 31: probe...completed console: PCIS console: PCIR console: PCIW console: PCI bus 0 slot 2/0: mem @0x40000000, reg 0x30 262144 bytes console: PCI bus 0 slot 2/0: mem @0x40040000, reg 0x20 16384 bytes console: PCI bus 0 slot 2/0: mem @0x40044000, reg 0x14 4096 bytes console: PCI bus 0 slot 1/0: mem @0x40045000, reg 0x10 256 bytes console: PCI bus 0 slot 2/0: exp @0x40000000, 262144 bytes console: PCI bus 0 slot 2/0: i/o @0x00004000, reg 0x10 32 bytes console: NETI console: RTCL console: PCID console: VGAI console: memorysize=3Dc000000,base=3D8f6ff508,sysMem=3D8f6ef500 console: in setup_int_vect!done!VESA console: vga bios init failed, rc=3D-1 console: in configure console: mainbus0 (root) console: localbus0 at mainbus0 console: loopdev0 at mainbus0pcibr0 at mainbus0 console: pci0 at pcibr0 bus 0 console: ohci0 at pci0 dev 1 function 0 vendor/product: 0x106b/0x003f (seri= albus, USB, interface: 0x10, revision: 0x00)usb base addr : 0xc0045000, bus= _base is : 0xc0000000 console: OHCI revision: 0x00000010 console: RH: a: 0x00000203 b: 0x00000000 console: early period(0x0) console: OHCI 8c01ec00 initialized ok console: New Device 0 console: usb_get_descriptor console: bLength =3D 12 console: bDescriptorType =3D1 console: bcdUSB =3D 110 console: bDeviceClass =3D9 console: bDeviceSubClass =3D0 console: bDeviceProtocol =3D0 console: bMaxPacketSize0 =3D8 console: set address 1 console: usb_get_descriptor console: bLength =3D 12 console: bDescriptorType =3D1 console: bcdUSB =3D 110 console: bDeviceClass =3D9 console: bDeviceSubClass =3D0 console: bDeviceProtocol =3D0 console: bMaxPacketSize0 =3D8 console: idVendor =3D0 console: idProduct =3D0 console: bcdDevice =3D0 console: iManufacturer=3D0 console: iProduct =3D1 console: iSerialNumber=3D0 console: bNumConfigurations=3D1 console: usb_get_descriptor console: usb_get_descriptor console: get_conf_no 0 Result 25, wLength 25 console: if 0, ep 0 console: bLength=3D9 console: bDescriptorType=3D2 console: wTotalLength=3D19 console: bNumInterfaces=3D1 console: bConfigurationValue=3D1 console: iConfiguration=3D0 console: bmAttributes=3D40 console: MaxPower=3D0 console: 09 04 00 00 01 09 00 00 00 07 05 81 03 02 00 ff console: ##EP epmaxpacketin[1] =3D 2 console: set configuration 1 console: new device strings: Mfr=3D0, Product=3D1, SerialNumber=3D0 console: USB device number 1 default language ID 0x409 console: Manufacturer console: Product OHCI Root Hub console: SerialNumber console: New Device 1 console: usb_get_descriptor -console: bLength =3D 12 console: bDescriptorType =3D1 console: bcdUSB =3D 200 console: bDeviceClass =3D0 console: bDeviceSubClass =3D0 console: bDeviceProtocol =3D0 console: bMaxPacketSize0 =3D8 console: set address 2 console: usb_get_descriptor console: bLength =3D 12 console: bDescriptorType =3D1 console: bcdUSB =3D 200 console: bDeviceClass =3D0 console: bDeviceSubClass =3D0 console: bDeviceProtocol =3D0 console: bMaxPacketSize0 =3D8 console: idVendor =3D627 console: idProduct =3D1 console: bcdDevice =3D0 console: iManufacturer=3D1 console: iProduct =3D4 console: iSerialNumber=3Db console: bNumConfigurations=3D1 console: usb_get_descriptor console: usb_get_descriptor console: get_conf_no 0 Result 34, wLength 34 console: unknown Description Type : 21 console: 09 21 11 01 00 01 22 3F 00 console: if 0, ep 0 console: bLength=3D9 console: bDescriptorType=3D2 console: wTotalLength=3D22 console: bNumInterfaces=3D1 console: bConfigurationValue=3D1 console: iConfiguration=3D8 console: bmAttributes=3Da0 console: MaxPower=3D32 console: 09 04 00 00 01 03 01 01 00 09 21 11 01 00 01 22 3f 00 07 05 81 03 = 08 00 0a console: ##EP epmaxpacketin[1] =3D 8 console: set configuration 1 console: new device strings: Mfr=3D1, Product=3D4, SerialNumber=3D11 console: USB device number 2 default language ID 0x409 console: Manufacturer QEMU console: Product QEMU USB Keyboard console: SerialNumber 68284-0000:00:01.0-1 console: drive at ohci0 devnum 2, Product QEMU USB Keyboard console: not configured console: New Device 2 console: usb_get_descriptor console: bLength =3D 12 console: bDescriptorType =3D1 console: bcdUSB =3D 200 console: bDeviceClass =3D0 console: bDeviceSubClass =3D0 console: bDeviceProtocol =3D0 console: bMaxPacketSize0 =3D8 console: set address 3 console: usb_get_descriptor console: bLength =3D 12 console: bDescriptorType =3D1 console: bcdUSB =3D 200 console: bDeviceClass =3D0 console: bDeviceSubClass =3D0 console: bDeviceProtocol =3D0 console: bMaxPacketSize0 =3D8 console: idVendor =3D627 console: idProduct =3D1 console: bcdDevice =3D0 console: iManufacturer=3D1 console: iProduct =3D3 console: iSerialNumber=3Da console: bNumConfigurations=3D1 console: usb_get_descriptor console: usb_get_descriptor console: get_conf_no 0 Result 34, wLength 34 console: unknown Description Type : 21 console: 09 21 01 00 00 01 22 4A 00 console: if 0, ep 0 console: bLength=3D9 console: bDescriptorType=3D2 console: wTotalLength=3D22 console: bNumInterfaces=3D1 console: bConfigurationValue=3D1 console: iConfiguration=3D7 console: bmAttributes=3Da0 console: MaxPower=3D32 console: 09 04 00 00 01 03 00 00 00 09 21 01 00 00 01 22 4a 00 07 05 81 03 = 08 00 0a console: ##EP epmaxpacketin[1] =3D 8 console: set configuration 1 console: new device strings: Mfr=3D1, Product=3D3, SerialNumber=3D10 console: USB device number 3 default language ID 0x409 console: Manufacturer QEMU console: Product QEMU USB Tablet console: SerialNumber 28754-0000:00:01.0-2 console: drive at ohci0 devnum 3, Product QEMU USB Tablet console: not configured console: drive at ohci0 devnum 1, Product OHCI Root Hub console: not configured console: vendor/product: 0x1af4/0x1000 (network, ethernet, interface: 0x00,= revision: 0x00) at pci0 dev 2 function 0 not configured console: out configure console: Press to set BIOS,waiting for 3 seconds here..... |console: devconfig done. console: ifinit done. console: domaininit done. console: init_proc.... console: HSTI console: SYMI console: SBDE console: [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[= [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ console: [[ [[[[[[[[[ [[[[[ [[[[ [[[[[ [[[[[ [[[[[ = [[[[[ [[[[ [[[[[ [[ console: [[ [[[[[[[[ [[[[ [[[ [[[[ [[[ [[[[ [[[[ [[[[ [[[ [[= [[ [[[ [[[[ [[[ [[[[ [[ console: [[ [[[[[[[[ [[[[[[ [[[ [[[[[[ [[[ [ [[[ [[[ [[[[[[[[[[[[ = [[[[[[[ [[[[[[ [[[ [ [[[ [[ console: [[ [[[[[[[[ [[[[[[ [[[ [[[[[[ [[[ [[ [[ [[[ [[[ [[[[[[[ = [[[[ [[[[[[ [[[ [[ [[ [[ console: [[ [[[[[[[[ [[[[[[ [[[ [[[[[[ [[[ [[[ [ [[[ [[[[[ [[[[[[[[= [[ [[[ [[[[[[ [[[ [[[ [ [[ console: [[ [[[[[[[[ [[[[ [[[ [[[[ [[[ [[[[ [[[ [[[[ [[[ [[= [ [[[[ [[[[ [[[ [[[[ [[ console: [[ [[[[ [[[[[ [[[[ [[[[[ [[[[ [[[[[ = [[[[[[ [[[[ [[[[[ [[ console: [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[2011 Loongson][[[[[[[[[[[[= [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ console: Configuration [Bonito,EL,NET,SCSI,IDE] console: Version: PMON2000 3.3 (Bonito) #0: Tue Dec 22 01:58:09 UTC 2020 co= mmit b3ece66234adbf7d4e453f0ba4f326c099ac2a76 Author: Jiaxun Yang Date: Tue Dec 22 09:51:10 2020 +0800 . console: Supported loaders [txt, srec, elf, bin] console: Supported filesystems [net, fat, fs, disk, iso9660, socket, tty, r= am] console: This software may be redistributed under the BSD copyright. console: Copyright 2000-2002, Opsycon AB, Sweden. console: Copyright 2005, ICT CAS. console: CPU GODSON3 BogoMIPS: 1327 PASS (3.89 s) RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CA= NCEL 0 JOB TIME : 4.38 s Signed-off-by: Jiaxun Yang Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 --- MAINTAINERS | 1 + tests/acceptance/machine_mips_loongson3v.py | 39 +++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 tests/acceptance/machine_mips_loongson3v.py diff --git a/MAINTAINERS b/MAINTAINERS index 4be087b88e..f38882f997 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1164,6 +1164,7 @@ F: hw/intc/loongson_liointc.c F: hw/mips/loongson3_bootp.c F: hw/mips/loongson3_bootp.h F: hw/mips/loongson3_virt.c +F: tests/acceptance/machine_mips_loongson3v.py =20 Boston M: Paul Burton diff --git a/tests/acceptance/machine_mips_loongson3v.py b/tests/acceptance= /machine_mips_loongson3v.py new file mode 100644 index 0000000000..17a85de69f --- /dev/null +++ b/tests/acceptance/machine_mips_loongson3v.py @@ -0,0 +1,39 @@ +# Functional tests for the Generic Loongson-3 Platform. +# +# Copyright (c) 2020 Philippe Mathieu-Daud=C3=A9 +# +# This work is licensed under the terms of the GNU GPL, version 2 or later. +# See the COPYING file in the top-level directory. +# +# SPDX-License-Identifier: GPL-2.0-or-later + +import os +import time + +from avocado import skipUnless +from avocado_qemu import Test +from avocado_qemu import wait_for_console_pattern + +class MipsLoongson3v(Test): + @skipUnless(os.getenv('AVOCADO_ALLOW_UNTRUSTED_CODE'), 'untrusted code= ') + def test_pmon_serial_console(self): + """ + :avocado: tags=3Darch:mips64el + :avocado: tags=3Dendian:little + :avocado: tags=3Dmachine:loongson3-virt + :avocado: tags=3Dcpu:Loongson-3A1000 + :avocado: tags=3Ddevice:liointc + :avocado: tags=3Ddevice:goldfish_rtc + """ + + pmon_hash =3D '7c8b45dd81ccfc55ff28f5aa267a41c3' + pmon_path =3D self.fetch_asset('https://github.com/loongson-commun= ity/pmon/' + 'releases/download/20210112/pmon-3avir= t.bin', + asset_hash=3Dpmon_hash, algorithm=3D'= md5') + + self.vm.set_console() + self.vm.add_args('-bios', pmon_path) + self.vm.launch() + wait_for_console_pattern(self, 'PMON2000 MIPS Initializing. Standb= y...') + wait_for_console_pattern(self, 'Copy PMON to execute location done= .') + wait_for_console_pattern(self, 'CPU GODSON3 BogoMIPS:') --=20 2.30.0