I'm looking to implement a USB gadget using Linux on iMX6, that implements an isochronous IN endpoint.
I've started with the usb.c example from http://www.linux-usb.org/gadget/usb.c and modifying it for the iMX6.
I'm using Linux 4.1.15 at the moment. I'm mounting the gadgetfs framework using:
mount -t gadgetfs none /dev/gadget
This results in a 2184000.usb file in the /dev/gadget directory.
I've modified the usb.c example to look for this 2184000.usb file and fill a set of USB descriptors. This results in the host computer indeed recognizing the iMX6 as a USB device with the USB descriptors I configured. However I'm getting a bit stuck, the gadget application on the iMX6 seems to hang, eventually resulting in a reboot of my iMX6 Linux platform.
Has anyone done something similar and have source code I could use as inspiration/example?