qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] How to make USB work with Mac OS X
       [not found] ` <880706F7-77A1-4559-9A05-90C303EF5A38@suse.de>
@ 2015-09-18 13:55   ` Programmingkid
  2015-09-18 18:33     ` Alexander Graf
  0 siblings, 1 reply; 4+ messages in thread
From: Programmingkid @ 2015-09-18 13:55 UTC (permalink / raw)
  To: Alexander Graf; +Cc: qemu-ppc@nongnu.org list:PowerPC, qemu-devel qemu-devel


On Sep 18, 2015, at 2:14 AM, Alexander Graf wrote:

> 
> 
>> Am 17.09.2015 um 14:42 schrieb Programmingkid <programmingkidx@gmail.com>:
>> 
>> Is there a way to make USB work with Mac OS X on qemu-system-ppc? I used the -usb option, but mounting a flash drive didn't work. Would you know anything that could help?
> 
> Nothing of the top of my head. It did work on x86, so maybe the ohci emulation is broken? OS9 doesn't boot because of USB breakage in ohci...

Just looked at Cormac's GSOC page. He said Mac OS 9 is attempting to write to the OHCI's HcDoneHead register. Is there anything stopping us from changing the HcDoneHead register so that it can be written to? 

My other idea is that the operating system thinks the root hub is made by Apple. If we changed the device descriptor so that the software thinks it is made by someone else, then the operating system might use the register correctly. I'm thinking that Apple made their own root hub that can do things a standard OHCI USB controller can't do. What are your thoughts?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] How to make USB work with Mac OS X
  2015-09-18 13:55   ` [Qemu-devel] How to make USB work with Mac OS X Programmingkid
@ 2015-09-18 18:33     ` Alexander Graf
  2015-09-18 18:38       ` Programmingkid
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Graf @ 2015-09-18 18:33 UTC (permalink / raw)
  To: Programmingkid; +Cc: qemu-ppc@nongnu.org list:PowerPC, qemu-devel qemu-devel



> Am 18.09.2015 um 15:55 schrieb Programmingkid <programmingkidx@gmail.com>:
> 
> 
>> On Sep 18, 2015, at 2:14 AM, Alexander Graf wrote:
>> 
>> 
>> 
>>> Am 17.09.2015 um 14:42 schrieb Programmingkid <programmingkidx@gmail.com>:
>>> 
>>> Is there a way to make USB work with Mac OS X on qemu-system-ppc? I used the -usb option, but mounting a flash drive didn't work. Would you know anything that could help?
>> 
>> Nothing of the top of my head. It did work on x86, so maybe the ohci emulation is broken? OS9 doesn't boot because of USB breakage in ohci...
> 
> Just looked at Cormac's GSOC page. He said Mac OS 9 is attempting to write to the OHCI's HcDoneHead register. Is there anything stopping us from changing the HcDoneHead register so that it can be written to? 

Iirc the problem is deeper...

> 
> My other idea is that the operating system thinks the root hub is made by Apple. If we changed the device descriptor so that the software thinks it is made by someone else, then the operating system might use the register correctly. I'm thinking that Apple made their own root hub that can do things a standard OHCI USB controller can't do. What are your thoughts?

I doubt that this is the reason.

Alex

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] How to make USB work with Mac OS X
  2015-09-18 18:33     ` Alexander Graf
@ 2015-09-18 18:38       ` Programmingkid
  2015-09-18 20:56         ` Alexander Graf
  0 siblings, 1 reply; 4+ messages in thread
From: Programmingkid @ 2015-09-18 18:38 UTC (permalink / raw)
  To: Alexander Graf; +Cc: qemu-ppc@nongnu.org list:PowerPC, qemu-devel qemu-devel


On Sep 18, 2015, at 2:33 PM, Alexander Graf wrote:

> 
> 
>> Am 18.09.2015 um 15:55 schrieb Programmingkid <programmingkidx@gmail.com>:
>> 
>> 
>>> On Sep 18, 2015, at 2:14 AM, Alexander Graf wrote:
>>> 
>>> 
>>> 
>>>> Am 17.09.2015 um 14:42 schrieb Programmingkid <programmingkidx@gmail.com>:
>>>> 
>>>> Is there a way to make USB work with Mac OS X on qemu-system-ppc? I used the -usb option, but mounting a flash drive didn't work. Would you know anything that could help?
>>> 
>>> Nothing of the top of my head. It did work on x86, so maybe the ohci emulation is broken? OS9 doesn't boot because of USB breakage in ohci...
>> 
>> Just looked at Cormac's GSOC page. He said Mac OS 9 is attempting to write to the OHCI's HcDoneHead register. Is there anything stopping us from changing the HcDoneHead register so that it can be written to? 
> 
> Iirc the problem is deeper...

I think you may be right. 

Do you have any more information on this problem?

> 
>> 
>> My other idea is that the operating system thinks the root hub is made by Apple. If we changed the device descriptor so that the software thinks it is made by someone else, then the operating system might use the register correctly. I'm thinking that Apple made their own root hub that can do things a standard OHCI USB controller can't do. What are your thoughts?
> 
> I doubt that this is the reason.

I did make a patch that makes the hcDoneHead register writable. I can't say I noticed a difference in Mac OS 9 or Mac OS X in QEMU with it. 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] How to make USB work with Mac OS X
  2015-09-18 18:38       ` Programmingkid
@ 2015-09-18 20:56         ` Alexander Graf
  0 siblings, 0 replies; 4+ messages in thread
From: Alexander Graf @ 2015-09-18 20:56 UTC (permalink / raw)
  To: Programmingkid; +Cc: qemu-ppc@nongnu.org list:PowerPC, qemu-devel qemu-devel



> Am 18.09.2015 um 20:38 schrieb Programmingkid <programmingkidx@gmail.com>:
> 
> 
>> On Sep 18, 2015, at 2:33 PM, Alexander Graf wrote:
>> 
>> 
>> 
>>> Am 18.09.2015 um 15:55 schrieb Programmingkid <programmingkidx@gmail.com>:
>>> 
>>> 
>>>> On Sep 18, 2015, at 2:14 AM, Alexander Graf wrote:
>>>> 
>>>> 
>>>> 
>>>>> Am 17.09.2015 um 14:42 schrieb Programmingkid <programmingkidx@gmail.com>:
>>>>> 
>>>>> Is there a way to make USB work with Mac OS X on qemu-system-ppc? I used the -usb option, but mounting a flash drive didn't work. Would you know anything that could help?
>>>> 
>>>> Nothing of the top of my head. It did work on x86, so maybe the ohci emulation is broken? OS9 doesn't boot because of USB breakage in ohci...
>>> 
>>> Just looked at Cormac's GSOC page. He said Mac OS 9 is attempting to write to the OHCI's HcDoneHead register. Is there anything stopping us from changing the HcDoneHead register so that it can be written to?
>> 
>> Iirc the problem is deeper...
> 
> I think you may be right. 
> 
> Do you have any more information on this problem?

Unfortunately not. Ben had a quick look at it a while back but also did not get it functional. You're more than welcome to give it a try as well.

Alex

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-18 20:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <ADC64695-0631-4E7E-B0E5-C1E4E0F53784@gmail.com>
     [not found] ` <880706F7-77A1-4559-9A05-90C303EF5A38@suse.de>
2015-09-18 13:55   ` [Qemu-devel] How to make USB work with Mac OS X Programmingkid
2015-09-18 18:33     ` Alexander Graf
2015-09-18 18:38       ` Programmingkid
2015-09-18 20:56         ` Alexander Graf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).