From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JrZoY-00045c-Fk for mharc-grub-devel@gnu.org; Thu, 01 May 2008 10:31:14 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JrZoW-00045M-RT for grub-devel@gnu.org; Thu, 01 May 2008 10:31:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JrZoT-00044q-HB for grub-devel@gnu.org; Thu, 01 May 2008 10:31:11 -0400 Received: from [199.232.76.173] (port=48711 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JrZoT-00044h-Af for grub-devel@gnu.org; Thu, 01 May 2008 10:31:09 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JrZoS-0004KZ-VW for grub-devel@gnu.org; Thu, 01 May 2008 10:31:09 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JrZoK-0001l6-Sw for grub-devel@gnu.org; Thu, 01 May 2008 14:31:00 +0000 Received: from cable-87-78-199-83.netcologne.de ([87.78.199.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 May 2008 14:31:00 +0000 Received: from patrick by cable-87-78-199-83.netcologne.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 May 2008 14:31:00 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: grub-devel@gnu.org From: Patrick Georgi Date: Thu, 1 May 2008 14:30:49 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cable-87-78-199-83.netcologne.de User-Agent: Pan/0.132 (Waxed in Black) Sender: news X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Subject: Booting Linux from coreboot+grub2 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: Thu, 01 May 2008 14:31:13 -0000 Hi, I just want to report that booting linux from grub2/i386-linuxbios doesn't work in my tests. To solve this, I'd propose to start from the i386-efi loader, which (other than the i386-pc loader which is currently used by the linuxbios platform) doesn't use the real mode code of linux (which relies on bios calls) In my tests, it mostly works (initrd has issues, but linux boots) when stripping all the EFI bits, while replacing all memory allocations with simple grub_malloc() calls (and not copy the real mode code at all). That's probably nothing to rely on, given that the 32bit-boot specification of linux gives some "hints" on where things should be stored. Some more capable memory management functions might help reconcile the i386-{efi,ieee1275,linuxbios} loaders eventually, such as a generic way to request "page aligned memory in the memory range (x,y) of size z", and a generic way to get a memory map. Currently that seems to be done as- needed in the various loaders. Regards, Patrick