Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JPLYS-0004d9-29 for mharc-grub-devel@gnu.org; Wed, 13 Feb 2008 12:37:56 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JPLYP-0004cR-4q for grub-devel@gnu.org; Wed, 13 Feb 2008 12:37:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JPLYN-0004bR-Ev for grub-devel@gnu.org; Wed, 13 Feb 2008 12:37:52 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPLYN-0004bJ-6K for grub-devel@gnu.org; Wed, 13 Feb 2008 12:37:51 -0500 Received: from ti-out-0910.google.com ([209.85.142.184]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JPLYM-0007Vv-Nj for grub-devel@gnu.org; Wed, 13 Feb 2008 12:37:51 -0500 Received: by ti-out-0910.google.com with SMTP id a20so100348tia.10 for ; Wed, 13 Feb 2008 09:37:48 -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=lD2N/aaqCFZ8VKRd6KdPlqIbwA3TwvXtbmIVjXkjLHY=; b=ndfBfkUA3VyX2yN6wV88vBpwWX65byMXzi3BRQgt+nzjQhpsidfP6N/D8Jf3TRqOysQfxkEwOFsP47VSmWXKNUpBxOZvIJNsmOEe7yuaNZaUgdFAutWjq2yDmWNNk2eK3O6lTQCDOrRaVfYylHryjGcHc7bkwArFS5q9GoUrujk= 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=wU48Z1kuULU5z/iiICrHOen/YFoNaUliKbd4BRFI0DbVeh/+Y0EGiEIQ2l1OG+nh9pPDlzubTE9BVasRFp3dY/NHINeiqSTogvi9ztwvdgtcZexVo6KDOw1aOvRql49XlswUrbqnFOxNWoY82BNNyTNqoxM5IEEglYWkcKz+jgY= Received: by 10.110.42.13 with SMTP id p13mr202090tip.34.1202924267808; Wed, 13 Feb 2008 09:37:47 -0800 (PST) Received: by 10.110.62.19 with HTTP; Wed, 13 Feb 2008 09:37:47 -0800 (PST) Message-ID: Date: Thu, 14 Feb 2008 01:37:47 +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: <1202766709.5108.7.camel@k9.localnet> <20080212111902.GC18073@thorin> <20080212193650.GA3319@thorin> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: [PATCH] a.out support for multiboot and freebsd 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: Wed, 13 Feb 2008 17:37:54 -0000 On Feb 14, 2008 1:25 AM, walt wrote: > Bean wrote: > > > Ok. I also fix the alloc magic broken problem, it's caused by > > grub_elf_file, which will close the file when the elf magic is not > > found. However, the upper level still use that file, that cause the > > memory problem. > > > > The patch should be applied after the previous bsd.diff... > > I'm very confused by the results :o/ I'm now running today's cvs > plus bsd.diff plus bsd_2.diff. Some things work and some don't. > > I can boot openbsd perfectly -- but only if I load the 'bsd' kernel > from a different filesystem e.g. FAT32. I can't read any files from > the FFS/UFS on my openbsd partition -- I get 'outside of partition'. > > I can multiboot netbsd perfectly -- but not from the netbsd partition. > If I 'multiboot /netbsd' from the netbsd partition I get 'broken magic'. > However, I can 'netbsd /netbsd' perfectly from the netbsd partition. > (See why I'm confused?) > > When I 'freebsd /boot/loader' or 'freebsd /boot/kernel/kernel' from > the FreeBSD partition I get 'broken magic'. If I 'freebsd /kernel' > from a FAT32 partition the kernel seems to load okay but then when > I 'boot' nothing prints to the console and the OS never starts. > If I 'freebsd /loader' from a FAT fs then the loader runs correctly > but of course I need to set 'currdev' by hand. > > I'm wondering if you have commited all of your UFS/FFS patches to > cvs. Seems like I'm seeing some old UFS problems that you fixed > once already(?). Is it possible that your build is not clean ? you can try to run make distclean and then configure and make, see if there is any difference. i'm also putting my compiled version at: http://grub4dos.sourceforge.net/grub2/g2ldr you can load it as linux kernel, please see if it helps. -- Bean