Hello,
Based on tda2hg deveice run VSDK03 05, how to support the ethernet over USB? How to set the config in kernel?
Thanks
Terence
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.
Hello,
Based on tda2hg deveice run VSDK03 05, how to support the ethernet over USB? How to set the config in kernel?
Thanks
Terence
Hi Terence,
Please refer to a similar thread here.
Feel free to get back to us if you have further queries.
Thank you
Santhana Bharathi
Hi Santhana Bharathi,
Accordding to your suggestion, we read the thread you said. While, we need to set the TDA2HG deveice as USB HOST. The USB interface of TDA2HG device connect the adapter of USB - ethernet, and then connect to the PC with ethernet. So, how do we config the kernel? it may be config as RNDIS mode. Could you help to give us a suggestion again?
Thanks
Terence
and the chip of USB 3.0 to 10/100/1000m gigabit Ethernet controller connect to TDA2HG device is AX88179.
Hi Terence,
Base on the above thread & replies, this is our understanding
- TDA2HG need to configured as USB HOST
- The USB Ethernet adapter having AX88179 chip is connected to one of the USB port of TDA2HG
- Ethernet cable is connect b/n the USB Ethernet adapter and PC ( directly or via a switch)
Now you would like to know how to enable the Ethernet connection b/n TDA2HG and PC. Let me know if this is correct?
Few questions:
- which USB instance of TDA2HG you are planning to use for the above?
- Is the DT file update to make sure that that USB instance is in host mode? i.e dr_mode = "host"
- Ideally the USB ethenet adapter will be automatically enumerated on connecting to the USB port.. Does it happen?
- Note that the linux kernel supports AX88179. But we need to make sure that the required CONFIG are enabled
CONFIG_USB_USBNET=m
CONFIG_USB_NET_AX8817X=m
CONFIG_USB_NET_AX88179_178A=m
CONFIG_USB_NET_CDCETHER=m
- If kernel is build correctly with above, part of the boot flow, the ethernet adapter will be enumerated successfully and usbnet would load the asix driver properly and we would see the network interface enabled when we run "ifconfig".
Hope the above steps helps to enable Ethernet over USB.
regards,
Praveen
Hi Praveen,
Thank you very much!
It is very correct about your words. For your questions:
- which USB instance of TDA2HG you are planning to use for the above?
We are planning to use USB instance 2, also we find it has be set as dr_mode = "host" in dra7-evm-common.dtsi
&usb2 {
dr_mode = "host";
};
- Note that the linux kernel supports AX88179. But we need to make sure that the required CONFIG are enabled
CONFIG_USB_USBNET=m
CONFIG_USB_NET_AX8817X=m
CONFIG_USB_NET_AX88179_178A=m
CONFIG_USB_NET_CDCETHER=m
For this question, "m" means that it will compile as module. What is the load order? If we need to insmod usbnet.ko firstly?
Terence
On the other hand, What is the asix.ko, ax88179_178a.ko, cdc_ether.ko and usbnet.ko load sequence?
Thanks
Terence