[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac OS real USB device support issue

From: BALATON Zoltan
Subject: Re: Mac OS real USB device support issue
Date: Sat, 10 Apr 2021 13:29:03 +0200 (CEST)

On Sat, 10 Apr 2021, Howard Spoelstra wrote:
On Fri, Apr 9, 2021 at 9:37 PM Programmingkid <programmingkidx@gmail.com> wrote:
Have you tried the proposed changes yet for libusb?


Yes, I experimented with the current libusb from brew, the latest
libusb code from github and a patched version based on that. I
couldn't get a flash drive passed through with any of them. Running as
root made no difference. My Mojave host doesn't allow unloading the
kext loaded for the flash drive where Sierra allowed that, but then
that should be handled by the patches.

I'll link to the latest libusb and the patched version plus the
patches. I guess it will not work on your host, but you might be able
to persuade qemu to use them by using
install_name_tool -change /usr/local/opt/libusb/lib/libusb-1.0.0.dylib
@executable_path/libusb-1.0.0-latest.dylib qemu-system-ppc

I'll also include the patches, libusb is easily built.

I think you (John and Gerd) found that detecting if a kernel driver is attached does not seem to work so it does not even get to unloading what these patches are about I think. So you first need to debug and fix libusb_kernel_driver_active() so the unloading function is called at all. I don't know how that's done on macOS but maybe querying the IO registry somehow that should have all info about devices and IOKit drivers.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]