From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BYWjB-0001Tk-31 for qemu-devel@nongnu.org; Thu, 10 Jun 2004 17:04:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BYWj9-0001TL-AP for qemu-devel@nongnu.org; Thu, 10 Jun 2004 17:04:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BYWj9-0001TA-5g for qemu-devel@nongnu.org; Thu, 10 Jun 2004 17:04:47 -0400 Received: from [194.109.24.13] (helo=smtp-out3.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BYWi5-0002pp-N8 for qemu-devel@nongnu.org; Thu, 10 Jun 2004 17:03:41 -0400 Received: from olifantasia.com (a213-84-8-196.adsl.xs4all.nl [213.84.8.196]) by smtp-out3.xs4all.nl (8.12.10/8.12.10) with ESMTP id i5AL3bXK057408 for ; Thu, 10 Jun 2004 23:03:37 +0200 (CEST) Message-ID: <40C8CCCE.8030705@olifantasia.com> Date: Thu, 10 Jun 2004 23:04:14 +0200 From: Martin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] powerpc system emulation and the need for ppc-rom.bin (firmware) 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 Jocelyn mentioned some time ago that powerpc (system)emulation could be broken at the moment because there are some majore changes in progress. At the moment it does build just fine only it is not usable because it thinks it needs a powerpc rom bios (firmware) This loading is done in hw/ppc_prep.c (and hw/ppc_chrp.c) up and until revision 1.10 of ppc_prep.c the loading was done in the else part of if(linux_boot) In other words, if you load a linux kernel directly you don't need ppc_rom.bin from version 1.11 and on qemu always tries to load ppc_rom.bin (and always fails because it is not there: "could not load PPC PREP bios '/usr/local/share/qemu/ppc_rom.bin'") Is there a special reason for this? Otherwise I would suggest moving it back in the else clause so we can still use recent cvs snapshots (with new features and bugfixes like pci support) It would of course also be great if a (working) ppc_rom firmware would be available. How is the progress on this going? Jocelyn, what are you using at the moment, an existing firmware for a real device or an opensource openfirmware implementation? I also found that there is a new commandline option -prep I think this chooses between prep and chrp emulation. How different are the two emulations at the moment? Greetings, Martin hw/ppc_prep.c Revision: 1.10 if (linux_boot) { /* Do stuff to load linux kernel */ } else { /* allocate and load BIOS ppc_rom.bin */ } hw/ppc_prep.c Revision: 1.11, Wed May 26 22:53:03 2004 UTC (2 weeks ago) by bellard /* allocate and load BIOS ppc_rom.bin */ if (linux_boot) { /* Do stuff to load linux kernel */ }