unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: paul <goodoldpaul@autistici.org>
Cc: Vagrant Cascadian <vagrant@debian.org>, help-guix@gnu.org
Subject: Re: Pinebook Pro boot from NVME
Date: Sun, 15 Oct 2023 09:22:31 +0300	[thread overview]
Message-ID: <ZSuFJyZIlfTjF3v3@3900XT> (raw)
In-Reply-To: <e4628cb2-f566-5519-c869-ba7a0434d662@autistici.org>

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

On Thu, Oct 12, 2023 at 11:27:37PM +0200, paul wrote:
> Hi Vagrant,
> 
> On 10/12/23 06:41, Vagrant Cascadian wrote:
> > On 2023-10-07, paul via wrote:
> > > I'm interested in using the best distro in the world on my Pinebook Pro
> > > (currently the bootloader is broken on master, see [0], but guix
> > > time-machine allows me to still be able to proceed).
> > I was not aware of this bug, will try and take a look at it sometime,
> > though not quire sure when...
> > 
> > 
> > > I'm able to do so and Guix boots perfectly from choosing the SD card
> > > from the Tow Boot menu but I'm unable to make the default image boot
> > > from a NVME disk.
> > > 
> > > This is the workflow I'm using:
> > > 
> > > image=$(guix time-machine --commit=d6a53849935f8584e1df57faa79c18c23fbb2aa1 --system image -e '(@ (gnu system images pinebook-pro) pinebook-pro-barebones-raw-image)' --system=aarch64-linux)
> > If you are using this specific commit to get a working u-boot, you
> > probably do not need to, as Tow Boot replaces u-boot entirely... but on
> > to the real issue...
> Could you please elaborate on the correct way to boot a Guix system with tow
> boot? I'm not very experienced but, since I run tow boot, how can I build a
> correct image without u-boot?
> > 

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))

Towboot should pick up grub just fine and you can boot with that.

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

-- 
Efraim Flashner   <efraim@flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2023-10-15  6:23 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 [this message]
2023-10-15 17:21       ` Vagrant Cascadian
2023-10-17 22:02       ` paul via
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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=ZSuFJyZIlfTjF3v3@3900XT \
    --to=efraim@flashner.co.il \
    --cc=goodoldpaul@autistici.org \
    --cc=help-guix@gnu.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).