Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] LiveUSB stuck after Grub on new system
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
snake111
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2004
Posts: 124

PostPosted: Wed Mar 26, 2025 2:41 pm    Post subject: [SOLVED] LiveUSB stuck after Grub on new system Reply with quote

I cannot get past Grub using the liveUSB minimal installation CD (20250322).
I believe it's an early kernel panic, exactly as described here: https://forums.gentoo.org/viewtopic-t-1167043-start-0.html

I get to grub no problem, press enter to start the first entry but then it gets stuck with this message:

Code:

EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
EFI stub: Measured initrd data into PCR 9


Nothing else on the screen. I tried a liveUSB of ubuntu and I got the exact same behavior and error.


This is a new system and never been booted with anything so far. There is no data or anything of value stored, so I can mess around as long as I don't brick the hw..

MOBO: https://eps.msi.com/en/product/server-motherboards/D3052-D3052GB2N-25G
CPU: AMD Ryzen 7 9700X
RAM: 2 x 48 GB ECC Kingston https://www.kingston.com/en/memory/server-premier/ddr5-5600mts-ecc-unbuffered-dimm

There is a beta bios installed to support Ryzen 9000 series. I got it from MSI.
Secure boot is disabled.


Any idea of what could be wrong? I have no clue and not very keen in randomly messing with BIOS settings.
Thanks!


Last edited by snake111 on Mon Mar 31, 2025 3:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
snake111
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2004
Posts: 124

PostPosted: Wed Mar 26, 2025 6:46 pm    Post subject: Reply with quote

It looks like it is something related to the graphics drivers, probably amdgpu non being used.

I attached an old screen to the VGA port of the mobo, that is connected to the BMC, and I can see it boot fine using the gentoo live USB.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5659
Location: Bavaria

PostPosted: Thu Mar 27, 2025 2:56 pm    Post subject: Reply with quote

snake111,

did you use the latest UbuntuLiveCD? Your cross-check with Ubuntu was very useful because usually the Ubuntu kernel is heavily patched (and also the firmware is always very new). If your system does not (yet) boot with Ubuntu, the only thing you can do at the moment: Wait.

The drivers for an amdgpu are patched in almost every new minor version of the kernel. This means that sometimes it helps to use the next minor version.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55227
Location: 56N 3W

PostPosted: Thu Mar 27, 2025 3:32 pm    Post subject: Reply with quote

snake111,

That's a server motherboard. It will have several different consoles.

The one you see if you connect a VGA display, that's connected to the AST 2600.
The serial over LAN (SoL) that you get with ipmitool. There may be several SoL consoles too.
The one you see if you connect to the Board Management Computer (BMC) web interface.
Another one if you have a some other GPU.

IPMItool with SoL is as good as it gets. This IPMItool]section may give you some pointers. Its for a completely different board but it uses the AST 2600 too.

Play with SoL, see what you can see.
If there is a panic, you can capture all the gory detail. That's the nice thing about serial.

You may need to add the console on serial port instruction to the kernel command line.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
snake111
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2004
Posts: 124

PostPosted: Sat Mar 29, 2025 12:02 am    Post subject: Reply with quote

pietinger wrote:
snake111,
did you use the latest UbuntuLiveCD?


Yes I tried Ubuntu LTS and the latest non LTS, no difference.


NeddySeagoon wrote:
snake111,
That's a server motherboard. It will have several different consoles.


I didn't play with IPMItool yet, I just wanted to use the integrated GPU of the Ryzen as you normally do, but no luck so far. I tried to see if the BMC had a webui, but looks like it is API access only, no response when using a browser.
I am also suspecting that some kernel command line parameter might help, but so far no luck in finding out what does the trick.

Today I installed Gentoo on the SSD, with latest microcode/firmware and kernel, but it still does not show anything on the HDMI port connected to the Ryzen GPU.
The VGA port works as with the LiveUSB, it even switches to the higher resolution framebuffer when using the amdgpu drivers.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55227
Location: 56N 3W

PostPosted: Sat Mar 29, 2025 11:01 am    Post subject: Reply with quote

snake111,

The VGA port on the motherboard comes from the AST 2600 BMC, not the amdgpu embedded in your CPU.
It uses the ast2x00 (from memory) kernel DRM driver. AMDGPU is not involved.

