unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Tobias Geerinckx-Rice <me@tobias.gr>
To: znavko@disroot.org
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Boot Guix from Grub on Coreboot laptop
Date: Fri, 27 Aug 2021 22:35:20 +0200	[thread overview]
Message-ID: <c46b817b3e096fa6fbd10d68798d55d5@tobias.gr> (raw)
In-Reply-To: <8469fea0041309a3a5df02a65d61a9e7@disroot.org>

Hi znavko,

TL;DR: see 'configfile' below.

On 2021-08-27 21:52, znavko--- via wrote:
> I burned an usb-stick that is booting perfectly on my PC, but it does
> not boot on the coreboot laptop. When I choose from the menu "Search
> ISO linux menu (USB)" it does not start booting from usb.

If that's a verbatim quote, that's one unclear menu entry!

I wonder if it's trying to refer to ISOLINUX[0], software we don't use 
at all.

Maybe it's just an awkward way of saying "search for .iso image files, 
on a file system, on a USB drive"...?  I'm just guessing here, but can't 
think of a reading that would be relevant to booting a correctly-created 
Guix installer and would disregard this option as irrelevant.

> And I enter grub command line and type:
>> ls
> ... (usb1) (usb1,msdos2)
>> set root=(usb1,msdos2)
>> chainloader /efi/boot/bootx64.efi
> error: unrecognized payload type.

You need a UEFI 'OS' like Tianocore to run .efi programmes.  Your other 
laptop boots one, your Coreboot one doesn't, by design.  That's OK: GRUB 
doesn't need UEFI, nor does Linux.

Don't try to chainload the GRUB on the USB drive at all.  Instead, 
simply let Coreboot's GRUB parse the Guix installer's configuration file 
directly like so:

   configfile (usb1,something)/boot/grub/grub.cfg

I can't say for sure what the exact drive + file name should be, but it 
will be very close.  Then Coreboot will display Guix's menu instead of 
its own, and you should be able to boot Guix with it.

Separately setting $root has never been necessary IME.

> I do not know what to do here.
> I also tried to find 'vmlinuz' and 'initrd' on '(usb1)' but it's hard
> to find them there.

(...who still uses 'vmlinuz'?  Anyway, Guix doesn't.)

Even then, this approach won't work.  The kernel and initrd file names 
alone aren't enough to boot the system.  See the Guix ISO's grub.cfg's 
'linux ...' line.

> Can you help? Could Guix OS boot under Coreboot?

Yes, but only if you call it by its name 'Guix System' from now on :o)

Here's a guide from someone who does so, although it seems to assume you 
use LUKS and Libreboot: 
<https://flossmanuals.net/pub/guix-system-and-libreboot.pdf>

Good luck!

T G-R

[0]: https://wiki.syslinux.org/wiki/index.php?title=ISOLINUX


      reply	other threads:[~2021-08-27 20:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-27 19:52 Boot Guix from Grub on Coreboot laptop znavko--- via
2021-08-27 20:35 ` Tobias Geerinckx-Rice [this message]

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=c46b817b3e096fa6fbd10d68798d55d5@tobias.gr \
    --to=me@tobias.gr \
    --cc=help-guix@gnu.org \
    --cc=znavko@disroot.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).