bugGNU GRUB - Bugs: bug #36077, Dell R510 UEFI: error allocate...

 
 

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

bug #36077: Dell R510 UEFI: error allocate real mode pages

Submitter:  Richard Chan <beaver6675>
Submitted:  Wed 04 Apr 2012 02:23:23 AM UTC
   
 
Category:  Booting Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name:  Beaver6675
Open/Closed:  Closed Release:  Bazaar - trunk
Release:  Reproducibility:  Every Time
Planned Release:  None

Jump to the original submission

Mon 16 Apr 2012 03:36:33 PM UTC, comment #7: 

Yes, the patch has worked.

I am able to boot Dell R510, M910 in UEFI mode.

All CPUs are operable.

Thank you.

Richard Chan <beaver6675>
Mon 16 Apr 2012 03:12:41 PM UTC, comment #6: 

I've seen this before, some UEFI implementation reserves the real region so that you can't allocate memory in it, but it's not used at all. You can just write to an address such as 0x90000 directly.

Bean <bean>
Thu 12 Apr 2012 02:51:55 PM UTC, comment #5: 

And if that works please check that all the CPUs are operable.

Vladimir Serbinenko <phcoder>
Group administrator
Thu 12 Apr 2012 02:35:48 PM UTC, comment #4: 

After discussion with Matthew Garett one part of the patch wasn't useful. Simplified version attached.

(file #25635)

Vladimir Serbinenko <phcoder>
Group administrator
Wed 11 Apr 2012 11:59:15 PM UTC, comment #3: 

Your memory map is very weird: the whole of real mode memory is occupied by boot services data. Such memory according to specification can be overwritten without any problem and GRUB previously followed it but it was discovered that some EFI implementations improperly declare runtime services memory as boot services so we've changed to not overwriting them. But Linux can't be loaded without real mode memory, attached patch overwrites boot services memory if it doesn't find anythong better

(file #25631)

Vladimir Serbinenko <phcoder>
Group administrator
Mon 09 Apr 2012 02:09:45 AM UTC, comment #2: 

Here's the output from a Dell R510


base_addr 0x10000 length 0x90000 RAM Available
base_addr 0x100000 length 0x3f00000 RAM Available
base_addr 0x4000000 length 0x9572a000 RAM Available
base_addr 0x9972a000 length 0x31e29000 RAM Available

...many more lines all above 0xcb000000

I copied this by hand and can get the rest of the lines if necessary.

With set debug=all:
mmap/efi/mmap.c:65: EFI memory region 0x10000-0xa0000: 4
mmap/efi/mmap.c:65: EFI memory region 0x100000-0x4000000: 4
...many more lines

loader/i386/linux.c:212: real_size = 1800, prot_size = 1369000, mmap_size = 2000
lib/relocator.c:115: relocators_size = 12


Then the error.

Thank you.
and then returns the error.

Richard Chan <beaver6675>
Sun 08 Apr 2012 12:53:07 AM UTC, comment #1: 

Can you supply the output of lsmmap?

Vladimir Serbinenko <phcoder>
Group administrator
Wed 04 Apr 2012 02:23:23 AM UTC, original submission:  

1. On Dell R510 R810 UEFI firmware, grub cannot load kernels.
The Dell servers have been loaded with the latest BIOS and firmwares as of 3/31/2012.

2. GRUB compiled from bzr trunk with
./configure --with-platform=efi --disable-werror

3. GRUB EFI application created with
 grub-mkstandalone -O x86_64-efi -o /media/USBTHUMB/EFI/BOOT/BOOTX64.EFI

4. Enter server EFI Boot Manager and select USB media

5. Obtain grub shell 2.00~beta
   insmod part_gpt
   insmod part_msdos
   insmod ext2
   insmod fat
   set root (hd0,2)
   linux /vmlinuz root=/dev/sda1 ro
   error: cannot allocate real mode pages

(2.6.32 kernel from CentOS 6.2, same error with Fedora 16 kernel;
same error using grub.efi from Fedora 17 Alpha grub2-efi)

8. This same UEFI firmware boots kernels using grub-legacy-UEFI from Centos6.2 install DVD. Chainloading grub->grub-legacy->linux
works

9. I cannot get any Dell 11G server R510, R810, M910 to boot linux with grub in UEFI mode.

Richard Chan <beaver6675>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #25635:  1.diff added by phcoder (368B - text/x-diff)
file #25631:  linux-boot-data-2.diff added by phcoder (864B - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bean (Posted a comment)
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by beaver6675 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-04-18 phcoder StatusNone Fixed
        Open/ClosedOpen Closed
    2012-04-12 phcoder Attached File- Added 1.diff, #25635
    2012-04-11 phcoder Attached File- Added linux-boot-data-2.diff, #25631

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code