From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lvcbe-000727-Qy for qemu-devel@nongnu.org; Sun, 19 Apr 2009 15:23:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lvcba-00070q-2y for qemu-devel@nongnu.org; Sun, 19 Apr 2009 15:23:10 -0400 Received: from [199.232.76.173] (port=58382 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvcbZ-00070n-UH for qemu-devel@nongnu.org; Sun, 19 Apr 2009 15:23:05 -0400 Received: from mail-fx0-f169.google.com ([209.85.220.169]:65375) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LvcbZ-0004iY-E1 for qemu-devel@nongnu.org; Sun, 19 Apr 2009 15:23:05 -0400 Received: by fxm17 with SMTP id 17so1463687fxm.34 for ; Sun, 19 Apr 2009 12:23:04 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1239525550.5516.3.camel@Quad> <1240129450.5671.7.camel@Quad> Date: Sun, 19 Apr 2009 22:23:04 +0300 Message-ID: From: Blue Swirl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Re: [OpenBIOS] QEMU OpenBIOS booting? Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The OpenBIOS Mailinglist Cc: Alexander Graf , Laurent Vivier , qemu-devel@nongnu.org On 4/19/09, Steven Noonan wrote: > On Sun, Apr 19, 2009 at 1:24 AM, Laurent Vivier wr= ote: > > Le dimanche 19 avril 2009 =C3=A0 00:50 -0700, Steven Noonan a =C3=A9cr= it : > >> On Tue, Apr 14, 2009 at 10:46 PM, Steven Noonan wrote: > >> > On Sun, Apr 12, 2009 at 1:39 AM, Laurent Vivier wrote: > >> >> OpenBIOS is not able to boot MacOS X. > >> > > >> > Well, that's a silly limitation. Is there a reason this isn't > >> > implemented? I see that the Mac-on-Linux OpenBIOS version has such > >> > support, so it seems strange that the QEMU version does not. > >> > >> I don't know if anyone here is actually interested (this list seems > >> -very- quiet), but... > > > > Hi, > > > >> I've been hacking at OpenBIOS for a bit, and I got it to properly rea= d > >> Mac OS X discs (it kept failing because it would hit an Apple > >> Partition Map header instead of an HFS+ filesystem header). I'm > >> working on adding an XCOFF loader, too, so it should be able to boot > >> Mac OS X soon. > > > > You can copy it from OpenHackWare. > > I made some tests and it seems to have some memory conflicts between > > MacOS kernel and OpenBIOS. > > > > Good Luck. > > > > > Two more pre-XCOFF loader commits up: > http://github.com/tycho/openbios/commit/e43daa3447b5ce4a2b05b2f32882e498= 91156200 > http://github.com/tycho/openbios/commit/7023b78a10f5632fd08d4749615efd3e= 73ab1036 These look fine to me. > And I have something (uncommitted) that at least -loads- the > CHRP-embedded XCOFF binaries now, but I am not sure what to do to > execute the result. With ELF, it seems you can just use the call_elf() > function. I don't know PowerPC assembler (nor the XCOFF format) well > enough yet to know what would be necessary for a call_xcoff() > function. Anyone want to help out with this? Well, call_elf should work regardless of the format. The first and second parameters will be passed verbatim to OS (Linux uses those for initrd address and size), the third is the start address that should be available for all formats. There's some more description near the function call_elf in start.S. So I'd just add something like call_elf(0, 0, xcoff_start) somewhere.