From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwugu-00080v-Mc for qemu-devel@nongnu.org; Thu, 12 Nov 2015 11:25:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zwugt-00058g-JZ for qemu-devel@nongnu.org; Thu, 12 Nov 2015 11:25:40 -0500 Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: Date: Thu, 12 Nov 2015 11:25:27 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <9C20BDB0-7458-44E8-B3DC-AABD88FE72DB@gmail.com> References: <5640A782.6080002@ilande.co.uk> <898E5F5D-EC63-4FC2-A1CC-5F5AEE1D5708@gmail.com> <564249E4.8000604@ilande.co.uk> <564380D5.9050401@ilande.co.uk> <27CBEB2D-071F-424B-B837-93F767CBE6B6@gmail.com> <5643B3D3.1030907@fgznet.ch> <08BF37A4-20D2-4A34-BC26-17B199A160E7@gmail.com> Subject: Re: [Qemu-devel] [OpenBIOS] CUDA has problems with Mac OS 10.4 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: BALATON Zoltan Cc: Mark Cave-Ayland , The OpenBIOS Mailinglist , "qemu-ppc@nongnu.org list:PowerPC" , qemu-devel qemu-devel , Andreas Tobler On Nov 11, 2015, at 6:14 PM, BALATON Zoltan wrote: > On Wed, 11 Nov 2015, Programmingkid wrote: >> On Nov 11, 2015, at 4:32 PM, Andreas Tobler wrote: >>>> It looks like you are saying you wish to keep the CUDA device. Mac = OS 9 is most >>>> likely hard coded to expect via-pmu instead of via-cuda on the = mac99 target. >>>> Moving on to via-pmu might make QEMU more compatible with Mac OS 9. >>>> I will still try your patches. Do you have a repo that I could just = clone? It is a >>>> lot less error prone than patches. >>>=20 >>> I'd like to keep the CUDA too, FreeBSD PowerPC (32-bit) relies on = it. Unfortunately it still doesn't work ... but hope is still here ;) >>=20 >> On a new world Mac? I'm thinking a mistake has been made. Maybe you = mean via-pmu? According to FreeBSD's website all Macintoshes with a = built-in USB port are supported. This would only mean new world Macs and = they only have a via-pmu - no cuda device. >=20 > I think you are right that mac99 should have via-pmu instead of cuda = but it is not as simple as renaming it in the device tree because it is = a different chip which we have no emulation for so first an emulation = should be written. It is probably similar enough to cuda so using cuda = instead works as long as the OS in only using the main functions. It is = also hard to find a documentation on how via-pmu should behave. I've = only found this: >=20 > http://mcosre.sourceforge.net/docs/apple_io.html >=20 > which is not very clear or detailed. The only hint from it was that = pmu99 uses gpio which I've seen OS-es try to access but I don't know = anything on that or what should be emulated for it. Thank you very much for this information. A quick check of PearPC shows = it also uses CUDA, so we can't copy any code for via-pmu. >=20 >>> Mark, is your complete qemu patch available somewhere? Then I could = test 32-bit PowerPC on FreeBSD which still hangs on adb... up to now. >>=20 >> I'm thinking removing ADB support would fix this problem. Most real = new world Macs have no ADB support. >=20 > This may be a good idea to match the hardware we are trying to emulate = better but some OSes may depend on ADB for now. I've noticed Finnix had = no keyboard in debug mode without ADB (which may be a bug in Finnix, I = could not verify if it works on real hardware or has the same problem = there). Interesting. Did you use "-usb -device usb-keyboard" to enable usb = support in QEMU when running Finnix?=20=