From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MJ4sd-00011B-Kr for mharc-grub-devel@gnu.org; Tue, 23 Jun 2009 08:13:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJ4sa-0000yU-Io for grub-devel@gnu.org; Tue, 23 Jun 2009 08:13:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJ4sT-0000r3-0J for grub-devel@gnu.org; Tue, 23 Jun 2009 08:13:33 -0400 Received: from [199.232.76.173] (port=37799 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJ4sS-0000qc-GS for grub-devel@gnu.org; Tue, 23 Jun 2009 08:13:28 -0400 Received: from aybabtu.com ([69.60.117.155]:60486) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MJ4sS-0006hX-6m for grub-devel@gnu.org; Tue, 23 Jun 2009 08:13:28 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1MJ3pN-0005nR-B2 for grub-devel@gnu.org; Tue, 23 Jun 2009 13:06:13 +0200 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1MJ4sP-0000p7-89 for grub-devel@gnu.org; Tue, 23 Jun 2009 14:13:25 +0200 Date: Tue, 23 Jun 2009 14:13:25 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20090623121325.GA3130@thorin> References: <20090621181748.GA21152@thorin> <20090622230751.GD11998@thorin> <1245720581.30815.11.camel@mj> <20090623113850.GB24028@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090623113850.GB24028@thorin> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) Subject: Re: clean patch for i386-qemu port (Re: [PATCH] i386-qemu port) 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, 23 Jun 2009 12:13:37 -0000 On Tue, Jun 23, 2009 at 01:38:50PM +0200, Robert Millan wrote: > > If I use all modules, the image is too big: > > grub-mkimage: error: Core image is too big (0xa8200 > 0xa0000) > > Strange, with all modules I get 0x88200. Anyway, GRUB_MEMORY_MACHINE_UPPER > can be increased up to GRUB_BOOT_MACHINE_LINK_ADDR, this was just copied > from the coreboot port. > > With GRUB_BOOT_MACHINE_LINK_ADDR (0xffe00) you should be able to fit all > of GRUB in. > > Increasing it further would involve either compression or breaking the > 0x100000 barrier (imposed by the Linux loader). I think compression for > qemu is just silly, but fixing the Linux loader is not trivial (Vladimir's > memory management proposal could help on this). Actually, you can't step after 0xa0000 because there are I/O maps there (there's 0xb8000 and I think other VGA stuff). I think I'll just change the link address to 0x100000. Then our limit is almost 2 GiB, which gives plenty of room for a big memdisk in case user wants that. As for the Linux loader, I'll have to disable it on this port untill it doesn't require that we reserve a hardcoded address for it. -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."