Hi ,
I'm working on AM335xx EVM board running 4.4 kernel and i'm trying to implement usb uvc gadget using configfs method , but it is not able to detect the device when connected to host P.C
i am running below steps to create a gadget :
modprobe libcomposite
mkdir /sys/kernel/config/usb_gadget/g1
cd /sys/kernel/config/usb_gadget/g1
echo "0x1d6b" > idVendor
echo "0x0102" > idProduct
mkdir strings/0x409
echo "0123456789" > strings/0x409/serialnumber
echo "XYZ" > strings/0x409/manufacturer
echo "Webcam Gadget" > strings/0x409/product
mkdir configs/c.1
mkdir configs/c.1/strings/0x409
echo "conf1" > configs/c.1/strings/0x409/configuration
mkdir functions/uvc.usb0
ln -s functions/uvc.usb0 configs/c.1
echo "musb-hdrc.2.auto" > UDC
Below are the error logs :
[ 870.135502] configfs-gadget musb-hdrc.2.auto: failed to start g1: -19
-sh: echo: write error: No such device
I made sure that in dts file dr_mode is set to peripheral
Any inputs will be helpful
Thanks
Ramesh Krishnan N