From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lw0cx-00009G-P4 for qemu-devel@nongnu.org; Mon, 20 Apr 2009 17:02:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lw0cu-00007B-6C for qemu-devel@nongnu.org; Mon, 20 Apr 2009 17:02:07 -0400 Received: from [199.232.76.173] (port=38532 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lw0ct-00006x-Mw for qemu-devel@nongnu.org; Mon, 20 Apr 2009 17:02:03 -0400 Received: from smtp2-g21.free.fr ([212.27.42.2]:58426) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lw0cs-0002TF-Gi for qemu-devel@nongnu.org; Mon, 20 Apr 2009 17:02:03 -0400 In-Reply-To: Subject: Re: [Qemu-devel] Re: [OpenBIOS] QEMU OpenBIOS booting? From: "=?utf-8?q?Fran=C3=A7ois?= Revol" Date: Mon, 20 Apr 2009 23:01:58 +0200 CEST Message-Id: <2375125099-BeMail@laptop> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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: Blue Swirl Cc: alex@csgraf.de, steven@uplinklabs.net, openbios@openbios.org, qemu-devel@nongnu.org > On 4/20/09, M. Warner Losh wrote: > > In message: < > > f43fc5580904191144y1fd8e4d6m3321855d0c558250@mail.gmail.com> > > Blue Swirl writes: > > > > : On 4/19/09, M. Warner Losh wrote: > > : > In message: < > > f488382f0904190128l4383a56eu67a2f16eb338e61c@mail.gmail.com> > > : > > > : > Steven 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... > > : > > : This is what I get with OpenBIOS: > > : >> *** Boot failure! No secondary bootloader specified *** > > : > > : 0 > boot cd:,\boot\loader cd:0 > > : Consoles: Open Firmware console > > : > > : FreeBSD/Open Firmware/PowerPC bootstrap loader, Revision 0.1 > > : (root@xserve.lan.xcllnt.net, Thu Apr 16 18:47:58 UTC 2009) > > : Memory: 131072KB > > : Booted from: cd > > : > > : Loading /boot/defaults/loader.conf > > : /boot/kernel/kernel data=3D0x4a4ce0+0x3d4e4 syms=3D[0x4+0x454f0+0x4+ > > 0x5a4b9] > > : / > > : Hit [Enter] to boot immediately, or any other key for command > > prompt. > > : Booting [/boot/kernel/kernel]... > > : Kernel entry at 0x13dac0 ... > > : panic: moea=5Fbootstrap: no space to copy translations > > : Uptime: 1s > > > > > > That's similar to the one that I've seen as well. The problem with > > this one, IIRC, is that FreeBSD/powerpc is trying to setup the > > memory > > translations for the MMU and the 'translations' property length is > > zero, or something like that... > > Right, the error comes from this line: > http://fxr.watson.org/fxr/source/powerpc/powerpc/mmu=5Foea.c=3Fv=3DFREEBSD70#L825 > FWIW, Haiku still stops somewhere at http://dev.haiku-os.org/browser/haiku/trunk/src/system/boot/platform/openfirmware/arch/ppc/mmu.cpp#L968 ... [revol@debian ~/devel/haiku/trunk]$ qemu-system-ppc -nographic -serial stdio -cdrom generated.ppc/haiku-boot-cd-ppc.iso -boot d >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> OpenBIOS 1.0 [Mar 31 2009 15:35] >> Configuration device id QEMU version 1 machine id 2 >> CPUs: 1 >> Memory: 128M >> UUID: 00000000-0000-0000-0000-000000000000 >> CPU type PowerPC,750 Welcome to OpenBIOS v1.0 built on Mar 31 2009 15:35 checking for memory... 0: base =3D 0x00000000, size =3D 134217728 1: empty region total physical memory =3D 128 MB suggested page table size =3D 1048576 need new page table, size =3D 1048576! new table at: 0x07d00000 MSR: 0x00003030 found 4 translations found page table! no mapping for the exception handlers! Fran=C3=A7ois.