This little tool helps to create a USB OTG gadget from an embedded device with the help of configfs. The USB functionality is generated via the functionfs (ffs).
- Update script variables for your specific environment (UDC, FFS_DIR, APP, ..)
- The tool expects the ffs programm in
~/ffs/aio_simple
# Start (
> ./start_usb_gadget.sh -f
# Stop
> ./start_usb_gadget.sh
- Sourcesink (
./start_usb_gadget.sh -s
) and - Loopback (
./start_usb_gadget.sh -l
) is for debugging purposes