Gentoo Archives: gentoo-user

From: Tom H <tomh0665@×××××.com>
To: Gentoo User <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] EFI install ( continum) [ system hangs at boot ]
Date: Mon, 02 Mar 2015 18:58:33
Message-Id: CAOdo=SyAb-h2y1MKDHJvU3HM6avfs-MhH9LcfTnoa5GvpX+JBA@mail.gmail.com
In Reply to: Re: [gentoo-user] EFI install ( continum) [ system hangs at boot ] by Fernando Rodriguez
1 On Mon, Mar 2, 2015 at 2:00 AM, Fernando Rodriguez
2 <frodriguez.developer@×××××××.com> wrote:
3 > On Saturday, February 28, 2015 12:50:37 PM Tom H wrote:
4 >> On Fri, Feb 27, 2015 at 5:47 PM, Fernando Rodriguez
5 >> <frodriguez.developer@×××××××.com> wrote:
6 >>>
7 >>> Efibootmgr is not a boot manager, it's an utility to interface with the EFI
8 >>> firmware on the motherboard and you don't need to hardcode the command line
9 > on
10 >>> the kernel, look at the -u option of efibootmgr. You can even load an
11 > initrd
12 >>> with it by specifying the efi_memmap boot option. I use something like this
13 > (it
14 >>> shoulld work with any firmware because Windows uses it):
15 >>>
16 >>> efibootmgr -p 2 -c -b 0001 -l "\EFI\Linux\vmlinuz.efi" -L "Gentoo Linux" -u
17 >>> "root=/dev/sda2 resume=/dev/sda3 quiet splash efi_memmap
18 >>> initrd=/EFI/Linux/initramfs.img"
19 >>
20 >> Interesting. I must be over-complicating things because I use the
21 >> following when I want to use the EFI stub without gummiboot:
22 >>
23 >> # cat /boot/efi/efi-extra.txt \
24 >> | iconv -f ascii -t ucs2 \
25 >> | efibootmgr -b 0000 -c -L 3.19.0 -l vmlinuz-3.19.0 -u -@ -
26 >>
27 >> where
28 >>
29 >> # cat /boot/efi/efi-extra.txt
30 >> initrd=initrd.img-3.19.0
31 >> root=UUID=b51ee688-137c-47ec-9635-b69434b4e1f8 ro
32 >> init=/lib/systemd/systemd
33 >
34 > It's a good idea to do that as it's less error prone. I don't know if you need
35 > iconv in the pipeline but if you put the arguments on the command line it's
36 > not needed. I just called my kernel vmlinuz.efi so I don't need to do that
37 > everytime I update it and use grub if I need to boot an alternate kernel or
38 > boot with different options.
39
40 Thanks. Next time that I feel adventurous, I'll replace my gummiboot
41 nvram entry with a vmlinuz one without cat and iconv. I made big
42 changes after the last efi boot thread on this list so I'll wait a
43 bit. :)