patjak / facetimehd

Reverse engineered Linux driver for the FacetimeHD (Broadcom 1570) PCIe webcam
GNU General Public License v2.0
1.35k stars 160 forks source link

Doesn't work in Arch VM of M1 Macbook Air #249

Open DUOLabs333 opened 3 years ago

DUOLabs333 commented 3 years ago

I followed the instructions, yet my situation hasn't improved -- qemu still shows a green screen instead of my camera, even when I passed in the proper options -device qemu-xhci -device usb-host,vendorid=0x106B,productid=0x000B.

patjak commented 3 years ago

I have no idea what camera is in the M1 machines. Is it even compatible? This driver is only for PCIe devices and not USB. Are you using PCI passthrough to make the device visible inside the virtual machine?

DUOLabs333 commented 3 years ago

For the first part, yes, for M1, Apple uses PCI camera. Two, i'm not sure how would I do that in ARM (all instructions online are for x64).

patjak commented 3 years ago

Sorry I have no experience with QEMU on M1. Is the device listed when you run lspci inside the virtual machine?

DUOLabs333 commented 3 years ago

No, there's a host bridge, audio device, ethernet controller, display controller, keyboard controller, mouse controller, USB controller, and a SCSI storage controller.

zetaomegagon commented 2 years ago

@DUOLabs333 as a baseline, you are going to need to figure out how to pass through PCIe from your host M1 Mac to Qemu. As for the issues still existing after that, based on @patjak 's knowledge of the hardware-- I'd say that ultimately this would be a feature request.

DUOLabs333 commented 2 years ago

Yeah, I still haven't figured out how to pass in that or the microphone.