You are not logged in.

#1 2013-08-30 02:17:28

Teito
Member
Registered: 2013-08-30
Posts: 5

[Solved] UEFI Boot Failure

So I just got a now mobo that is UEFI and I tried loading Arch using the normal method.

i.e.( Partition, mkfs, mount, modprobe, chroot, install, reboot)

However when I arrive to what should be the boot I get a Black Screen with cursor.

I have read plenty of posts of the same issue, but to no avail.

This was using the EFIstub only, when I tried gummiboot I was unable to create EFI Boot variables. (I did check if in UEFI)

So now I am scratching my head as to what is going on.

Partitions are standard (gpt)

sda1 512M Fat32 ESP
sda2 10G Swap
sda3 100G Root
sda4 1.7T Home

Mobo is
M5A99FX ASUS

Any help is greatly appreciated.

Last edited by Teito (2013-08-30 19:43:20)

Offline

#2 2013-08-30 03:57:08

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] UEFI Boot Failure

There are many here who would love to help you.  But you are not very specific in how you set things up.

Offline

#3 2013-08-30 04:56:57

Teito
Member
Registered: 2013-08-30
Posts: 5

Re: [Solved] UEFI Boot Failure

Understood, let me try and elaborate.

Using gdisk I set partitions as so.

sda1 512M Fat32 ESP
sda2 10G Swap
sda3 100G Root
sda4 1.7T Home

mkfs.ext4 for both sda3 and sda4

mkswap for sda2 then swapon as well.

mkfs.vfat -F32 for sda1, as it is my ESP partition.

Then after mounting sda3 as /mnt I mounted sda4 as /mnt/home  , then sda1 as /mnt/boot
Pacman install followed with "pacman /mnt base"
genfstab, checked and no issues there.

Then before chroot I followed the wiki with:
# umount /sys/firmware/efi/efivars
# modprobe -r efivars
# modprobe efivars

All of which had no errors.

Then chroot in and edit the locale files as well as vconsole (As I use dvorak)

Clocks were set, no issues.

Wired connection to a static IP, so no work there.

Then I created Ram disk with  mkinitcpio -p linux
as is normal.

Now when I got to the bootloader portion I followed it exactly.
# pacman -S efibootmgr
# efibootmgr -c -L "Arch Linux" -l /vmlinuz-linux -u "root=/dev/sda1 rw initrd=/initramfs-linux.img"

Then I exited , umounted, and rebooted.

Completely standard install.

When I got to POST I went into the UEFI to check if it was there, which it was there as "Arch Linux"

Then restarted after setting it as first boot and I got a black screen with a cursor.

Can't be any more detailed then that really.

Offline

#4 2013-08-30 05:13:38

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] UEFI Boot Failure

I think yuo might have forgotten to actually install and configure gummiboot.

Gummiboot is really just a boot manager.  That means it does not load the kernel and initramfs as a typical bootloader would do.  Instead, it simply allows the selection of an efi application and the option to pass arguments if desired/needed.  The Linux kernel these days has CONFIG_EFISTUB, which allows the kernel to act as its own UEFI bootloader.  So in reality gummiboot is just a menu to select that real bootloader.

So what you actually tried to do there is create a direct firmware entry.  This is also using Linux as its own bootloader (via efistub).  But instead, you simply append the kernel command line arguments to the bootloader (the kernel) directly in that firmware entry.  So I am not sure if this was actually your intended goal or not.

I would recommend using the boot manager, and personally I like gummiboot because it is super straight forward to configure.  But you are welcome to try using the direct firmware entry as well.  Some would argue that the direct entry is faster, but the time it takes for my machine to load gummiboot is typically 14ms, so I consider that argument a bit silly.  The advantages of being able to edit the kernel command line before booting are worth far more than 14ms, which is far less than what we used to wait for grub to load from the disk's boot sector.

In order to be absolutely sure you are getting gummiboot, you should install gummiboot (which should actually automatically install itself as /boot/EFI/gummiboot/gummiboot.efi as well as /boot/EFI/boot/bootx64.efi and attempt to make a firmware entry as "Linux Boot Manager").  But instead of trying to use the firmware entry, boot from the disk that the ESP resides on.  \EFI\boot\bootx64.efi is the "default" position, so it is what the firmware is designed to search for in the event that it is booting with UEFI and a disk has been selected (instead of an efibootmgr firmware entry).  If you have configured gummiboot properly, you will at least make it to the gummiboot menu and know that your UEFI is at least working… as long as you set a timeout >0.

I guess you should clarify what your actualy goal/preference is here, and then we can go from there.

Offline

#5 2013-08-30 08:51:58

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: [Solved] UEFI Boot Failure

Some problem is currently causing black screens, by Nvidia video cards.
Which card are you having?
BTW is initrd in the same directory of vmlinuz-linux ?


do it good first, it will be faster than do it twice the saint wink

Offline

#6 2013-08-30 10:20:38

Teito
Member
Registered: 2013-08-30
Posts: 5

Re: [Solved] UEFI Boot Failure

I had tried gummiboot, but I was unable to use it as when I tried to install it gave me an error of "failed to create or edit EFI variable." And I did check that I was in UEFI boot with my disk.

I had no preference other than to have it work.

I have a Radeon card, and it does not load the bootloader, I do not believe it to be any graphics issue.

Offline

#7 2013-08-30 16:31:56

Teito
Member
Registered: 2013-08-30
Posts: 5

Re: [Solved] UEFI Boot Failure

Allright I have once again loaded everything per wiki standards (Beginners guide) and set up the efivarfs mount for gummiboot.

I am at the step to install a boot loader and I after running gummiboot install I get

Created /boot/EFI/BOOT
Created /boot/loader
Created /boot/loader/entries
Copied /usr/lib/gummiboot/gummibootx64.efi to /boot/EFI/gummiboot/gummibootx64.efi
Copied /usr/lib/gummiboot/gummibootx64.efi to /boot/EFI/BOOT/BOOTx64.efi
Failed to create EFI Boot variable entry: No such file or directory

What can I do at this step to remedy the issue?
Thanks in advance.

Also there is no initrd in the /boot with vmlinuz-linux.

Last edited by Teito (2013-08-30 16:35:53)

Offline

#8 2013-08-30 16:44:29

Teito
Member
Registered: 2013-08-30
Posts: 5

Re: [Solved] UEFI Boot Failure

Haha, I seem to be mentally incapacitated as I did not see the giant "bug" warning.

I got it working, thanks a ton for the assistance though.

I had to manually add with efibootmgr then make a arch.conf  I had somehow missed this part.

Offline

Board footer

Powered by FluxBB