From patchwork Tue Mar 19 15:15:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Z572 X-Patchwork-Id: 2379 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A7E7727BBEB; Tue, 19 Mar 2024 15:16:40 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5B04F27BBE2 for ; Tue, 19 Mar 2024 15:16:39 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rmbCY-0002YW-V9; Tue, 19 Mar 2024 11:16:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rmbCT-0002YL-R8 for guix-patches@gnu.org; Tue, 19 Mar 2024 11:16:25 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rmbCT-0008Sy-Ff for guix-patches@gnu.org; Tue, 19 Mar 2024 11:16:25 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rmbD4-0000TL-MG for guix-patches@gnu.org; Tue, 19 Mar 2024 11:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69899] [PATCH 0/7] support to use `guix system vm' with riscv64. Resent-From: Zheng Junjie Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Mar 2024 15:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69899 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69899@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17108614201801 (code B ref -1); Tue, 19 Mar 2024 15:17:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Mar 2024 15:17:00 +0000 Received: from localhost ([127.0.0.1]:51111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmbD1-0000Sy-PG for submit@debbugs.gnu.org; Tue, 19 Mar 2024 11:17:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:39428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmbD0-0000Sr-FO for submit@debbugs.gnu.org; Tue, 19 Mar 2024 11:16:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rmbCM-0002Xt-8J for guix-patches@gnu.org; Tue, 19 Mar 2024 11:16:19 -0400 Received: from smtp84.cstnet.cn ([159.226.251.84] helo=cstnet.cn) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1rmbCJ-0008RD-72 for guix-patches@gnu.org; Tue, 19 Mar 2024 11:16:17 -0400 Received: from m.taildaf0f.ts.net (unknown [183.247.5.22]) by APP-05 (Coremail) with SMTP id zQCowABXydAtrPll5IpBBw--.45772S2; Tue, 19 Mar 2024 23:15:58 +0800 (CST) From: Zheng Junjie Date: Tue, 19 Mar 2024 23:15:53 +0800 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-CM-TRANSID: zQCowABXydAtr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x2kh0wxmxqyx3h6l2u1dvotugofq/ Received-SPF: pass client-ip=159.226.251.84; envelope-from=zhengjunjie@iscas.ac.cn; helo=cstnet.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches hello!. this patchset make `guix system vm --target=riscv64-linux-gnu' work. and `guix system vm --system=riscv64-linux` also work, But there is a problem that the qemu running with --system=riscv64-linux is also riscv architecture, now you have to manually modify to use native qemu or the guix of qemu-system on qemu-user is too slow. and must enable qemu-binfmt. Zheng Junjie (7): bootloader: Add u-boot-qemu-riscv64-bootloader. vm: use #$ for kernel-arguments. vm: When target riscv64-linux, use u-boot-qemu-riscv64-bootloader. gnu: linux-libre-riscv64-generic: add more options. linux-initrd: don't add hid-apple module for riscv64-linux. vm: add arguments to use virt machine type for qemu-riscv64. vm: If not the same local architecture, don't enable kvm. gnu/bootloader/u-boot.scm | 15 ++++++++++++++ gnu/packages/linux.scm | 19 +++++++++++++++++- gnu/system/linux-initrd.scm | 5 ++++- gnu/system/vm.scm | 40 ++++++++++++++++++++++++++----------- 4 files changed, 65 insertions(+), 14 deletions(-) base-commit: 83c5e7169d3bfa23a51225a8d809a435c1f2dd6b