Tool/software: Linux
Hi,
As before link discribed, I want to configure CDC/RNDIS gadget in J6 EVM, could you guide me to configure this?
Best Regards,
Fredy
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.
Tool/software: Linux
Hi,
As before link discribed, I want to configure CDC/RNDIS gadget in J6 EVM, could you guide me to configure this?
Best Regards,
Fredy
Hi Fredy,
Can you tell which PSDKLA release you are referring for this activity?
Also can you tell us which USB instance is being used for the above? Please note that with the default kernel, USB3 port (usb1: usb@48890000) is configured as OTG and USB2 port (usb2: usb@488d0000) is configured as HOST in the dt files. Hence we would need to use the USB3 port for your testing ( unless you are modifying the dt files).
Please note that in the latest release provided targetfs, the RNDIS gadget is already present and is built as module as found in the /lib/module/drivers/usb/gadget/
Since the default mode OTG mode, to switch to DEVICE mode, at least one gadget must be loaded.
So suggest you to try calling: modprobe g_ether
After this you can verify if the module got load properly by checking by calling: lsmod
To check if the mode has switched to device, call: cat /sys/kernel/debug/48890000.usb/mode
With the above you must have the gadget loaded and ethernet device by the name usb0 must be created. Now you assign an IP address to the device and bring up the device as needed.
-Praveen
Hi,Praveen
the log as below:
root@dra7xx-evm:~# modprobe g_ether [ 58.807048] using random self ethernet address [ 58.811525] using random host ethernet address [ 58.819732] usb0: HOST MAC fa:06:60:12:b1:83 [ 58.842167] usb0: MAC ca:5a:05:9a:c5:90 [ 58.858046] using random self ethernet address [ 58.870228] using random host ethernet address [ 58.875817] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008 [ 58.883278] g_ether gadget: g_ether ready [ 58.888482] dwc3 48890000.usb: otg: gadget gadget registered [ 58.898646] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready [ 58.905792] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller root@dra7xx-evm:~# [ 58.911634] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3 [ 58.923832] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x00210010 [ 58.932620] xhci-hcd xhci-hcd.1.auto: irq 510, io mem 0x48890000 [ 58.943664] hub 3-0:1.0: USB hub found [ 58.947489] hub 3-0:1.0: 1 port detected [ 58.951852] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller [ 58.951899] tvp5158 1-0058: Unable to of_probe [ 58.952111] tvp5158 1-0058: Unable to of_probe [ 58.973295] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4 [ 58.981304] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM. [ 58.992072] hub 4-0:1.0: USB hub found [ 58.995989] hub 4-0:1.0: 1 port detected [ 59.000407] tvp5158 1-0058: Unable to of_probe [ 59.007270] tvp5158 1-0058: Unable to of_probe root@dra7xx-evm:~# cat /sys/kernel/debug/48890000.usb/mode host
the log show the usb mode is host, could you guide me to solve this?
Br,Fredy