Hi All
Platform: i.MX6ULL
Software: Linux_4.9.11
The customer want to use USB composite device, one for HID and one for mass storage.
would you provide how to configuration USB driver for composite device?
Thanks.
Hi,
You doesn't need to re-configure USB driver. There are two USB port on i.mx6ulL evk board, one is USB OTG with microUSB connector, the other is USB Host. For HID device, customer can connect it to USB host; for Mass storage, customer can use a USB OTG to HOST cable to connect microUSB connector, and the other side of the cable is used to connect mass storage, such as moble disk or U disk.
Hope this can do help for you.
Have a great day,
Rita
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Rita
The customer is want to use same USB port let PC recognize two USB type device, for example USB HID and USB mass storage.
Thanks.
Hi,
You can not modprobe two independent gadget drivers. For this, you need to use a composite driver that registers both functions. You can do this in two ways:
1. To use a single legacy composite driver (actually you are already using the legacy drivers on your tests), this is, you need to create a custom kernel module instead of using g_mass_storage and g_hid separately. See drivers/usb/gadget/legacy/acm_ms.c for an example.
2. You can configure the composite driver from userspace using configfs:
https://events.static.linuxfound.org/sites/events/files/slides/USB%20Gadget%20Configfs%20API_0.pdf
Best Regards,
-Marco
GStreamer Development | Embedded Linux Development | Linux SDK
Hi All
I have the same issue, too.
I found some article but still not solve the issue. I have trawled through many articles with no luck.
Hi Alex,
You can refer to my later reply. It maybe do help for you.
Have a nice day
Rita