[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grub EFI "too little memory"

From: David Holloway
Subject: Re: grub EFI "too little memory"
Date: Tue, 17 Jun 2008 01:58:16 -0700
User-agent: Thunderbird (Windows/20071210)

David Holloway wrote:
Intended for Robert Millan, et. al.

I have an Intel 1U server board that fails with the current version of grub with the message "too little memory", as in line 312 of CVS version 1.4 of grub2/kern/efi/mm.c
The board is described here:

I added some debug and I think "required_pages" at line 312 has a value of 1MB (256 pages), consistent with MIN_HEAP. mmap from the EFI shell reports just 38 pages of LoaderData and just 196 pages of LoaderCode.

It's my intention to bone up on EFI, but I'm not there yet.

The question: does just 38 pages of LoaderData make sense in this implemetation? is MIN_HEAP too large or does this EFI implementation provide too little memory to be practical?

I diagnosed the root problem.
The NSW1U board requires 7872 bytes for its memory map during the EFI GetMemoryMap call, but only 4096 are supplied.

Obviously my short term solution is to increase MEMORY_MAP_SIZE from 0x1000 to 0x2000, but one wonders what the robust solution should be instead. In fact, I now have the NSW1U server board working after this change.

I'm now filing a bug report on the matter.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]