From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LH04s-0002Zw-4H for qemu-devel@nongnu.org; Sun, 28 Dec 2008 13:09:26 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LH04q-0002Zj-Ny for qemu-devel@nongnu.org; Sun, 28 Dec 2008 13:09:25 -0500 Received: from [199.232.76.173] (port=48382 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LH04q-0002Zg-I2 for qemu-devel@nongnu.org; Sun, 28 Dec 2008 13:09:24 -0500 Received: from mail-bw0-f12.google.com ([209.85.218.12]:58458) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LH04p-0005UT-Tl for qemu-devel@nongnu.org; Sun, 28 Dec 2008 13:09:24 -0500 Received: by bwz5 with SMTP id 5so5431059bwz.10 for ; Sun, 28 Dec 2008 10:09:22 -0800 (PST) Message-ID: Date: Sun, 28 Dec 2008 20:09:20 +0200 From: "Blue Swirl" Subject: Re: [Qemu-devel] [6128] Use OpenBIOS for g3bw machine In-Reply-To: <20081228173142.GY28467@hall.aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081228032424.GE21154@genesis.frugalware.org> <20081228173142.GY28467@hall.aurel32.net> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 12/28/08, Aurelien Jarno wrote: > On Sun, Dec 28, 2008 at 03:08:47PM +0200, Blue Swirl wrote: > > On 12/28/08, Miklos Vajna wrote: > > > Hi, > > > > > > > > > On Wed, Dec 24, 2008 at 08:23:52PM +0000, Blue Swirl wrote: > > > > Revision: 6128 > > > > http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6128 > > > > Author: blueswir1 > > > > Date: 2008-12-24 20:23:51 +0000 (Wed, 24 Dec 2008) > > > > > > > > Log Message: > > > > ----------- > > > > Use OpenBIOS for g3bw machine > > > > > > > > Modified Paths: > > > > -------------- > > > > trunk/hw/ppc_mac.h > > > > trunk/hw/ppc_oldworld.c > > > > trunk/qemu-doc.texi > > > > > > > > Modified: trunk/hw/ppc_mac.h > > > > =================================================================== > > > > --- trunk/hw/ppc_mac.h 2008-12-24 20:21:18 UTC (rev 6127) > > > > +++ trunk/hw/ppc_mac.h 2008-12-24 20:23:51 UTC (rev 6128) > > > > @@ -31,6 +31,8 @@ > > > > #define BIOS_FILENAME "ppc_rom.bin" > > > > #define VGABIOS_FILENAME "video.x" > > > > #define NVRAM_SIZE 0x2000 > > > > +#define PROM_FILENAME "openbios-ppc32" > > > > +#define PROM_ADDR 0xfff00000 > > > > > > > > > Is it by accident that the file 'openbios-ppc32' was not added to the > > > repo? > > > > The development of OpenBIOS/PPC has been rapid, the added version > > would soon become obsolete. Currently OpenBIOS can boot yaboot from > > some install CD images but Linux hangs very early. > > > > > By the way, I wonder if we will need a different BIOS for 32- and > 64-bit, as a the first thing that a 64-bit kernel does is switching the > CPU to 64-bit mode. Also contrary to Sparc, a 32-bit code works > unchanged on a 64-bit CPU. To be more precise: on Sparc64, 32-bit user code still works, the problem is that the supervisor instructions are incompatible. Moreover, Sun4[cdm] machine architectures are very different from Sun4[uv]. > If it is confirmed, we can probably rename openbios-ppc32 into > openbios-ppc. Actually I tried something similar earlier today, one problem is that g3bw machine claims it is incompatible with the bus model of PPC64. The reset vectors are different but that can be handled with two entry points. As a side note, I also tried to make a cross compiler for powerpc64-elf to try to compile OpenBIOS in 64 bit mode, but that is not a supported configuration. Strange.