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.

Linux/AM5708: USB subsystem is not working in Linux

Part Number: AM5708

Tool/software: Linux

Hello,

I have one usb super-speed port which I planning to use as rndis gadget. I set menuconfig to gadget mode and set "USB Gadget functions configurable through configfs" to rndis, also I set dts file.

I can see usb in u-boot, but I can't see it in linux.

lsusb command gets me an error "unable to initialize libusb: -99". I don't have "usb" directory in /sys/bus neither in /sys/kernel/debug/. But I have one in /sys/devices/platform/44000000.ocp/48880000.omap_dwc3_1/48890000.usb/udc/48890000.usb. There is next fs:
root@am5708-p38:/sys/devices/platform/44000000.ocp/48880000.omap_dwc3_1/48890000.usb/udc/48890000.usb# ls -l
-r--r--r-- 1 root root 4096 Feb 18 12:39 a_alt_hnp_support
-r--r--r-- 1 root root 4096 Feb 18 12:39 a_hnp_support
-r--r--r-- 1 root root 4096 Feb 18 12:39 b_hnp_enable
-r--r--r-- 1 root root 4096 Feb 18 12:39 current_speed
lrwxrwxrwx 1 root root 0 Feb 18 12:39 device -> ../../../48890000.usb
-r--r--r-- 1 root root 4096 Feb 18 12:39 function
-r--r--r-- 1 root root 4096 Feb 18 12:39 is_a_peripheral
-r--r--r-- 1 root root 4096 Feb 18 12:39 is_otg
-r--r--r-- 1 root root 4096 Feb 18 12:39 is_selfpowered
-r--r--r-- 1 root root 4096 Feb 18 12:39 maximum_speed
drwxr-xr-x 2 root root 0 Feb 18 12:39 power
--w------- 1 root root 4096 Feb 18 12:39 soft_connect
--w------- 1 root root 4096 Feb 18 12:39 srp
-r--r--r-- 1 root root 4096 Feb 18 12:39 state
lrwxrwxrwx 1 root root 0 Feb 18 12:31 subsystem -> ../../../../../../../class/udc
-rw-r--r-- 1 root root 4096 Feb 18 12:12 uevent

state is "not attached". function is empty. current-speed is "UNKNOWN". maximum speed is "super-speed". Any is_* is 0.

Also, I have tried use a manual from gadget_configfs.txt and got extra ethernet point but without a working usb system it of course doesn't work too.

What should I change for solving my problem.

Best regards