help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pinebook Pro boot from NVME


From: paul
Subject: Re: Pinebook Pro boot from NVME
Date: Wed, 18 Oct 2023 00:02:12 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0

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: libre.scm
Description: Text Data

Attachment: pinebook-pro-raw.jpg
Description: JPEG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]