[bug#77543] images: visionfive2: Add support for booting from nvme.

Message ID e4e7b4f0a14dc931d0951b847684ce63b97e60af.1743795391.git.z572@z572.online
State New
Headers
Series [bug#77543] images: visionfive2: Add support for booting from nvme. |

Commit Message

Zheng Junjie April 4, 2025, 7:36 p.m. UTC
  * 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
  

Patch

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