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.
Part Number: TDA2EVM5777
Tool/software: Linux
Hi Guys,
I'm working on TDA2EX EVM board with 4.4 kernel which is part of vision_sdk_02_12.
i'm trying to implement usb uvc gadget using configfs.
EVM board as usb webcam(device) -------------------------> HOST PC.
i have set usb as dr_mode = "otg" in dts file. and passing these parameters
# mount -t debugfs debugfs /mnt/ # echo "device" > /mnt/488d0000/mode # cat /mnt/488d0000/mode OTG # modprobe configfs # modprobe libcomposite # cd /sys/kernel/config/usb_gadget # mkdir g1 # cd g1 # echo "0xA55A" > idVendor # cat idVendor # echo "0x0111" > idProduct # mkdir strings/0x409 # cd strings/ # cd 0x409/ # echo "0123456789" > serialnumber # echo "Xyz Inc." > manufacturer # echo "webcam" > product # cd ../../
# modprobe usb_f_uvc # mkdir functions/uvc.usb0 # mkdir configs/c.1 # mkdir configs/c.1/strings/0x409 # echo "Video" > configs/c.1/strings/0x409/configuration # echo 120 > configs/c.1/MaxPower # mkdir functions/uvc.usb0/control/header/h # cd functions/uvc.usb0/control/ # ln -s header/h class/fs # ln -s header/h class/ss # cd ../../../ # mkdir -p functions/uvc.usb0/streaming/uncompressed/u/360p # cat <<EOF > functions/uvc.usb0/streaming/uncompressed/u/360p/dwFrameInterval > 666666 > 1000000 > 5000000 > EOF # mkdir functions/uvc.usb0/streaming/header/h # cd functions/uvc.usb0/streaming/header/h # ln -s ../../uncompressed/u # cd ../../class/fs # ln -s ../../header/h # cd ../../class/hs # ln -s ../../header/h # cd ../../../control # cd ../../../ # ln -s functions/uvc.usb0 configs/c.1/ # echo "488d0000.usb" > UDC
after these i'm getting these message.
[ 41.557509] configfs-gadget gadget: uvc_function_bind [ 41.592097] dwc3 488d0000.usb: otg: gadget gadget registered
but when i connect device to host PC. i'm not getting any enumeration as expected in usb hotplug device.
In host PC, their is no information whether any usb device connected.
i have posted in TDA2EX ADAS forum of e2e but they inform that they have not tested these that's why i'm posting here in linux community.
if anyone can tell what can be the problem. to confirm USB port is working or not i have tested with usb mass storage which is working fine.
regards,
Ganesh