From: Marius Bakke <mbakke@fastmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 6/6] gnu: Add grub-efi.
Date: Tue, 20 Dec 2016 15:42:58 +0100 [thread overview]
Message-ID: <87a8bqbr0t.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <87d1gmiu5b.fsf@gnu.org>
[-- Attachment #1.1: Type: text/plain, Size: 1775 bytes --]
Ludovic Courtès <ludo@gnu.org> writes:
> Hello!
>
> Marius Bakke <mbakke@fastmail.com> skribis:
>
>>>> OK. I'll try to find out why tests don't work with the UEFI variant
>>>> first in order to at least write a meaningful comment. Maybe qemu needs
>>>> UEFI support or something like that.
>>>
>>> It might be that we no longer need QEMU 1.3.1 to run the tests (see the
>>> top of gnu/packages/grub.scm)?
>>
>> The problem is missing UEFI firmware for the qemu calls. But we indeed
>> no longer need qemu@1.3.1 for the tests, at least on x86_64. I replaced
>> it with 'qemu-minimal'. Pushed!
>
> Great!
>
> I’m failing at installing GuixSD on a new laptop I have here.
> ‘efibootmgr’ exits with code 2 and this message:
>
> EFI variables are not supported on this system.
>
> (which ‘grub-install’ happily ignores.)
>
> This is because /sys/firmware/efi is missing, which apparently is
> because I booted off the GuixSD USB image (“legacy”) and not in EFI
> mode.
>
> What would you suggest? :-)
What I did was a normal BIOS install, backup the grub.cfg, switch laptop
to UEFI (only) and boot a Debian live CD. From there "apt-get install
grub-efi; grub-install /dev/sda" and afterwards copy grub.cfg in place.
You may want to add "insmod efi_gop" and "insmod efi_uga" to grub.cfg,
otherwise you won't get a framebuffer until the proper video driver is
loaded (which may require unlocking root partition etc).
Not the most user friendly installation instructions! I'm researching
methods to make the base install image hybrid BIOS/UEFI.
Once booted, you should apply the following two patches when
reconfiguring the system. I think they are safe for BIOS systems too,
but haven't done extensive testing.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-build-Make-grub-install-command-UEFI-aware.patch --]
[-- Type: text/x-patch, Size: 943 bytes --]
From fa12cd92a2e4eead22f640d6231813e50b8191bf Mon Sep 17 00:00:00 2001
From: Marius Bakke <mbakke@fastmail.com>
Date: Sun, 6 Nov 2016 17:26:06 +0000
Subject: [PATCH 1/2] build: Make grub-install command UEFI aware.
* gnu/build/install.scm (install-grub): Extend grub-install command with
'--bootloader-id' and '--efi-directory'.
---
gnu/build/install.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gnu/build/install.scm b/gnu/build/install.scm
index 5c2b35632..ddd95bbf6 100644
--- a/gnu/build/install.scm
+++ b/gnu/build/install.scm
@@ -54,6 +54,9 @@ GC'd."
(unless (zero? (system* "grub-install" "--no-floppy"
"--boot-directory"
(string-append mount-point "/boot")
+ "--bootloader-id=GNU"
+ "--efi-directory"
+ (string-append mount-point "/boot")
device))
(error "failed to install GRUB")))
--
2.11.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-system-Load-efi-modules-in-grub.cfg.patch --]
[-- Type: text/x-patch, Size: 749 bytes --]
From dd71d9b334ceccc09cd42484c6deac2079c44c70 Mon Sep 17 00:00:00 2001
From: Marius Bakke <mbakke@fastmail.com>
Date: Mon, 7 Nov 2016 12:24:01 +0000
Subject: [PATCH 2/2] system: Load efi modules in grub.cfg.
* gnu/system/grub.scm (eye-candy): Load 'efi_gop' and 'efi_uga' grub modules.
---
gnu/system/grub.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gnu/system/grub.scm b/gnu/system/grub.scm
index 4657b06b5..9477b2494 100644
--- a/gnu/system/grub.scm
+++ b/gnu/system/grub.scm
@@ -183,6 +183,8 @@ system string---e.g., \"x86_64-linux\"."
(if (string-match "^(x86_64|i[3-6]86)-" system)
"
# Leave 'gfxmode' to 'auto'.
+ insmod efi_gop
+ insmod efi_uga
insmod vbe
insmod vga
insmod video_bochs
--
2.11.0
next prev parent reply other threads:[~2016-12-20 14:43 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-05 12:55 Initial vfat support Marius Bakke
2016-11-05 12:55 ` [PATCH 1/6] gnu: Add fatfsck-static Marius Bakke
2016-11-05 16:01 ` Hartmut Goebel
2016-11-05 16:11 ` Marius Bakke
2016-11-06 21:42 ` Ludovic Courtès
2016-11-05 12:55 ` [PATCH 2/6] linux-initrd: Support FAT filesystems Marius Bakke
2016-11-06 21:44 ` Ludovic Courtès
2016-11-05 12:55 ` [PATCH 3/6] file-systems: Suppress fsck status completion bar Marius Bakke
2016-11-06 21:47 ` Ludovic Courtès
2016-11-07 0:00 ` Marius Bakke
2016-11-07 8:59 ` Ludovic Courtès
2016-11-07 9:29 ` Marius Bakke
2016-11-07 10:15 ` Danny Milosavljevic
2016-12-17 9:40 ` Marius Bakke
2016-12-18 10:57 ` Ludovic Courtès
2016-11-05 12:55 ` [PATCH 4/6] gnu: Add efivar Marius Bakke
2016-11-06 21:51 ` Ludovic Courtès
2016-11-05 12:55 ` [PATCH 5/6] gnu: Add efibootmgr Marius Bakke
2016-11-06 21:52 ` Ludovic Courtès
2016-11-05 12:55 ` [PATCH 6/6] gnu: Add grub-efi Marius Bakke
2016-11-05 18:58 ` Leo Famulari
2016-11-05 19:38 ` Marius Bakke
2016-11-06 22:00 ` Ludovic Courtès
2016-11-07 0:19 ` Marius Bakke
2016-11-07 9:00 ` Ludovic Courtès
2016-11-07 9:23 ` Marius Bakke
2016-12-16 17:09 ` Ludovic Courtès
2016-12-16 17:16 ` Danny Milosavljevic
2016-12-16 17:33 ` Marius Bakke
2016-12-18 10:54 ` Ludovic Courtès
2016-12-18 14:36 ` Marius Bakke
2016-12-19 10:48 ` Ludovic Courtès
2016-12-19 15:49 ` Marius Bakke
2016-12-19 21:16 ` Ludovic Courtès
2016-12-19 22:48 ` Marius Bakke
2016-12-20 13:53 ` Ludovic Courtès
2016-12-20 14:42 ` Marius Bakke [this message]
2016-12-20 16:53 ` Ludovic Courtès
2016-12-20 18:43 ` Marius Bakke
2016-12-21 9:12 ` Ludovic Courtès
2016-12-21 18:55 ` Danny Milosavljevic
2017-01-03 16:06 ` Ludovic Courtès
2017-01-03 16:16 ` Chris Marusich
2017-01-04 22:18 ` Ludovic Courtès
2016-12-17 9:38 ` Marius Bakke
2016-12-17 10:15 ` Marius Bakke
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=87a8bqbr0t.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me \
--to=mbakke@fastmail.com \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).