You are not logged in.

#1 2011-04-18 12:40:33

MaggotBrain
Member
Registered: 2010-03-08
Posts: 7

Failed to boot with UEFI

Once i was finally able to install EFI + GRUB2 + GPT, i thought my troubles were over ...
But I was wrong.  Linux failed to boot, the only thing I saw was a black screen  (no kernel oops, nothing).
Although with "noefi" boot option (but i think it's not a good idea) it started successfuly.

System: Dell Latitude E4310
GRUB2:

insmod part_gpt
insmod efi_gop
insmod font

if load ${prefix}/unicode.pf2
then
    insmod gfxterm
    set gfxmode=auto
    set gfxpayload=keep
    terminal_output gfxterm
fi

set timeout=5
set default=0

menuentry "Arch Linux" {
    set root=(hd0,gpt4)
    linux /vmlinuz26 root=/dev/sda2 ro
    initrd /kernel26.img
}

UEFI:

shell> ver
    EFI Specification Revision : 2.0
    EFI Vendor                 : American Megatrends
    EFI Revision               : 4.632

Does anybody had such problem? Any help/suggestion would be really appreciated

Offline

#2 2011-04-18 12:50:39

skodabenz
Banned
From: Tamilnadu, India
Registered: 2010-04-11
Posts: 382

Re: Failed to boot with UEFI

MaggotBrain wrote:
if load ${prefix}/unicode.pf2

It should be

if loadfont ${prefix}/unicode.pf2

UEFI:

shell> ver
    EFI Specification Revision : 2.0
    EFI Vendor                 : American Megatrends
    EFI Revision               : 4.632

Does anybody had such problem? Any help/suggestion would be really appreciated

Rest of the config looks fine to me.

But not using 'noefi' is unrelated to boot messages not being shown on screen. I guess the system boots successfully even without 'noefi' . Otherwise post any errors you get from the boot messages without the 'noefi' option.

Last edited by skodabenz (2011-04-18 12:52:33)


My new forum user/nick name is "the.ridikulus.rat" .

Offline

#3 2011-04-18 12:54:24

MaggotBrain
Member
Registered: 2010-03-08
Posts: 7

Re: Failed to boot with UEFI

I has "loadfont" it was typo, sorry.
The main problem is that i am unable to look at what kernel prints to terminal ...

Offline

#4 2011-04-18 13:04:19

skodabenz
Banned
From: Tamilnadu, India
Registered: 2010-04-11
Posts: 382

Re: Failed to boot with UEFI

MaggotBrain wrote:

I has "loadfont" it was typo, sorry.
The main problem is that i am unable to look at what kernel prints to terminal ...

Meaning you are still not getting boot messages? Try

insmod efi_uga

instead of efi_gop module.


My new forum user/nick name is "the.ridikulus.rat" .

Offline

#5 2011-04-18 13:11:38

MaggotBrain
Member
Registered: 2010-03-08
Posts: 7

Re: Failed to boot with UEFI

skodabenz wrote:
MaggotBrain wrote:

I has "loadfont" it was typo, sorry.
The main problem is that i am unable to look at what kernel prints to terminal ...

Meaning you are still not getting boot messages? Try

I mean if I choose not to use "noefi" kernel options the only thing i see is a black screen

skodabenz wrote:
insmod efi_uga

instead of efi_gop module.

with efi_gop:

Booting a command list
|

arrow had been blinking for a while then it stopped (I guess it hanged)

Offline

#6 2011-04-18 13:17:13

skodabenz
Banned
From: Tamilnadu, India
Registered: 2010-04-11
Posts: 382

Re: Failed to boot with UEFI

Can you try compiling grub2 with this patch https://github.com/skodabenz/Misc_Linux … ment.patch ? Although this seemed to be a problem with grub2, i guess grub2 passes wring uefi related info to the kernel.

'noefi' prevents the kernel from accessing EFI Runtime Services. So either grub2 passes incorrect efi info to the kernel or the firmware itself is a problem.


My new forum user/nick name is "the.ridikulus.rat" .

Offline

#7 2011-04-18 15:40:44

MaggotBrain
Member
Registered: 2010-03-08
Posts: 7

Re: Failed to boot with UEFI

I have found that this patch already in trunk. I have tried grub-efi-bzr version but effect is the same (just a black screen). I'v also tried to load linux manulay i.e via grub consle, but it hanged after i entered "boot"... I guess kernel wasn't even started ...

Last edited by MaggotBrain (2011-04-18 15:41:02)

Offline

#8 2011-04-18 15:55:13

skodabenz
Banned
From: Tamilnadu, India
Registered: 2010-04-11
Posts: 382

Re: Failed to boot with UEFI

MaggotBrain wrote:

I have found that this patch already in trunk. I have tried grub-efi-bzr version but effect is the same (just a black screen). I'v also tried to load linux manulay i.e via grub consle, but it hanged after i entered "boot"... I guess kernel wasn't even started ...

Most definitely a bug in the firmware. Ask in edk2-devel mailing list about this. For now use 'noefi' option. No other way.


My new forum user/nick name is "the.ridikulus.rat" .

Offline

#9 2011-04-19 04:10:55

orez
Member
Registered: 2008-12-17
Posts: 6
Website

Re: Failed to boot with UEFI

MaggotBrain wrote:

Once i was finally able to install EFI + GRUB2 + GPT, i thought my troubles were over ...
But I was wrong.  Linux failed to boot, the only thing I saw was a black screen  (no kernel oops, nothing).
Although with "noefi" boot option (but i think it's not a good idea) it started successfuly.

Does anybody had such problem? Any help/suggestion would be really appreciated

Same thing happens here but i use Mac,
the problem is the kenel only allocate limited RAM to EFI firmware which might not be enough,
you need the patch "Run EFI in physical mode" ,
Search google and refer this: http://grub.enbug.org/TestingOnUEFI .


找个明媚的日子,出去乞讨吧...

Offline

#10 2011-04-19 15:28:11

MaggotBrain
Member
Registered: 2010-03-08
Posts: 7

Re: Failed to boot with UEFI

I haven't found this patch for 2.6.38 kernel ...
Is it possible to upgrade UEFI firmware or its a kernel's bug?

Offline

#11 2011-06-11 10:17:51

skodabenz
Banned
From: Tamilnadu, India
Registered: 2010-04-11
Posts: 382

Re: Failed to boot with UEFI


My new forum user/nick name is "the.ridikulus.rat" .

Offline

Board footer

Powered by FluxBB