qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* USB pass through into Mac OS 9.x with qemu-system-ppc
@ 2021-02-08 13:29 Howard Spoelstra
  2021-02-09 15:12 ` Gerd Hoffmann
  0 siblings, 1 reply; 10+ messages in thread
From: Howard Spoelstra @ 2021-02-08 13:29 UTC (permalink / raw)
  To: qemu-devel qemu-devel, Gerd Hoffmann


[-- Attachment #1.1.1: Type: text/plain, Size: 1525 bytes --]

Hi all,

I'd like to report an issue when passing through an USB device into Mac OS
9.2.
Passing through the same device into Fedora 12 ppc guest works fine. Host
is Fedora 33. Both guests use the OHCI controller. AFAICT Mac OS 9 only has
support for OHCI.

Pcap files for two runs are attached, as is a screenshot of Mac OS 9.2 USB
messages from inside the guest.

A noticeable issue when comparing the pcap files seems to be at Fedora pcap
frame 8 and Mac OS 9.2 pcap frame 28 (configuration descriptor). It seems
the Mac OS side is missing 5 bytes and hence the packet is malformed.
(A run with Mac OS 9.0 as guest showed that this guest only missed 1 byte
in the response.)

Also visible in the Mac OS pcap file at frame 53 is that it seems a setup
package is contained in an URB that is not suited for it.

Qemu-system-ppc is started like this for the Mac OS guest:
./qemu-system-ppc \
-M mac99,via=pmu \
-m 512 \
-boot c \
-serial stdio \
-L pc-bios \
-drive file=/home/hsp/Mac-disks/9.2.img,format=raw,media=disk \
-device usb-host,vendorid=0x058f,productid=0x6387,pcap=macos92.pcap

Or like this for the Fedora 12 guest:
./qemu-system-ppc \
-L pc-bios \
-boot c \
-prom-env "boot-device=hd:,\yaboot" -prom-env
"boot-args=conf=hd:,\yaboot.conf" \
-M mac99,via=pmu \
-m 1024 \
-drive file=/home/hsp/Linux-disks/fedora12.qcow2 \
-g 1024x768x32 \
-device usb-host,vendorid=0x058f,productid=0x6387,pcap=fedora12.pcap

Thanks for looking into this,

Best,
Howard Spoelstra

[image: Screenshot from 2021-02-08 08-06-56.png]

[-- Attachment #1.1.2: Type: text/html, Size: 1988 bytes --]

[-- Attachment #1.2: Screenshot from 2021-02-08 08-06-56.png --]
[-- Type: image/png, Size: 99576 bytes --]

[-- Attachment #2: macos92.pcap --]
[-- Type: application/vnd.tcpdump.pcap, Size: 7332 bytes --]

[-- Attachment #3: fedora12.pcap --]
[-- Type: application/vnd.tcpdump.pcap, Size: 406574 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <mailman.2361.1612790999.21101.qemu-devel@nongnu.org>]

end of thread, other threads:[~2021-02-17  7:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-08 13:29 USB pass through into Mac OS 9.x with qemu-system-ppc Howard Spoelstra
2021-02-09 15:12 ` Gerd Hoffmann
2021-02-09 17:17   ` Howard Spoelstra
2021-02-12  8:53     ` Howard Spoelstra
2021-02-16 14:48       ` Gerd Hoffmann
2021-02-16 15:42         ` Howard Spoelstra
2021-02-17  7:17           ` Howard Spoelstra
2021-02-17  7:45             ` Gerd Hoffmann
2021-02-17  7:27           ` Gerd Hoffmann
     [not found] <mailman.2361.1612790999.21101.qemu-devel@nongnu.org>
2021-02-11 20:46 ` Programmingkid

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).