Hello community,
I already fail on the step "mkdir functions/uvc.usb0":
> mkdir: cannot create directory 'uvc.usb0': Operation not permitted
I listed directory with gadget modules:
>>ls /lib/modules/4.14.98-imx_4.14.98_2.0.0_ga+g5d6cbea/kernel/drivers/usb/gadget/legacy
g_audio.ko g_ether.ko g_ncm.ko g_zero.ko
g_cdc.ko g_mass_storage.ko g_serial.ko
Don't I have required module in my image? I googled during 1 hour and couldn't find any answers, how to activate UVC gadget.
I tried modprobe uvcvideo and I have this module now, but it still not working. It seems to be another module.
For people that running into the same problem, it seems to be a dwc3 usb controller(driver) problem.
There's another post about this from 2018, but I guess he didn't dig that deep:
Issue in Video Streaming with gadget webcam module g_webcam in i.MX8 EVK
I've seen people having this problem on RK3399 which also integrate dwc3 as its usb controller.
firefly rk3399 uvc-gadget 无法正常工作 · Issue #167 · rockchip-linux/kernel · GitHub
I hope in the future someone would be more committed to solving this, and this post would give him some useful information.
I'm currently done with this, not a big issue, I think most customer can accept not having uvc gadget feature.
After all no one cares about uvc gadget on a platform like imx8, it simply isn't designed for that purpose.
Hi Han,
You could take a look to the following Community thread for reference information:
i.MX 6,7,8 support USB device mode support to UVC
Also, on application note AN12103 is implemented a UVC, but based on a i.MX RT processor:
https://www.nxp.com/docs/en/application-note/AN12103.pdf
Hope this will be useful for you.
Best regards!
/Carlos
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
-------------------------------------------------------------------------------
Thanks for you reply, Carlos.
But we know that isn't helping with this particular problem, no one's ever successfully verified UVC gadget on imx8 as far as I know.