Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JIphY-0005vF-Lx for mharc-grub-devel@gnu.org; Sat, 26 Jan 2008 13:24:24 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIphV-0005tg-ES for grub-devel@gnu.org; Sat, 26 Jan 2008 13:24:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIphT-0005sG-Iy for grub-devel@gnu.org; Sat, 26 Jan 2008 13:24:20 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIphT-0005s0-C3 for grub-devel@gnu.org; Sat, 26 Jan 2008 13:24:19 -0500 Received: from wa-out-1112.google.com ([209.85.146.178]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JIphS-0000oM-Vw for grub-devel@gnu.org; Sat, 26 Jan 2008 13:24:19 -0500 Received: by wa-out-1112.google.com with SMTP id k34so2395860wah.10 for ; Sat, 26 Jan 2008 10:24:18 -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=RNdQrrb7RYEWMboolHzfqm6AudWJrRHTcSEo/gmoPvQ=; b=CCSP8EHmv38AT877e8BaMF0JxqUmXkLZaN37FxflWKNnBuoL3q8PQDsJWgz5S/uFDFNhi7vYy8IUVhg58XMixEWDarn05pQrjF/VxZ4+eNKsnLbxk5OSwee7qdiO5fcdxTJoawkDjiYYY5mgwCb+LnOKd5zqQuq9Gkc30/tNmP4= 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=o+1KPRCVmKcokIfu04L8AZGB7j/vcrUZWvrJ5NuvzKlwQAPFeMV638mMd7LVDJK22cuKWpfBhA1gfKIvra5L+o+0vsGrnvPfJmDWrTA4MFb9EZ9xoGMc1wLemTSmSqbO4pILxpuXdV8Ect9yeXxXbLyIJHPnpxmNqm4L+QSK16U= Received: by 10.110.31.5 with SMTP id e5mr1700853tie.38.1201371856584; Sat, 26 Jan 2008 10:24:16 -0800 (PST) Received: by 10.110.31.8 with HTTP; Sat, 26 Jan 2008 10:24:16 -0800 (PST) Message-ID: Date: Sun, 27 Jan 2008 02:24:16 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <1201371576.507.6.camel@k9.localnet> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <87myqvzkqk.fsf@xs4all.nl> <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:24:21 -0000 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. > > > > 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. maybe blank line problem. -- Bean