From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JN71A-0003c8-9p for mharc-grub-devel@gnu.org; Thu, 07 Feb 2008 08:42:20 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JN718-0003bC-8X for grub-devel@gnu.org; Thu, 07 Feb 2008 08:42:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JN715-0003a9-Qm for grub-devel@gnu.org; Thu, 07 Feb 2008 08:42:17 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JN715-0003a6-L8 for grub-devel@gnu.org; Thu, 07 Feb 2008 08:42:15 -0500 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 1JN715-00055T-7y for grub-devel@gnu.org; Thu, 07 Feb 2008 08:42:15 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JN712-00038M-4Y for grub-devel@gnu.org; Thu, 07 Feb 2008 13:42:12 +0000 Received: from adsl-69-234-196-239.dsl.irvnca.pacbell.net ([69.234.196.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Feb 2008 13:42:12 +0000 Received: from wa1ter by adsl-69-234-196-239.dsl.irvnca.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Feb 2008 13:42:12 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: grub-devel@gnu.org From: walt Date: Thu, 07 Feb 2008 05:42:04 -0800 Organization: gmane Message-ID: <1202391724.517.7.camel@k9.localnet> References: <20080207003206.GA2761@thorin> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: adsl-69-234-196-239.dsl.irvnca.pacbell.net In-Reply-To: <20080207003206.GA2761@thorin> X-Mailer: Evolution 2.12.3nb1 Sender: news X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Subject: Re: aout support almost working now 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, 07 Feb 2008 13:42:18 -0000 On Thu, 2008-02-07 at 01:32 +0100, Robert Millan wrote: > On Wed, Feb 06, 2008 at 04:26:15PM -0800, walt wrote: > > >diff --git a/kern/i386/loader.S b/kern/i386/loader.S > > >index 266f4ef..88f3045 100644 > > >--- a/kern/i386/loader.S > > >+++ b/kern/i386/loader.S > > >@@ -137,6 +137,7 @@ FUNCTION(grub_multiboot_real_boot) > > > cli > > > > > > /* Move the magic value into eax and jump to the kernel. */ > > >+ movl $0x80, %edx > > > movl $MULTIBOOT_MAGIC2,%eax > > > popl %ecx > > > jmp *%ecx > > >@@ -159,6 +160,7 @@ FUNCTION(grub_multiboot2_real_boot) > > > cli > > > > > > /* Move the magic value into eax and jump to the kernel. */ > > >+ movl $0x80, %edx > > > movl $MULTIBOOT2_BOOTLOADER_MAGIC,%eax > > > popl %ecx > > > jmp *%ecx > > > > > >Please note that this is not a proper patch, it assume booting from > > >the (hd0,0,a). you can adjust the value of %edx if you boot from other > > >partition. > > > > Sorry, I don't know what adjustment to make. I did find a macro for > > MULTIBOOT_INFO_DISK_INFO but it's never actually used anywhere :o/ > > > > I'm trying to load (hd0,3,a) -- can you show me the right value for %edx ? > > If he guessed right, you don't need to do anything special, and 0x80 > will work for you. > > The patch is not correct because it breaks setups in which boot disk is not > the first one. But that doesn't seem to affect you. Sorry to report that this patch changes nothing :o( Behavior is exactly the same. However, that particular section of code seems to be for multiboot kernels, and the FreeBSD kernel is not multiboot (yet). Could that be the problem?