I suspect that the LiveUSB is drawing the console on one GPU and you are looking at another.
dmesg would confirm that. SoL with ipmitool would show all. You will need a console command on the kernel command line to put a copy of the console on ttfS0, and configule the firmware to redirect ttyS0 to SoL.
You even get the firmware setup there too.

If you can get into the BIOS, its usually possible to set the primary GPU.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
snake111
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2004
Posts: 124

PostPosted: Sat Mar 29, 2025 3:45 pm    Post subject: Reply with quote

I know that the VGA is not from the CPU/GPU, it's pretty clear from the manual, see my second message.
I also tried with a Ryzen with no integrated GPU and the VGA out was working while HDMI obviously not, since there was no GPU to drive it.

I agree that the LiveUSB is pushing the console/output on the VGA. If I attach two monitors that's exactly what happens: I get the post and GRUB on both monitors, but then HDMI remains stuck as described in my first message, while on VGA I can see the kernel loading and the login prompt after that.

I might need to investigate using ipmtool, but I have no experience in that. I tend to agree with you that it looks like I'm missing some kernel command to redirect/instruct to use the HDMI as output, I'll try to see if I find something.
I tested a few bios settings for the main GPU, but made no difference. In fact the BIOS already uses the HDMI output, all the way till grub. So not sure if any setting there is able to affect what's being used by the kernel?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55227
Location: 56N 3W

PostPosted: Sat Mar 29, 2025 4:06 pm    Post subject: Reply with quote

snake111,

Can you put dmesg onto a pastebin please?

You can use the video option on the kernel command line to set the things you want but one of the things you can tell it is the framebuffer driver you want to use.
Its good to know that you have all the bits for amdgpudrmfb before you try to use it or you will get a blank console.

Your kernel is not panicing, its using the built in AST 2600 video card.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
snake111
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2004
Posts: 124

PostPosted: Mon Mar 31, 2025 3:49 pm    Post subject: Reply with quote

I found a way :D

So first I looked ad the video= boot option as you suggested. On this Freedesktop KMS page it says that you can specify a video port option, like DVI-I-1, VGA-1 and so on.
Problem is that I couldn't find a reference for the port names, so I tried HDMI, HDMI-1, but no luck.

Then I had a closer look at my dmesg and I could see that the two framebuffer devices had already been detected correctly: fb0 using the VGA port of the BMS, and fb1 using the amdgpu driver, below the kernel line from dmesg.
Code:
[    9.036474] amdgpu 0000:0b:00.0: [drm] fb1: amdgpudrmfb frame buffer device

On X86 the default is to use the VGA framebuffer (fb0), so I switched to the other (fb1) using fbcon=map:1 and I got output and login prompt on the HDMI screen :)
For details on fbcon see the above Freedesktop link or kernel.org docs.

I suspect that the video= option is useful to customize settings on top of the framebuffer, while in my case I was just using the wrong one.

Thanks for helping out in the troubleshooting :)
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5659
Location: Bavaria

PostPosted: Mon Mar 31, 2025 4:21 pm    Post subject: Reply with quote

snake111 wrote:
Thanks for helping out in the troubleshooting :)

Actually, you figured it all out yourself (together with @Neddy), so thank you very much! :D Look what I've just added :lol: ->
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Kernel_Commandline_Parameter#Parameter:_fbcon.3Dmap:1
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
snake111
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2004
Posts: 124

PostPosted: Tue Apr 01, 2025 11:45 am    Post subject: Reply with quote

Thanks! Love that, 20 years after my first install Gentoo is still a gem of the internet and linux scene <3
Back to top
View user's profile Send private message
snake111
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2004
Posts: 124

PostPosted: Tue Apr 01, 2025 3:12 pm    Post subject: Reply with quote

Related issue for someone in a similar situation: the GRUB menu is not showing with the standard Gentoo handbook instructions.
I fixed it with this GRUB option:
Code:
GRUB_TERMINAL="console"


In my case I also need a generous timeout. After POST the GRUB menu remains hidden for a couple of seconds, so I'd miss it with a timeout of 2-3s.

Other distros did not have this problem, I guess depends on their GRUB defaults, YMMV.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
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