bugGNU GRUB - Bugs: bug #30601, Grub hangs after loading kernel on...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #30601: Grub hangs after loading kernel on intel machine with uefi bios

Submitted by:  Alexey Shvetsov <alexxy>
Submitted on:  Fri 30 Jul 2010 03:11:45 PM UTC  
 
Category: BootingSeverity: Major
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: Bazaar - experimental branchReproducibility: None
Planned Release: None

(Jump to the original submission Jump to the original submission)

Wed 12 Jan 2011 03:25:38 PM UTC, comment #7:

Closi ng following alexxy's confirmation on IRC.

Vladimir Serbinenko <phcoder>
Project Administrator
Tue 04 Jan 2011 07:07:10 PM UTC, comment #6:

I've applied the patch upstream

> Amazing. The workaround is working, thanks. Are you going to enable post-4G pages like you said?

Not for now. It has no influence on memory available to linux. It's just about memory available to GRUB and currently no OS needs files of such sizes to be loaded (XNU (kernel of Darwin and MacOSX) may require sth like this for hibernation but doubtful)

@ Alexey Shvetsov <alexxy>
Does this patch fixes the problem for you too? (please try bzr trunk, not experimental)

Vladimir Serbinenko <phcoder>
Project Administrator
Tue 04 Jan 2011 06:52:59 PM UTC, comment #5:

Amazing. The workaround is working, thanks. Are you going to enable post-4G pages like you said?

Jeffrey Griffin <geogriffin>
Tue 04 Jan 2011 01:11:14 PM UTC, comment #4:

Thansk to debug session with smartcat99s it was discovered that the problem is that intel EFI doesn't conform to the following spec extract: "any memory space defined by the UEFI memory map is identity mapped (virtual address equals physical address)."
Could you test the attached workaround?

(file #22346)

Vladimir Serbinenko <phcoder>
Project Administrator
Thu 23 Dec 2010 11:22:40 AM UTC, comment #3:

Sorry, also note that the correct value is:
real_mode_mem=147ff8000

Jeffrey Griffin <geogriffin>
Thu 23 Dec 2010 11:13:06 AM UTC, comment #2:

Actually, grub-1.98 does boot linux successfully, as long as I put "noefi" as the kernel parameters. Unfortunately, I need an initrd (which will not load as I mentioned) to access my userspace, hence why I am filing a bug report.

Jeffrey Griffin <geogriffin>
Thu 23 Dec 2010 10:40:52 AM UTC, comment #1:

Same here on an ASUS U35Jc laptop, using grub trunk, experimental, or newreloc. Crashes after issuing the command `linux (hd0,msdos6)/kernel`. With `set debug=linux`, the output for grub trunk and grub newreloc is:
real_size=2000, prot_size=2e200, mmap_size=2000
real_mode_mem=147ff800, real_mode_pages=8, prot_mode_mem=100000, prot_mode_pages=2e2

I have determined that the crash in grub_cmd_linux occurs at:
grub_memset (params, 0, GRUB_LINUX_CL_END_OFFSET);
grub_memcpy (&params->setup_sects, &lh.setup_sects, sizeof (lh) - 0x1F1);
which doesn't look too promising.

Note that for grub-1.98, the linux loader succeeds, but the `initrd` or `boot` commands hang once again. The output after `set debug=all; linux (hd0,6)/kernel;` for grub-1.98 is:
real_size=2000, prot_size=2e2000, mmap_size=4000
physical_start=8000, physical_end=6f000
trying to allocate 6 pages at 69000
real_mode_mem=69000, real_mode_pages=6, prot_mode_mem=100000, prot_mode_pages=2e2
[Linux-bzImage, setup=0x3400, size=0x2e19d0]

For grub-1.98 the crash in loader/i386/efi/linux.c's grub_cmd_initrd happens at the grub_file_read.

Jeffrey Griffin <geogriffin>
Fri 30 Jul 2010 03:11:45 PM UTC, original submission:

Grub hangs after loading kernel on intel machine with uefi bios

HW Intel DP55WG motherboard with uefi bios. Grub imidiently hangs after i load and try to boot kernel

OS gentoo linux
ARCH x86_64

Alexey Shvetsov <alexxy>

 

Attached Files
file #22346:  efi4G.diff added by phcoder (2KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Updated the item)
  • -unavailable- added by geogriffin (Posted a comment)
  • -unavailable- added by alexxy (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 12 Jan 2011 03:25:38 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Tue 04 Jan 2011 01:11:14 PM UTCphcoderAttached File-=>Added efi4G.diff, #22346

    Back to the top


    Powered by Savane 3.1-cleanup1