From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id ePmeNYGu+WVPGwEAe85BDQ:P1 (envelope-from ) for ; Tue, 19 Mar 2024 16:25:54 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id ePmeNYGu+WVPGwEAe85BDQ (envelope-from ) for ; Tue, 19 Mar 2024 16:25:53 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710861953; a=rsa-sha256; cv=none; b=hTqS6lzEQf/rj+pM+DI32CfbzyKU8l2O2JM85PvtukmLFscHW+ypg1YfhE3ikD8Sp1Wjd5 a0BHY89VFtVMdwgqfTtd8rqMtFCGo8ffeOQE9HE6Q/KGn74O7nSc14Gx801ydw2j4YhhUz C/xaIybZ8/7eV6UBZq6qLX/sF5EGU/XS/CDnbH3u619GYyYaaEbjl7dwfl69dtY1MMKKay 1guLo3X1QjK6AC8UAKTSlt4JefRhHqCuKDMfT0F/GWoEAC1g41lfYBqxbEF+33lQY5qBlR t2hXDHrOB8jCFixC81AphsaJFdvcpZYn9zXFUMx0JzEw51Zn2FmMC6rmEeQFSg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710861953; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=1BQ8jw8ThDR1cJovEt+DJzV0Q1jJDlWz8Z0adQ9+e5o=; b=SsaZQD+1vyP/gQmH761dHQ8V8WIoAvATo+kxXs3Vgo2DhQ8/sMwx2dhFNOR9UI7KirMoSJ rr8X3h0NiFa4AQe84y8b2Om1MkhG/Z20zU7h1OHYAwiDPQIJO4ghXLpQXLClVW47CZe2Z9 UYbwN0MILwgzufVKhKJXkltLeoITRjeBd6omqhkCHMJj9280HknX+WCU1fqAuzdm2lK83h 7QBwDJhZN8TlT/8+sYdHaD8qyY4zsFFcgG9Iy11cK++F13PWVAsPTECG5L5CixGFPLNTkP I0ROctdaVELdzh/Jmh7AxmWGgPSxB6PMgAI6RLSrEeVOcmxUo3uEUOu4mEZGkw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BC30A6B50B for ; Tue, 19 Mar 2024 16:25:53 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rmbLH-00072S-I0; Tue, 19 Mar 2024 11:25: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 1rmbLB-00070j-PB for guix-patches@gnu.org; Tue, 19 Mar 2024 11:25:26 -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 1rmbLB-0001jj-GF for guix-patches@gnu.org; Tue, 19 Mar 2024 11:25:25 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rmbLo-0001FU-7n for guix-patches@gnu.org; Tue, 19 Mar 2024 11:26:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69899] [PATCH 1/7] bootloader: Add u-boot-qemu-riscv64-bootloader. Resent-From: Zheng Junjie Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Mar 2024 15:26:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69899 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69899@debbugs.gnu.org Received: via spool by 69899-submit@debbugs.gnu.org id=B69899.17108619194542 (code B ref 69899); Tue, 19 Mar 2024 15:26:04 +0000 Received: (at 69899) by debbugs.gnu.org; 19 Mar 2024 15:25:19 +0000 Received: from localhost ([127.0.0.1]:51150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmbL4-0001B6-Fz for submit@debbugs.gnu.org; Tue, 19 Mar 2024 11:25:19 -0400 Received: from smtp84.cstnet.cn ([159.226.251.84]:51170 helo=cstnet.cn) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmbFZ-0000gB-KM for 69899@debbugs.gnu.org; Tue, 19 Mar 2024 11:19:44 -0400 Received: from m.taildaf0f.ts.net (unknown [183.247.5.22]) by APP-05 (Coremail) with SMTP id zQCowAAnLLzZrPlljqBBBw--.46102S2; Tue, 19 Mar 2024 23:18:49 +0800 (CST) From: Zheng Junjie Date: Tue, 19 Mar 2024 23:18:35 +0800 Message-ID: <560d073808f3cda2f330a0b30bf2f59b79f21fbd.1710861023.git.zhengjunjie@iscas.ac.cn> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit X-CM-TRANSID: zQCowAAnLLzZrPlljqBBBw--.46102S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY-7k0a2IF6F4UM7kC6x804xWl14x267AK xVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUJVWUGw A2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r1j 6r1xM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r1j6r4UM28EF7xvwVC2z280aVAFwI0_Gc CE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxI r21le4C262xC7I0v67AEwI8IwI1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20x vE14v26r106r15McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xv r2IYc2Ij64vIr41lw4CEx2IqxVAFz4v204v26I0v724l42xK82IYc2Ij64vIr41l4I8I3I 0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWU JVWUGwC2zVAF1VAY17CE14v26r1j6r15MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI 0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0 rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r 4UYxBIdaVFxhVjvjDU0xZFpf9x07jbManUUUUU= X-Originating-IP: [183.247.5.22] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -5.31 X-Spam-Score: -5.31 X-Migadu-Queue-Id: BC30A6B50B X-TUID: /F8BrNBM6Ef+ * gnu/bootloader/u-boot.scm (u-boot-qemu-riscv64-bootloader): New variable. Change-Id: If6622838d2250c90a26380849b92387aa7122fbb --- gnu/bootloader/u-boot.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gnu/bootloader/u-boot.scm b/gnu/bootloader/u-boot.scm index d20aabd538..8e7cc05191 100644 --- a/gnu/bootloader/u-boot.scm +++ b/gnu/bootloader/u-boot.scm @@ -6,6 +6,7 @@ ;;; Copyright © 2022 Maxim Cournoyer ;;; Copyright © 2023 Efraim Flashner ;;; Copyright © 2023 Herman Rimm +;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -47,6 +48,7 @@ (define-module (gnu bootloader u-boot) u-boot-rock64-rk3328-bootloader u-boot-rockpro64-rk3399-bootloader u-boot-sifive-unmatched-bootloader + u-boot-qemu-riscv64-bootloader u-boot-ts7970-q-2g-1000mhz-c-bootloader u-boot-wandboard-bootloader)) @@ -157,6 +159,12 @@ (define install-sifive-unmatched-u-boot (write-file-on-device u-boot (stat:size (stat u-boot)) image (* 2082 512))))) +(define install-qemu-riscv64-u-boot + #~(lambda (bootloader device mount-point) + (let ((u-boot.bin (string-append bootloader "/libexec/u-boot.bin")) + (install-dir (string-append mount-point "/boot"))) + (install-file u-boot.bin install-dir)))) + ;;; @@ -307,3 +315,10 @@ (define u-boot-sifive-unmatched-bootloader (inherit u-boot-bootloader) (package u-boot-sifive-unmatched) (disk-image-installer install-sifive-unmatched-u-boot))) + +(define u-boot-qemu-riscv64-bootloader + (bootloader + (inherit u-boot-bootloader) + (package u-boot-qemu-riscv64) + (installer install-qemu-riscv64-u-boot) + (disk-image-installer #f))) -- 2.41.0