From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JIpdC-0002zQ-4Q for mharc-grub-devel@gnu.org; Sat, 26 Jan 2008 13:19:54 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIpdA-0002yT-IL for grub-devel@gnu.org; Sat, 26 Jan 2008 13:19:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIpd8-0002y4-5m for grub-devel@gnu.org; Sat, 26 Jan 2008 13:19:51 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIpd8-0002y1-0d for grub-devel@gnu.org; Sat, 26 Jan 2008 13:19:50 -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 1JIpd7-0008Hq-D4 for grub-devel@gnu.org; Sat, 26 Jan 2008 13:19:49 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JIpd4-0001fS-Co for grub-devel@gnu.org; Sat, 26 Jan 2008 18:19:46 +0000 Received: from adsl-69-234-204-161.dsl.irvnca.pacbell.net ([69.234.204.161]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Jan 2008 18:19:46 +0000 Received: from wa1ter by adsl-69-234-204-161.dsl.irvnca.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Jan 2008 18:19:46 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: grub-devel@gnu.org From: walt Date: Sat, 26 Jan 2008 10:19:36 -0800 Organization: gmane Message-ID: <1201371576.507.6.camel@k9.localnet> References: <87myqvzkqk.fsf@xs4all.nl> <20080124143306.GB8248@thorin> <20080124145317.GA9385@thorin> <1201193272.334.2.camel@k9.localnet> <20080124171206.GA1515@thorin> <20080126172422.GB4119@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-204-161.dsl.irvnca.pacbell.net In-Reply-To: <20080126172422.GB4119@thorin> X-Mailer: Evolution 2.12.3 Sender: news X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Subject: Re: booting kernel of NetBSD (Re: UFS (FFS) support seems broken in 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: Sat, 26 Jan 2008 18:19:53 -0000 On Sat, 2008-01-26 at 18:24 +0100, Robert Millan wrote: > On Sat, Jan 26, 2008 at 11:01:49PM +0800, Bean wrote: > > this is the patch, problems found: > > > > 1, the mbi structure is not initialized to all zeros, this means some > > important member, like mods_count, will contain trash. > > 2, the entry point in the header is virtual address, we need to > > translate it to physical address. > > > > * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical > > address of entry. > > (grub_multiboot_load_elf64): Likewise. > > (grub_multiboot): Initialize mbi structure. > > Wow, you're inexhaustible :-) Indeed! Unfortunately I still get the same free magic is broken :o( As an experiment, I g-zipped the kernel and now grub2 just reboots without printing anything when I do multiboot /netbsd.gz. (The same kernel still boots normally with legacy grub.) > Btw it won't apply to CVS head; maybe it was scrambled when sending it? I had to use the -l flag to get it to apply, but it did apply okay.