Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
UEFI boot and early console messages
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
Atom2
Apprentice
Apprentice


Joined: 01 Aug 2011
Posts: 185

PostPosted: Sat May 13, 2017 11:50 am    Post subject: UEFI boot and early console messages Reply with quote

After many attempts I have now finally succeeded in installing and booting gentoo via UEFI. The main issue I was faced with was an SAS adapter which I had crossflashed from its RAID firmware to a simple HBA firmware with adding only the BIOS rom firmware file, but missing out on the UEFI rom firmware file - but that's another story ...

Anyways, I am still struggling with an issue I seem to be unable to solve. I use grub2 to boot the system and I am also able to set the desired graphical video mode in grub. Once I have selected the boot entry and pressed the Enter-key the only thing I see on the console screen is an indication to boot the selected entry (which stems from grub2). After that the monitor does not show any messages until such time the graphics card/framebuffer kernel driver is loaded (which is around the 7 to 8 seconds mark). Only then are boot messages going to show on the console.

I have experimented with numerous combinations of framebuffers (simplefb, efi-fb, mga KMS driver for my card), grub2 settings (gfxmode, gfxpayload) and kernel settings (video=), but none appears to be able to display early boot messages:

While the desired resolutions all work both in grub and in linux, the handover from one to the other seems to stall until such time the linux kernel driver is actually activated. Around the time when the corresponding messages are shown in /var/log/dmesg, boot messages start being displayed on the console video monitor.

I am running out of ideas on how to be able to also display early boot messages on my monitor - even if they showed up in a lower resolution only.

Does a pure UEFI boot scenario (also displaying early boot messages) actually work for anybody or is this simply not possible?

Thanks Atom2
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Sat May 13, 2017 12:29 pm    Post subject: Reply with quote

Quote:
Does a pure UEFI boot scenario (also displaying early boot messages) actually work for anybody or is this simply not possible?
Yes, works for me.
Suggest pastebin your kernel config, lspci -k, grub.cfg .
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Atom2
Apprentice
Apprentice


Joined: 01 Aug 2011
Posts: 185

PostPosted: Sat May 13, 2017 2:14 pm    Post subject: Reply with quote

Hi DONAHUE,
thanks for your confirmation and your offer to help. Please do find the requested pieces of information below.

lspci -k: https://paste.pound-python.org/show/gsD0FypnA3dHn5E2pCNp/
kernel configuration: https://paste.pound-python.org/show/l9IPqcDrnd9gRpDMidLH/
grub.cfg: https://paste.pound-python.org/show/6gmhhePkGz6YOfU6HzQj

I guess the hardware is pretty much obvious from the lspci -k output. Should you require anything else, please do not hesitate to ask. Many thanks in advance,

Atom2
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7026
Location: Saint Amant, Acadiana

PostPosted: Sat May 13, 2017 2:18 pm    Post subject: Reply with quote

Do you have same issue when booting from SystemRescueCD?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Atom2
Apprentice
Apprentice


Joined: 01 Aug 2011
Posts: 185

PostPosted: Sat May 13, 2017 6:35 pm    Post subject: Reply with quote

Hi Jaglover,
Jaglover wrote:
Do you have same issue when booting from SystemRescueCD?
It took a bit of time to create a bootable USB stick with the SystemRescueCD due to incorrect pathes in its grub configuration file (/isolinux instead of /syslinux) and thus the stick being unbootable at first ... but that's now sorted.

Interestingly enough, also the SystemRescueCD shows identical symptoms: Grub's menu shows in the correct resolution; once you start the boot process the screen goes blank and as soon as the efifb is probed and loaded (as seen in dmesg) the console spits out the following boot log messages correctly. And the resolution is again identical to the one grub's menu was showing up before.

So what do I make out of this ... and more importantly, is there a cure to show boot messages on the console right from the start of the boot process?

Thanks, Atom2
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Sat May 13, 2017 9:07 pm    Post subject: Reply with quote

I have no experience with your equipment so am unlikely to be of help.
Have you tried nomodeset as a kernel option? KMS used to cause problems like yours.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Atom2
Apprentice
Apprentice


Joined: 01 Aug 2011
Posts: 185

PostPosted: Sat May 13, 2017 9:52 pm    Post subject: Reply with quote

Thanks DONAHUE,
I tried that parameter, but unfortunately it didn't change anything. I'll wait and see if anybody else in the know chimes in as I consider this behaviour rather annoying and I am really out of ideas.

Thanks Atom2
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Sat May 13, 2017 11:50 pm    Post subject: Reply with quote

https://www.matrox.com/graphics/en/support/drivers/download/?id=145 is a matrox driver from 2006 which https://www.matrox.com/graphics/en/support/drivers/latest/ suggests may be for G200
linux-firmware provides two pieces of matrox firmware
have you tried matrox frame buffer in kernel? http://www.tldp.org/HOWTO/html_single/Framebuffer-HOWTO/
_________________
Defund the FCC.
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