Setting up imx8mqevk as a USB gadget.
We are trying to setup the imx8mq evaluation board as a USB gadget webcam. All required USB gadget support device driver modules have been added to kernel config (.config attached herewith), making sure that all dependencies for USB Webcam Gadget are taken care of.
The "fsl-image-validation-imx" yocto recipe is being used to build sdcard images. Following is the output for modprobe g_webcam:
modprobe g_webcam
[49067.289228] g_webcam gadget: uvc_function_bind
[49067.294003] g_webcam gadget: Webcam Video Gadget
[49067.300815] g_webcam gadget: g_webcam ready
The following modules show for lsmod:
lsmod
Module Size Used by
g_webcam 16384 0
snd_usb_audio 176128 0
snd_hwdep 20480 1 snd_usb_audio
snd_usbmidi_lib 32768 1 snd_usb_audio
galcore 409600 7
ipv6 385024 26
The dip switch on the board has been set to mmc and SD configuration, in both read and write mode.
The board still doesn't get detected as a usb gadget when connected to a host. Windows and Ubuntu machines have been tired out as host machines.
Attached herewith is the current config the kernel we're testing this out with.
Please let us know as to what might me the issue here, and what else could be done to setup up imx8mqevk as a USB gadget webcam.
what bsp do you use? pls refer to the topic as below, hope helpful for you: