From nobody Thu Sep 11 20:40:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7FE54C001DB for ; Sat, 5 Aug 2023 19:51:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230140AbjHETvi (ORCPT ); Sat, 5 Aug 2023 15:51:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjHETvg (ORCPT ); Sat, 5 Aug 2023 15:51:36 -0400 Received: from smtpbg151.qq.com (smtpbg151.qq.com [18.169.211.239]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 372E31732; Sat, 5 Aug 2023 12:51:33 -0700 (PDT) X-QQ-mid: bizesmtp67t1691265086t04ajod9 Received: from linux-lab-host.localdomain ( [116.30.131.233]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 06 Aug 2023 03:51:25 +0800 (CST) X-QQ-SSF: 01200000000000E0X000000A0000000 X-QQ-FEAT: 6/K5pWSRdGrRjODcvNiQftqMfOO2iuufKpsmwsfx8k2oOEX0y0jwaHhX2ETsf rx9aOsFRfFMpmmGQhGg7ZnoqsgnzgoX3xMBBdppRyprE2eUfr61jrxqePZmOxeQr67tR7Fc AYTVKv1+fTIkEn3loGGbkm8znfzaAeuWPMIF+SzyPr+cUI+Iculjh+vXksSfLlZVV0wvqWA 9cPejpIknACLC2qSp3Iqb88p58Vbi/xLLTG/aTQ7tNNyIBCSG+k2RS5ujZ9NMIMNFTuy8Ua 6zgrzkGt4PorpRdcZYLUL9dEFdPAtnOpMKfMj6A0T4xmZ7SJRwF33TrVr/kVKPAOq/qhQaQ NYDsiSLVf+SoRRzPFHi2dX2PT4vieUwYcXVQpl0pYhcTYjFYadtHN8zsUKpr2X3ol+8Xz5A X-QQ-GoodBg: 0 X-BIZMAIL-ID: 5326708501739933189 From: Zhangjin Wu To: w@1wt.eu Cc: falcon@tinylab.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, tanyuan@tinylab.org, thomas@t-8ch.de Subject: [PATCH v1 4/4] selftests/nolibc: add some notes about qemu tools Date: Sun, 6 Aug 2023 03:51:24 +0800 Message-Id: <6de680acbc2d87e13a680d4453ef022568bf489b.1691263493.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Almost all distributions provide qemu-system-$(XARCH), their firmwares and qemu-$(XARCH), but for the new riscv and loongarch, users may still need to download external firmwares or compile qemu from scratch, let's add some notes about them. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selfte= sts/nolibc/Makefile index 9cd6dc0e8b75..1e92bb5138db 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -100,6 +100,18 @@ DEFCONFIG =3D $(DEFCONFIG_$(XARCH)) TEST =3D =20 # QEMU_ARCH: arch names used by qemu +# +# Notes: +# - qemu-system of riscv may require latest firmware from +# https://github.com/riscv-software-src/opensbi/releases/ +# - qemu-system of loongarch may require latest firmware from +# https://github.com/loongson/Firmware/tree/main/LoongArchVirtMachine +# +# If qemu-$(XARCH) or qemu-system-$(XARCH) is missing from software reposi= tory, +# please compile them with help from https://wiki.qemu.org/Documentation +# +# To specify a firmware, please pass QEMU_ARGS_EXTRA=3D"-bios dir/to/firmw= are" + QEMU_ARCH_i386 =3D i386 QEMU_ARCH_x86_64 =3D x86_64 QEMU_ARCH_x86 =3D x86_64 @@ -114,7 +126,7 @@ QEMU_ARCH_s390 =3D s390x QEMU_ARCH_loongarch =3D loongarch64 QEMU_ARCH =3D $(QEMU_ARCH_$(XARCH)) =20 -# QEMU_ARGS : some arch-specific args to pass to qemu +# QEMU_ARGS: some arch-specific args to pass to qemu QEMU_ARGS_i386 =3D -M pc -append "console=3DttyS0,9600 i8042.noaux p= anic=3D-1 $(TEST:%=3DNOLIBC_TEST=3D%)" QEMU_ARGS_x86_64 =3D -M pc -append "console=3DttyS0,9600 i8042.noaux p= anic=3D-1 $(TEST:%=3DNOLIBC_TEST=3D%)" QEMU_ARGS_x86 =3D -M pc -append "console=3DttyS0,9600 i8042.noaux p= anic=3D-1 $(TEST:%=3DNOLIBC_TEST=3D%)" --=20 2.25.1