Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JIwQX-0005Mc-ST for mharc-grub-devel@gnu.org; Sat, 26 Jan 2008 20:35:17 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIwQW-0005M8-LR for grub-devel@gnu.org; Sat, 26 Jan 2008 20:35:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIwQV-0005LV-4X for grub-devel@gnu.org; Sat, 26 Jan 2008 20:35:16 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIwQV-0005LO-0w for grub-devel@gnu.org; Sat, 26 Jan 2008 20:35:15 -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 1JIwQU-0000lh-VB for grub-devel@gnu.org; Sat, 26 Jan 2008 20:35:15 -0500 Received: by wa-out-1112.google.com with SMTP id k34so2654674wah.10 for ; Sat, 26 Jan 2008 17:35:12 -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=rwZNF8WTtwgOGrsE2Fll4qMyHb2Hi7ttzZ/qlJudEx0=; b=VdbjLJD6QWXNJBufadrKwbBLAkNw4b71aB+8qjdq2T1axUxkf3W2h0SSokRgxZw4T6uO/e3C+VbiXbxLdy/jqZHD9mut9YUtA8M4FozoM9+NalB7YtK1724j2Pu/iGon3HR9MqEm3grOQugiEkti6so4KAVu5VjE4+Jrd+na35s= 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=OhXsyXl1wSjHhTfVgNid9Rk/qIznGXtlg9K9e8Xd8xmKUSga2Kl48F3CuXNgzb7Ta5SRU+b1O8TjOnjTnTU+enzaPSVSHouJFICKTpwexBJRynsaxph6iwipHmFRhJKYVxzNDYFBxG3wrTXyhPxpcniUn8EQw6Ly1e8FsVY2mDQ= Received: by 10.110.31.5 with SMTP id e5mr1708755tie.35.1201397711072; Sat, 26 Jan 2008 17:35:11 -0800 (PST) Received: by 10.110.31.8 with HTTP; Sat, 26 Jan 2008 17:35:11 -0800 (PST) Message-ID: Date: Sun, 27 Jan 2008 09:35:11 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <1201382697.541.11.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> <1201382697.541.11.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: Sun, 27 Jan 2008 01:35:16 -0000 On Jan 27, 2008 5:24 AM, walt wrote: > > On Sat, 2008-01-26 at 23:01 +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... > > Yes! I just discovered that I can multiboot the netbsd kernel off > of a FAT32 fs or even an NTFS fs, but *not* off of a UFS fs :o/ > > Apparently "something bad" happens to the kernel in the process of > reading or loading it from the UFS fs. I can read small text files > from a UFS fs, however, so I'm thinking maybe this has something to > do with the size of the netbsd kernel? > > BTW, I've tried booting the netbsd kernel off of a FreeBSD UFS1 fs > but I can't tell if my NetBSD partition is UFS1 or UFS2 -- dumpfs > doesn't say which kind it is. I confess I really don't remember if > I have any UFS2 partitions or not. > > Excellent work so far in just one day! Got any other tricks? :o) please make a small ufs image containing the netbsd kernel, i don't a a bsd system at hand. -- Bean