From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1K8X1d-00032w-EC for mharc-grub-devel@gnu.org; Tue, 17 Jun 2008 04:58:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K8X1a-00032U-AD for grub-devel@gnu.org; Tue, 17 Jun 2008 04:58:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K8X1X-00031y-24 for grub-devel@gnu.org; Tue, 17 Jun 2008 04:58:45 -0400 Received: from [199.232.76.173] (port=56426 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8X1W-00031t-Tq for grub-devel@gnu.org; Tue, 17 Jun 2008 04:58:42 -0400 Received: from mail.windriver.com ([147.11.1.11]:54130 helo=mail.wrs.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K8X1W-0002Bj-At for grub-devel@gnu.org; Tue, 17 Jun 2008 04:58:42 -0400 Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id m5H8wH5V025177; Tue, 17 Jun 2008 01:58:18 -0700 (PDT) Received: from ala-mail06.corp.ad.wrs.com ([147.11.57.147]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 17 Jun 2008 01:58:16 -0700 Received: from [192.168.114.110] ([192.168.114.110]) by ala-mail06.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 17 Jun 2008 01:58:17 -0700 Message-ID: <48577CA8.5000604@dholloway.com> Date: Tue, 17 Jun 2008 01:58:16 -0700 From: David Holloway User-Agent: Thunderbird 1.5.0.14 (Windows/20071210) MIME-Version: 1.0 To: daveh@dholloway.com References: <200806170307.m5H37DjU073382@shoebox.dholloway.com> <48576165.1000002@dholloway.com> In-Reply-To: <48576165.1000002@dholloway.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Jun 2008 08:58:17.0302 (UTC) FILETIME=[488DEF60:01C8D058] X-detected-kernel: by monty-python.gnu.org: Solaris 9 Cc: grub-devel@gnu.org Subject: Re: grub EFI "too little memory" X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2008 08:58:46 -0000 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: > http://www.intel.com/design/telecom/products/cbp/ipserver/9979/overview.htm > > > 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. https://savannah.gnu.org/bugs/index.php?23615