This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3351: USB webcam issue

Part Number: AM3351


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

  • Hi Ramesh,

    First of all, please use the latest Processor SDK Linux. v4.4 kernel is very old and no longer supported on this forum.

    Your script above which creates the uvc gadget seems missing some steps, for example, video stream related properties.