|
From: | Andrei E. Warkentin |
Subject: | Re: grub EFI "too little memory" |
Date: | Tue, 17 Jun 2008 08:26:56 -0500 |
Straight from the public UEFI docs: If the MemoryMap buffer is too small, the EFI_BUFFER_TOO_SMALL error code is returned and the MemoryMapSize value contains the size of the buffer needed to contain the current memory map. The actual size of the buffer allocated for the consequent call to GetMemoryMap() should be bigger then the value returned in MemoryMapSize, since allocation of the new buffer may potentially increase memory map size. ...and of course you can use BootServices->AllocatePool to grab the desired amount... 17.06.2008, в 3:58, David Holloway написал(а): 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.cThe board is described here:http://www.intel.com/design/telecom/products/cbp/ipserver/9979/overview.htmI 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? |
[Prev in Thread] | Current Thread | [Next in Thread] |