Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
UEFI - boot freezes before initrd [SOLVED]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1520
Location: KUUSANKOSKI, Finland

PostPosted: Sun Sep 16, 2018 8:29 pm    Post subject: Reply with quote

I've been having one of the worst influenzas ever. I finally got some energy and motivation.

I tried the oldest 4.14 gentoo-sources kernel from gentoo tree with the same .config but ran make oldconfig first. Same result.
I tried make allyes from latest 4.14. Same result.

Few things to consider now:
  • My server has almost identical setup and UEFI boots just fine
    • FX-8350 vs. Opteron 3380
    • both boot from USB stick
    • both have root partition on multi-device btrfs
    • Both on amd64 (stable)
  • There were no problems when BIOS booting
  • Gentoo Live boots just fine, but make allyes -kernel does not


With allyes kernel there should be more than the few messages rEFInd or grub prints after choosing the boot entry.
I'm soon gonna give a MBR bootloader a try. This is driving my crazy.
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1414

PostPosted: Sun Sep 16, 2018 9:37 pm    Post subject: Reply with quote

Zucca wrote:
... In fact I can load grub via rEFInd. And yes, grub fails the same way.

I dont know your partitions layout. But with grub it will be difficult for you. Grub/Grub2 doesnt support zstd on /root.
Look here GRUB lacks support for Zstd

I wish you to get well soon.
Ma
_________________
Thank you for your attention, interest and support.
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1520
Location: KUUSANKOSKI, Finland

PostPosted: Sun Sep 16, 2018 10:32 pm    Post subject: Reply with quote

  • /boot - ext4
  • /boot/efi - FAT32
  • / - btrfs

:wink:
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1520
Location: KUUSANKOSKI, Finland

PostPosted: Mon Sep 17, 2018 4:35 pm    Post subject: Reply with quote

One more oddity: The Gentoo Live I use has 4.14.65 kernel. That's the same version I've been trying to get working...
Although, now I know it's not the kernel to blame. Also I could use the same config as the live to get started...

Fingers crossed once again.
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 865
Location: The Village, Portmeirion

PostPosted: Mon Sep 17, 2018 7:25 pm    Post subject: Reply with quote

Zucca wrote:
  • /boot - ext4
  • /boot/efi - FAT32
  • / - btrfs

:wink:

I can't the see the need to use an initrd for that. AMDGPU? That can wait can't it?

What drove me nuts about initrd's is they don't throw any error messages when something goes wrong.

I ended up making my own, editing the init script to "echo" everything it was doing so I'd know where the problem was occurring. Or even using Bash for the interpreter and "set -x" in the script to tell me something, anything.

I think you need to "roll your own" on this one.
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1520
Location: KUUSANKOSKI, Finland

PostPosted: Mon Sep 17, 2018 8:51 pm    Post subject: Reply with quote

My root partition is multi-device btrfs. btrfs device scan needs to be executed before mounting root.
There is a way to mount multi-device btrfs via kernel command line by specifying each device by its device node. That isn't very realiable, unless for example grub could probe and list all filesystems by LABEL or by UUID and then construct rest of the kernel command line...

I think it can. Hmmm! I think I need to try that out... I need to script it myself. The method uses multiple device= arguments for rootfsflags.
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
joanandk
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2017
Posts: 80

PostPosted: Tue Sep 18, 2018 6:38 am    Post subject: Reply with quote

Hi Zucca,

If I read all your posts correctly, the situation is the follwoing:
a) With a live cd you are able to boot your system in UEFI mode.
b) Your gentoo installation is able to start in BIOS emulation mode.
c) Your same gentoo is unable to start in UEFI only mode and gets "stuck" after initrd is loaded

Did you enable "VGA/VBE/EFI FB as generic system framebuffer" under bus options and "Simple framebuffer support" under frame buffer devices?

I would suggest you compare the lspci with live cd under UEFI mode and lspci with your system under BIOS mode. I know that Apple changes pci-id depending on BIOS emulation or UEFI mode.

BR
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1520
Location: KUUSANKOSKI, Finland

PostPosted: Tue Sep 18, 2018 5:57 pm    Post subject: Reply with quote

joanandk wrote:
"Simple framebuffer support" under frame buffer devices?
:!: :!: :!:
That was the magic! Now I can see the error messages.
A HUGE thank you!
Now I can see why mounting root fails. I have few extra options in rootfsflags.

Marking as [SOLVED].
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum