From patchwork Fri Apr 4 19:36:31 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zheng Junjie X-Patchwork-Id: 41313 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 1B91627BBE9; Fri, 4 Apr 2025 20:38:36 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI, PDS_OTHER_BAD_TLD,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 B52C127BBE2 for ; Fri, 4 Apr 2025 20:38:33 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u0mrd-0005dg-U7; Fri, 04 Apr 2025 15:38:06 -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 1u0mrb-0005d7-Iq for guix-patches@gnu.org; Fri, 04 Apr 2025 15:38:04 -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 1u0mrb-00023r-1E for guix-patches@gnu.org; Fri, 04 Apr 2025 15:38:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=d+Tcj8YKJwMxxKBNBdnHEFQWb9jCS16rXm8/jFlvovo=; b=iMg9PaxZtc4tMW96citMhgaV99u9zm1akuFnYoN0wEwAXZ7awRh3/jFsnrVNH7wp2vPi2kyHJf6GEIp2oWLUvYTu6rTKHSzuMKkxpHBTDEsagSWI2pIoRVsbBZYrBRZFP5oFAqxvFV7vrUSG/UwxH6vdxMdWFSfIH8L9xIgfFWx9FzPxfOFp9L+WVwpKL/5Q+W3figcZHWHhEtM0eW5P8ZazVjeT2zW3+jHJpdC+l/ioo1yAIIN6OArocApGw4GFc80gupKP3iUsHmUwoTndYsWsTvLWmyPCLtU15OvJf7bI/mfbbFuwtCTj0nATGgb+783Od5NljSfoXcUpVbzsNg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1u0mra-00034p-MY for guix-patches@gnu.org; Fri, 04 Apr 2025 15:38:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77543] [PATCH] images: visionfive2: Add support for booting from nvme. Resent-From: Zheng Junjie Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 04 Apr 2025 19:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 77543 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77543@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.174379542411708 (code B ref -1); Fri, 04 Apr 2025 19:38:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Apr 2025 19:37:04 +0000 Received: from localhost ([127.0.0.1]:40207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u0mqe-00032l-4t for submit@debbugs.gnu.org; Fri, 04 Apr 2025 15:37:04 -0400 Received: from lists.gnu.org ([2001:470:142::17]:33332) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u0mqa-000329-WC for submit@debbugs.gnu.org; Fri, 04 Apr 2025 15:37:02 -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 1u0mqU-0005Ym-On for guix-patches@gnu.org; Fri, 04 Apr 2025 15:36:54 -0400 Received: from mail.z572.online ([88.99.160.180]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u0mqR-000204-N6 for guix-patches@gnu.org; Fri, 04 Apr 2025 15:36:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=z572.online; s=me; t=1743795785; h=from:from: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; bh=d+Tcj8YKJwMxxKBNBdnHEFQWb9jCS16rXm8/jFlvovo=; b=sUEtaIY70zXePUo2ozlKg1XixoPzAMy5Ihib4ICOsghheg6g+NgIPgXWgstaUHh7NIRtMY 2WVqueK+maAFs/FKiAIO6Jp2j/G65fwnx6sFo84hemgNX/B5ZlrqN8LOpWqNAejJfC5ZNQ imn/uWgFQNV+kckf9wKlkcjgfTwF85Q= Received: from m.tailaa68d.ts.net (mail1.85362086.com [107.174.64.25]) by mail.z572.online (OpenSMTPD) with ESMTPSA id 1a18f954 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Fri, 4 Apr 2025 19:43:03 +0000 (UTC) From: Zheng Junjie Date: Sat, 5 Apr 2025 03:36:31 +0800 Message-ID: X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Received-SPF: pass client-ip=88.99.160.180; envelope-from=z572@z572.online; helo=mail.z572.online X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 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, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=1.026, PDS_OTHER_BAD_TLD=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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 * gnu/system/images/visionfive2.scm (visionfive2-barebones-os): [initrd-modules]: Add mmc_block, clk-starfive-jh7110-aon, clk-starfive-jh7110-stg, phy-jh7110-dphy-tx, pcie_starfive and nvme. Change-Id: I1d7ced9bad7e94045ab1caa2315871cd56ca50f4 --- gnu/system/images/visionfive2.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) base-commit: 1436165c2f0adbb44d3f033c54db692167591248 prerequisite-patch-id: f6807c214a9924fb57a2a054dceba1802ba4536c diff --git a/gnu/system/images/visionfive2.scm b/gnu/system/images/visionfive2.scm index 26f70afbc14..744f8c1d485 100644 --- a/gnu/system/images/visionfive2.scm +++ b/gnu/system/images/visionfive2.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2024-2025 Zheng Junjie <873216071@qq.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -38,6 +38,7 @@ (define-module (gnu system images visionfive2) #:use-module (gnu system) #:use-module (gnu system file-systems) #:use-module (gnu system image) + #:use-module (gnu system linux-initrd) #:use-module (guix platforms riscv) #:use-module (srfi srfi-26) #:export (visionfive2-barebones-os @@ -70,6 +71,14 @@ (define visionfive2-barebones-os (type "ext4")) %base-file-systems)) (kernel-arguments (list "earlycon" "clk_ignore_unused")) + (initrd-modules + (append (list "mmc_block" + "clk-starfive-jh7110-aon" + "clk-starfive-jh7110-stg" + "phy-jh7110-dphy-tx" + "pcie_starfive" + "nvme") + %base-initrd-modules)) (firmware '()) (packages (append (list cloud-utils neofetch) %base-packages)) (services