GNU bug report logs - #71940
[PATCH] system: images: Add comment how to enlarge visionfive2 root partition.

Previous Next

Package: guix-patches;

Reported by: Florian Pelz <pelzflorian <at> pelzflorian.de>

Date: Thu, 4 Jul 2024 14:25:01 UTC

Severity: normal

Tags: patch

Done: "pelzflorian" <pelzflorian <at> pelzflorian.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: "pelzflorian" <pelzflorian <at> pelzflorian.de>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#71940: closed ([PATCH] system: images: Add comment how to
 enlarge visionfive2 root partition.)
Date: Sun, 07 Jul 2024 09:04:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 07 Jul 2024 11:03:24 +0200
with message-id <47ea-668a5a00-95-4b04d800 <at> 255064684>
and subject line Re: [bug#71940] [PATCH] system: images: Add comment how to enlarge  visionfive2 root partition.
has caused the debbugs.gnu.org bug report #71940,
regarding [PATCH] system: images: Add comment how to enlarge visionfive2 root partition.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
71940: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71940
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Florian Pelz <pelzflorian <at> pelzflorian.de>
To: guix-patches <at> gnu.org
Cc: Florian Pelz <pelzflorian <at> pelzflorian.de>
Subject: [PATCH] system: images: Add comment how to enlarge visionfive2 root
 partition.
Date: Thu,  4 Jul 2024 16:22:38 +0200
fdisk as documented upstream does *not* work and breaks boot on 4 microSD
cards that I tried.

* gnu/system/images/visionfive2.scm: Add comment.
[visionfive2-barebones-os]<packages>: Add `parted'.
Remove not generally useful `cloud-utils', 'neofetch' packages.

Change-Id: Ibcb6fd70e3ecc194187c4e882e983740349960cc
---
 gnu/system/images/visionfive2.scm | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/gnu/system/images/visionfive2.scm b/gnu/system/images/visionfive2.scm
index 26f70afbc1..731fd8fa47 100644
--- a/gnu/system/images/visionfive2.scm
+++ b/gnu/system/images/visionfive2.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2024 Zheng Junjie <873216071 <at> qq.com>
+;;; Copyright © 2024 Florian Pelz <pelzflorian <at> pelzflorian.de>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -19,19 +20,13 @@
 (define-module (gnu system images visionfive2)
   #:use-module (gnu bootloader)
   #:use-module (gnu bootloader u-boot)
-  #:use-module (gnu services dbus)
-  #:use-module (gnu services dns)
-  #:use-module (gnu services avahi)
-  #:use-module (gnu services shepherd)
   #:use-module (gnu services ssh)
   #:use-module (gnu services networking)
   #:use-module (gnu image)
-  #:use-module (gnu packages linux)
   #:use-module (guix packages)
 
+  #:use-module (gnu packages disk)
   #:use-module (gnu packages ssh)
-  #:use-module (gnu packages guile-xyz)
-  #:use-module (gnu packages admin)
   #:use-module (gnu services)
   #:use-module (gnu services base)
   #:use-module (gnu services networking)
@@ -54,6 +49,10 @@ (define-module (gnu system images visionfive2)
 ;;; uboot> setenv fdtfile starfive/jh7110-starfive-visionfive-2-v1.3b.dtb
 ;;; uboot> saveenv
 ;;;
+;;; Use parted and resize2fs to enlarge the root partition.  While StarFive
+;;; recommends using fdisk and not parted in their Quick Start Guide, for
+;;; this Guix System image, this would give us an unbootable state.
+;;;
 ;;; Code:
 
 (define visionfive2-barebones-os
@@ -71,7 +70,7 @@ (define visionfive2-barebones-os
                         %base-file-systems))
     (kernel-arguments (list "earlycon" "clk_ignore_unused"))
     (firmware '())
-    (packages (append (list cloud-utils neofetch) %base-packages))
+    (packages (append (list parted) %base-packages))
     (services
      (append (list (service openssh-service-type
                             (openssh-configuration

base-commit: 3979812d4923e980f0069ad99332e2df7c033769
-- 
2.45.2



[Message part 3 (message/rfc822, inline)]
From: "pelzflorian" <pelzflorian <at> pelzflorian.de>
To: "Zheng Junjie" <zhengjunjie <at> iscas.ac.cn>
Cc: 71940-done <at> debbugs.gnu.org
Subject: Re: [bug#71940] [PATCH] system: images: Add comment how to enlarge 
 visionfive2 root partition.
Date: Sun, 07 Jul 2024 11:03:24 +0200
[Message part 4 (text/plain, inline)]
Hello Zheng, you are right: growpart indeed can properly enlarge my again newly bought, identical microSD card.  However this time, fdisk works too as described in upstream’s Quick Start Guide.  It appears the newly bought first microSD and the old microSD cards were somehow faulty as well.

Perhaps we could add a warning of faulty microSD cards, but actually this is not just about visionfive2.

We could add a comment to visionfive2.scm to use growpart, but I believe fdisk is not at fault, fdisk could be used just as well.  parted worked better than fdisk by chance.

We could remove unused modules from visionfive2.scm like in the patch, as reported by

$ guix shell guile-next
[env]$ guild compile -Wunused-module gnu/system/images/visionfive2.scm

but visionfive2.scm is not the only file in images with unused modules.

I just close this patch now.

Regards,
Florian
 
[Message part 5 (text/html, inline)]

This bug report was last modified 320 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.