From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWDCH-0007Xa-Oh for qemu-devel@nongnu.org; Sun, 08 Feb 2009 12:11:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWDCF-0007WT-Fs for qemu-devel@nongnu.org; Sun, 08 Feb 2009 12:11:56 -0500 Received: from [199.232.76.173] (port=37854 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWDCF-0007WM-7d for qemu-devel@nongnu.org; Sun, 08 Feb 2009 12:11:55 -0500 Received: from fk-out-0910.google.com ([209.85.128.189]:62580) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LWDCE-0004Ok-RQ for qemu-devel@nongnu.org; Sun, 08 Feb 2009 12:11:55 -0500 Received: by fk-out-0910.google.com with SMTP id z23so1330379fkz.2 for ; Sun, 08 Feb 2009 09:11:53 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20090208141530.GA9575@volta.aurel32.net> References: <20090207141803.GA6533@volta.aurel32.net> <20090208141530.GA9575@volta.aurel32.net> Date: Sun, 8 Feb 2009 19:11:52 +0200 Message-ID: Subject: Re: [OpenBIOS] [Qemu-devel] [PATCH, RFC] Mac99 (CHRP?) support From: Blue Swirl 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: qemu-devel@nongnu.org On 2/8/09, Aurelien Jarno wrote: > On Sat, Feb 07, 2009 at 11:05:52PM +0200, Blue Swirl wrote: > > On 2/7/09, Blue Swirl wrote: > > > On 2/7/09, Aurelien Jarno wrote: > > > > On Sat, Feb 07, 2009 at 01:38:58PM +0200, Blue Swirl wrote: > > > > > Hi, > > > > > > > > Hi! > > > > > > > > > This set of patches adds basic support for Mac99 Qemu machine, > > > > > > > > > > > > As you ask the question in the subject, this machine is a NewWorl= d > > > > machine, and not a CHRP one. I think we don't really want to pro= vide a > > > > CHRP emulated machine, so the best is probably to rename ppc_chr= p.c into > > > > ppc_newworld.c. > > > > > > > > > True. I think RS6000 series were closest to CHRP, not iMac. > > > > > > The rename does not affect OHW status, so it could be done immediat= ely. > > > > > > > > > > > provided by ppc_chrp.c. I've used the device tree of iMac DV (= '99) as > > > > > reference: > > > > > http://penguinppc.org/historical/dev-trees-html/imac-dv-99.htm= l > > > > > > > > > > The patches changes the machine to use OpenBIOS instead of OHW= and > > > > > otherwise breaks OHW assumptions. On OpenBIOS side there are s= till > > > > > some missing bits. > > > > > > > > > > Comments welcome. > > > > > > > > > > > > Great work. > > > > > > > > I gave a quick look at the patches, they looks fine. However I s= till > > > > experience some problem with the PowerMac IDE emulation, especia= lly with > > > > recent kernels, so until it is fixed (Laurent is working on that= ) I > > > > think we should keep the CMD646 as a default. > > > > > > > > > OK=C2=B8 I'll change that part and send new patches. > > > > This new set of patches perform the rename (to be replaced with SVN > > operation). CMD646 is used instead of pmac ide. > > > > Debian 4.0 R6 cd image boots, installer starts but keyboard does not > > work (probably because OpenBIOS doesn't advertise OpenPic). > > > That may be the problem. Alternatively, note that NewWorld machine are > not suppose to support ADB bus, so maybe the kernel is disabling that > part. We should switch the keyboard and the mouse to USB as on real > machines. We already have the code on the QEMU side, so it should be > easy. On the OpenBIOS side the code to support an USB keyboard is > probably more complicated. Well, I just found out that even without any USB support in OpenBIOS, Linux finds the OHCI device and then the keyboard and mouse connected to it, so keyboard works using the same Debian image.