Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GRUB2 EFI Console video hangs, but system boots [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
dopow
n00b
n00b


Joined: 11 Oct 2008
Posts: 20

PostPosted: Sat Mar 09, 2013 9:18 pm    Post subject: GRUB2 EFI Console video hangs, but system boots [SOLVED] Reply with quote

Hello,

This is my first time working with grub2 and an EFI system, and I'm stumped.

The system boots fine up until the point that OpenRC would start (http://sinewam.com/public/gentoo-efi-openrc-boot.png), and then I lose video on the console. However, the serial console continues to work, and the system does boot, and I can ssh it.

I've tried booting grub in "console" mode (no framebuffer), but that doesn't seem to change anything. I'm pretty sure that I have all of the kernel modules needed, but can't be sure. I'm running hardened sources 3.8.2 (also tried 3.8.0). I know these are both masked, but 3.7.5-r1 was causing all sorts of problems.

Has anyone seen this before?

Thanks!


Last edited by dopow on Sun Mar 10, 2013 1:23 am; edited 1 time in total
Back to top
View user's profile Send private message
srs5694
Guru
Guru


Joined: 08 Mar 2004
Posts: 432
Location: Woonsocket, RI

PostPosted: Sat Mar 09, 2013 10:53 pm    Post subject: Reply with quote

This sounds to me like a framebuffer issue. When you boot in EFI mode, VGA text modes don't work; you need a framebuffer console, and some systems can be finicky about how you set that up. You might need the framebuffer driver for your specific hardware or the generic EFI framebuffer driver. Note that some relevant drivers are not listed under the framebuffer category in the kernel configuration tool. Unfortunately, these can sometimes interact with your X drivers in undesirable ways, or their absence can cause problems, too. The best configuration can also vary depending on whether you're using the open source or proprietary X drivers for your video hardware (when both are available). I don't claim to be an expert on how to get all this to work; I've just fiddled with my kernel's video and framebuffer configurations until it's started working.

FWIW, my own main system includes:

Code:

CONFIG_DRM_RADEON=m
CONFIG_DRM_RADEON_KMS=y
CONFIG_FB=y
CONFIG_FB_EFI=y
# CONFIG_FB_RADEON is not set
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set


This is for an AMD-based board with a built-in ATI Radeon HD3000. You'd obviously want different entries for other hardware. I get the following in my ring buffer ("dmesg" output):

Code:

[    2.550580] efifb: probing for efifb
[    2.550930] efifb: framebuffer at 0xd0000000, mapped to 0xffffc90010100000, u
sing 5120k, total 5120k
[    2.550935] efifb: mode is 1280x1024x32, linelength=5120, pages=1
[    2.550938] efifb: scrolling: redraw
[    2.550941] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
[    2.563527] Console: switching to colour frame buffer device 160x64
[    2.575305] fb0: EFI VGA frame buffer device
...
[   45.530181] fbcon: radeondrmfb (fb0) is primary device
[   45.535988] Console: switching to colour frame buffer device 240x67
[   45.541877] fb0: radeondrmfb frame buffer device


I interpret this as meaning that the EFI framebuffer driver is used early in the boot process, but that the system later switches to the radeondrmfb driver, which is included in CONFIG_DRM_RADEON, which in turn is not in the framebuffer section of the kernel configuration.

The organization of these options in the kernel leaves a lot to be desired, IMHO.
Back to top
View user's profile Send private message
dopow
n00b
n00b


Joined: 11 Oct 2008
Posts: 20

PostPosted: Sun Mar 10, 2013 1:03 am    Post subject: Reply with quote

srs5694, I owe you one! I was missing my hardware's framebuffer module, which was under some other menuconfig section.

I've been working on this for several days now, and I had read everywhere that the EFI framebuffer module would be used instead of the hardware module. Oops...

Thanks for your help!
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1238
Location: 42.68n 85.41w

PostPosted: Sun Aug 04, 2013 10:35 pm    Post subject: Reply with quote

looks to me like a 6 sided cube, satanists must sponsor linux development.

try removing i915 from your kernel.
_________________
cat /etc/*-release
Funtoo Linux - baselayout 2.2.0
consider this warning no. 1
https://wiki.gentoo.org/index.php?title=Special:Contributions/666threesixes666&offset=&limit=500&target=666threesixes666
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
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