Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1K8WvO-0006p1-Bd for mharc-grub-devel@gnu.org; Tue, 17 Jun 2008 04:52:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K8WvL-0006nE-VB for grub-devel@gnu.org; Tue, 17 Jun 2008 04:52:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K8WvK-0006mT-Oj for grub-devel@gnu.org; Tue, 17 Jun 2008 04:52:19 -0400 Received: from [199.232.76.173] (port=54452 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8WvK-0006mF-D9 for grub-devel@gnu.org; Tue, 17 Jun 2008 04:52:18 -0400 Received: from po-out-1718.google.com ([72.14.252.152]:26118) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K8WvJ-0000px-T9 for grub-devel@gnu.org; Tue, 17 Jun 2008 04:52:18 -0400 Received: by po-out-1718.google.com with SMTP id c31so10649225poi.1 for ; Tue, 17 Jun 2008 01:52:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Vlclb2Npd4ur7R0FgEk4EzO5QGwSOheARJJQ2ldUnwc=; b=tJphYuyaklITKNhwZHK47DEGOskkkBOkAlUJE46VJYTYtwBol1M1+ZmkgHB6I4Gpfy zL0S+RlAJUTO1fa7EntnsUNxG24E7uYoXGkadgDS+dpygHq1Dz9NLgA/G42hkCganCiX qvKFw4RMFicsRXh20g2vPY7bwN7vAu9XUXdfk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=WiH/rBG7ZyAppxsN/Q8DRTOsc8F1uAejNy4kjbNLhpk5NZeOKtjFBunnij5ATZ7BM8 q2Tpth/ZPKyYZBr3aF/WdNAb0XalhQv2nKYKAlBy8xthZU0CADZ0U1UINRK+3v/xSoL6 xBTPaVghYPoe4eXwckrc7xWtQ8dlGQJylSXpU= Received: by 10.110.53.14 with SMTP id b14mr5226739tia.8.1213692731481; Tue, 17 Jun 2008 01:52:11 -0700 (PDT) Received: by 10.110.16.5 with HTTP; Tue, 17 Jun 2008 01:52:11 -0700 (PDT) Message-ID: Date: Tue, 17 Jun 2008 16:52:11 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <48576165.1000002@dholloway.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200806170307.m5H37DjU073382@shoebox.dholloway.com> <48576165.1000002@dholloway.com> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:52:20 -0000 On Tue, Jun 17, 2008 at 3:01 PM, 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? Hi, I think this problem is caused by memory map. In new machine, the memory map is quite large, the default value in mm.c is too low for the whole map. You can change the value of #define MEMORY_MAP_SIZE 0x1000 and retry again. For example, with my macbook, I need to set this value to 0x4000. -- Bean