Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MJ4L9-0003VV-7u for mharc-grub-devel@gnu.org; Tue, 23 Jun 2009 07:39:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJ4L5-0003RN-Bg for grub-devel@gnu.org; Tue, 23 Jun 2009 07:38:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJ4L0-0003Pu-Cd for grub-devel@gnu.org; Tue, 23 Jun 2009 07:38:58 -0400 Received: from [199.232.76.173] (port=36245 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJ4Kz-0003Pa-HG for grub-devel@gnu.org; Tue, 23 Jun 2009 07:38:54 -0400 Received: from aybabtu.com ([69.60.117.155]:37520) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MJ4Kz-0006dn-6W for grub-devel@gnu.org; Tue, 23 Jun 2009 07:38:53 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1MJ3Hu-0005kk-Ml for grub-devel@gnu.org; Tue, 23 Jun 2009 12:31:39 +0200 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1MJ4Kw-0006Kz-Ea for grub-devel@gnu.org; Tue, 23 Jun 2009 13:38:50 +0200 Date: Tue, 23 Jun 2009 13:38:50 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20090623113850.GB24028@thorin> References: <20090621181748.GA21152@thorin> <20090622230751.GD11998@thorin> <1245720581.30815.11.camel@mj> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1245720581.30815.11.camel@mj> 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 11:39:00 -0000 On Mon, Jun 22, 2009 at 09:29:41PM -0400, Pavel Roskin wrote: > On Tue, 2009-06-23 at 01:07 +0200, Robert Millan wrote: > > This is my first "clean" (kludge-free) patch for the i386-qemu port. It > > doesn't depend on any other patch; I send it for some final review before > > checking it in. > > In some cases, "2" appears on the command line. Perhaps the initial > keyboard state is not cleared. I can't reproduce this, but we can flush the keyboard on startup. Do you mind if we discuss this after base qemu support is merged? > 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). > If I exclude lua.mod, I can build the image, but it fails in qemu with > the message "no module name found". Removing udf.mod helps. Likewise, > removing several other modules helps. I believe memory is corrupted if > there are too many modules. I get memory corruption too. I'll have a look. > And it appears on the new line every time a key is pressed. I believe > grub_exit() should call grub_halt() for i386-coreboot and i386-qemu. Is grub_halt() really what we want? grub_exit() callers expect that the user doesn't lose access to the machine when this function is invoked. How about grub_reboot() instead? -- 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."