Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JIpo5-0007t9-GA for mharc-grub-devel@gnu.org; Sat, 26 Jan 2008 13:31:09 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIpo4-0007t2-IP for grub-devel@gnu.org; Sat, 26 Jan 2008 13:31:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIpo2-0007sd-5Z for grub-devel@gnu.org; Sat, 26 Jan 2008 13:31:07 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIpo2-0007sa-0Y for grub-devel@gnu.org; Sat, 26 Jan 2008 13:31:06 -0500 Received: from wa-out-1112.google.com ([209.85.146.179]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JIpo1-0002G1-Kn for grub-devel@gnu.org; Sat, 26 Jan 2008 13:31:05 -0500 Received: by wa-out-1112.google.com with SMTP id k34so2399919wah.10 for ; Sat, 26 Jan 2008 10:31:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=okrgXT6Jqhbek7T9dQXK/daURs4BYYj0XlkjGa+EAHU=; b=C2Ui7qstnRBcK5//YEIOc6puC4dfL6S/ZJM2tqVQhxanRwgOWRPQ+MSKbWO95PnEPOg6kugwHb1yrw1oi5j8L1skQXckv1iuxPX/bYUIwnv92nzWCOXFLw7UjJDMBD+K0TXrj/Kn9iRkZeFicCsklZlH5FLquiU0dAuhPr3mKsE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LQtjQbdmCMU7mOi1JvuU7cO66tz3o0uwmFdPz2gS1a72sV6uVB3bT+NYFqTAKvikIJIRTjxNiDymyAFoWGK5w6sMqZUj1msi1uL1Wb3MuFdXp7GXNiJfw/uIWv8KEtiqrUOI8W48C9znQv6QAgsFFYCQvVYD5/C49V+FlVNVlQc= Received: by 10.110.68.10 with SMTP id q10mr1702812tia.22.1201372262715; Sat, 26 Jan 2008 10:31:02 -0800 (PST) Received: by 10.110.31.8 with HTTP; Sat, 26 Jan 2008 10:31:02 -0800 (PST) Message-ID: Date: Sun, 27 Jan 2008 02:31:02 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080124143306.GB8248@thorin> <20080124145317.GA9385@thorin> <1201193272.334.2.camel@k9.localnet> <20080124171206.GA1515@thorin> <20080126172422.GB4119@thorin> <1201371576.507.6.camel@k9.localnet> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:31:08 -0000 On Jan 27, 2008 2:24 AM, Bean wrote: > On Jan 27, 2008 2:19 AM, walt wrote: > > > > 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.) > > don't gzip it, grub2 doesn't support auto decompression like grub legacy. i just try multiboot_netbsd.gz, i boot ok. maybe you send netbsd.gz somewhere for me to test. -- Bean