From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LvbG6-0003Jk-3F for qemu-devel@nongnu.org; Sun, 19 Apr 2009 13:56:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LvbG5-0003JN-7f for qemu-devel@nongnu.org; Sun, 19 Apr 2009 13:56:49 -0400 Received: from [199.232.76.173] (port=35395 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvbG5-0003Ix-0Q for qemu-devel@nongnu.org; Sun, 19 Apr 2009 13:56:49 -0400 Received: from yw-out-1718.google.com ([74.125.46.152]:44094) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LvbG4-0003TU-Ke for qemu-devel@nongnu.org; Sun, 19 Apr 2009 13:56:48 -0400 Received: by yw-out-1718.google.com with SMTP id 9so961193ywk.82 for ; Sun, 19 Apr 2009 10:56:47 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20090419.114724.-1622542522.imp@bsdimp.com> References: <08C9717F-88B8-41CB-96CB-E60340808649@web.de> <20090419.114724.-1622542522.imp@bsdimp.com> Date: Sun, 19 Apr 2009 10:56:47 -0700 Message-ID: Subject: Re: [Qemu-devel] Re: [OpenBIOS] QEMU OpenBIOS booting? From: Steven Noonan Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "M. Warner Losh" Cc: alex@csgraf.de, openbios@openbios.org, qemu-devel@nongnu.org On Sun, Apr 19, 2009 at 10:47 AM, M. Warner Losh wrote: > In message: > =A0 =A0 =A0 =A0 =A0 =A0Steven Noonan writes: > : I eventually decided it made more > : sense to get QEMU working instead. I did notice that the pre-OpenBIOS > : version of QEMU was able to boot Mac OS X via Open Hack'Ware, so I was > : annoyed to find that OpenBIOS didn't have such support. So, I might as > : well add it. > > Open Hackware was barely enough to boot older versions of Linux. > Other operating systems that needed more extensive properties from the > OpenFirmware device tree failed to boot because they weren't present. > I was involved in a large effort to get FreeBSD/powerpc booting on > QEMU only to have it fail utterly because the amount of hacking on > OpenHackWare needed was rather large and mysterious... > Yes, Open Hack'Ware is as much a hack as PearPC is, in my opinion. It uses very strange design decisions, which I suppose were inspired by an "I'll do this later" attitude. For instance, in the CHRP script 'parser' it has, it will do a CRC of the boot script and then do a table lookup to figure out what to do next, i.e.: case 0xEA06C1A7: /* MacOS 9.2 boot script: * the XCOFF loader is embedded in the file... */ case 0x53A95958: /* iBook 2 restore CD (MacOS X 10.2) */ [snip] goto out; case 0x8d5acb86: /* Darwin-7.01 * The executable file is embedded after the script */ break; Quite clearly, Open Hack'Ware was aptly named. It seems to have made no effort to actually -execute- the CHRP boot-script, and instead just do whatever would be necessary to get specific OSes working. Blech. - Steven