UPDATE: I’ve found a script in /etc called run_usb.sh, which by default is used by Milk-V to put device in NCM mode. This allows the device to emulate Ethernet connection. It seems that the script also allows to start the device in UVC mode, which should allow Milk-V to be registered as webcam. For some reason the script does not work - I’ll keep investigating and post results here.
All that’s left is to figure out how to set up UVC folder structure for USB device and verify that it works - I’ll be able to do that once I’ll receive the compatible camera. If I’ll manage to get it working, I’ll make a pull request with this feature to Duo buildroot SDK.
It seems that one of the main reason why UVC init is failing is because default Linux build does not have UVC drivers included. I’m trying to figure out how to build Linux with UVC drivers, using Using a usb camera on milk-v Duos | Milk-V as reference guide on adding drivers.
UPDATE: Camera has arrived. Unfortunately it seems that I won’t be able to plug it in unless V4L2 is supported by Milk-V Duo. When will the Duo support v4l2?
Is there any new info regarding V4L2 support? @Carbon@setq