all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: paul via <help-guix@gnu.org>
To: help-guix@gnu.org, efraim@flashner.co.il
Cc: Vagrant Cascadian <vagrant@debian.org>
Subject: Re: Pinebook Pro boot from NVME
Date: Wed, 18 Oct 2023 00:02:12 +0200	[thread overview]
Message-ID: <307431e2-37a4-9cb4-fe16-0a75f3095ec5@autistici.org> (raw)
In-Reply-To: <ZSuFJyZIlfTjF3v3@3900XT>

[-- Attachment #1: Type: text/plain, Size: 2458 bytes --]

Hello Efraim and Vagrant,

thank you for your help so far. I still have problems booting from nvme. 
This is my guix situation:

Generation 7    Oct 15 2023 23:49:39    (current)
   small-guix 4d7a590
     repository URL:https://gitlab.com/orang3/small-guix
     branch: master
     commit: 4d7a5904c760aa4e5fd81434614da9887a0324eb
   nonguix 14656d6
     repository URL:https://gitlab.com/nonguix/nonguix
     branch: master
     commit: 14656d642dc113c73f9b144ccba366376a274a2b
   guix e160054
     repository URL:https://git.savannah.gnu.org/git/guix.git
     branch: master
     commit: e1600546b93bbc2d545730f02e071d35037a1d1a
     

On 10/15/23 08:22, Efraim Flashner wrote:
> Here's a link¹ to my pinebookpro config. The short version is you need
> to change the bootloader to use grub-efi (apparently I went with
> grub-efi-removable-bootloader but I don't remember why)
>
>    (bootloader
>      (bootloader-configuration
>        (bootloader grub-efi-removable-bootloader)
>        (targets '("/boot/efi"))
>        (keyboard-layout keyboard-layout)))
>
> And you need to add /boot/efi as a vfat file system.
>
>    (file-systems
>      (cons* (file-system
>               (device (file-system-label "Guix_image"))
>               (mount-point "/")
>               (type "btrfs")
>               (options "compress=zstd,discard,space_cache=v2"))
>             (file-system
>               (mount-point "/boot/efi")
>               (device (file-system-label "GNU-ESP"))
>               (type "vfat"))
>             %base-file-systems))

I'm attaching the configuration I used, this is the command:

$ guix system image --image-type=pinebook-pro-raw --system=aarch64-linux libre.scm
/gnu/store/r02skdx8jq35mdhh0l8sij423ksqk0hm-disk-image

$ sudo dd if=/gnu/store/r02skdx8jq35mdhh0l8sij423ksqk0hm-disk-image of=/dev/nvme0n1 bs=4M status=progress oflag=sync


but what I got after choosing nvme is in the pinebook-pro-raw.jpg I 
attached.

> ¹https://git.sr.ht/~efraim/guix-config/tree/master/item/pinebookpro.scm#L56

Then I noticed that in your configuration [0] you mention the format 
efi-raw, so I tried:

guix system image --image-type=efi-raw --system=aarch64-linux libre.scm
   

which gives me

guix system: error: EFI bootloader required with GPT partitioning


What am I doing wrong :( ? Again, thank you for the time you are putting 
in this.


giacomo


[0]: 
https://git.sr.ht/~efraim/guix-config/tree/master/item/pinebookpro.scm#L235

[-- Attachment #2: libre.scm --]
[-- Type: text/x-scheme, Size: 738 bytes --]

(define-module (tarapia system libre))
(use-modules (gnu)
             (gnu packages bootloaders)
             (gnu system images pinebook-pro))

(operating-system
  (inherit pinebook-pro-barebones-os)
  (keyboard-layout (keyboard-layout "us" "altgr-intl"))
  (file-systems
   (cons* (file-system
            (device (file-system-label "Guix_image"))
            (mount-point "/")
            (type "ext4"))
          (file-system
            (mount-point "/boot/efi")
            (device (file-system-label "GNU-ESP"))
            (type "vfat"))
          %base-file-systems))
  (bootloader
   (bootloader-configuration
    (bootloader grub-efi-removable-bootloader)
    (targets '("/boot/efi"))
    (keyboard-layout keyboard-layout))))

[-- Attachment #3: pinebook-pro-raw.jpg --]
[-- Type: image/jpeg, Size: 107891 bytes --]

  parent reply	other threads:[~2023-10-17 22:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-07  9:42 Pinebook Pro boot from NVME paul via
2023-10-12  4:41 ` Vagrant Cascadian
2023-10-12 21:27   ` paul
2023-10-15  6:22     ` Efraim Flashner
2023-10-15 17:21       ` Vagrant Cascadian
2023-10-17 22:02       ` paul via [this message]
2023-10-18 10:22         ` Efraim Flashner
2023-10-19 12:30           ` paul via
2023-10-28 21:19     ` Vagrant Cascadian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=307431e2-37a4-9cb4-fe16-0a75f3095ec5@autistici.org \
    --to=help-guix@gnu.org \
    --cc=efraim@flashner.co.il \
    --cc=goodoldpaul@autistici.org \
    --cc=vagrant@debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.