How to enable USB ethernet adapter in Turris Omnia

HI Community, I am asking you for help, because I did not find this topic in the forum yet. I have added Ethernet port as USB stick ( ADE-SG USB 3.0 GIGABIT ETHERNET) on Turris Omnia. I have installed driver from official Turris repository (opkg install kmod-usb-net-asix-ax88179). Because it using Asix gigabit ethernet. I can see that eth3 was added to the interfaces. But whatever I do and add this interface to LAN as additional port or WAN as PPoE, the communication with this interface is inactive even leds on USB device are active. If I add eth3 to LAN interfaces, it is still not visible in switch (Switch0) therefore I think connection does not work. I have also 3G modem in 2nd USB, but if I disconnect 3g modem, the problem is still the same.
It is true I do not see this USB ethernet card in supported devices on official web page, but on other side driver for Omnia is available so somebody has used it before.
I found also strange errors in logs pasted below. Any idea how I would be able to enable this usb ethernet interface?
I specifically need it as WAN port and then I plan to replace 3G modem mwan3 config with this eth3 interface for load balancing between two internet providers. But I start with configuration of interface in LAN mode just to see, if it is working, which apparently don’t, so far :slight_smile:
Below some pasted outputs from console

root@turris:~# lsusb
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 003: ID 0b95:1790 ASIX Electronics Corp.
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 003: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

root@turris:~# lsusb -t
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=ax88179_178a, 5000M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
|__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=option, 480M
|__ Port 1: Dev 3, If 1, Class=Vendor Specific Class, Driver=option, 480M
|__ Port 1: Dev 3, If 2, Class=Vendor Specific Class, Driver=, 480M
|__ Port 1: Dev 3, If 3, Class=Mass Storage, Driver=usb-storage, 480M
|__ Port 1: Dev 3, If 4, Class=Mass Storage, Driver=usb-storage, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=orion-ehci/1p, 480M

problematic interface with 0 traffic:
eth3 Link encap:Ethernet HWaddr 00:13:3B:9A:1B:1D
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

All interfaces for the reference:

root@turris:~# ifconfig
3g-lte Link encap:Point-to-Point Protocol
inet addr:10.135.zzz.xxx P-t-P:10.64.xx.yy Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:765 errors:0 dropped:0 overruns:0 frame:0
TX packets:765 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:63816 (62.3 KiB) TX bytes:63858 (62.3 KiB)

br-lan Link encap:Ethernet HWaddr D8:58:D7:00:40:B3
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::da58:d7ff:/64 Scope:Link
inet6 addr: fdbf:3e27:/60 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:177943 errors:0 dropped:4 overruns:0 frame:0
TX packets:147130 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:92917954 (88.6 MiB) TX bytes:158079592 (150.7 MiB)

eth0 Link encap:Ethernet HWaddr D8:58:D7:00:40:B3
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:162029 errors:0 dropped:30 overruns:0 frame:0
TX packets:154032 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:92565919 (88.2 MiB) TX bytes:156569276 (149.3 MiB)
Interrupt:37

eth1 Link encap:Ethernet HWaddr D8:58:D7:00:40:B4
inet addr:10.48.xx.yy Bcast:10.48.x.y Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:150958 errors:0 dropped:2472 overruns:0 frame:0
TX packets:146170 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:155982374 (148.7 MiB) TX bytes:89624598 (85.4 MiB)
Interrupt:38

eth2 Link encap:Ethernet HWaddr D8:58:D7:00:40:B5
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13385 errors:0 dropped:0 overruns:0 frame:0
TX packets:19400 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:2236900 (2.1 MiB) TX bytes:2934937 (2.7 MiB)
Interrupt:40

eth3 Link encap:Ethernet HWaddr 00:13:3B:9A:1B:1D
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:3863 errors:0 dropped:0 overruns:0 frame:0
TX packets:3863 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:261303 (255.1 KiB) TX bytes:261303 (255.1 KiB)

wlan0 Link encap:Ethernet HWaddr 04:F0:21:24:1C:63
inet6 addr: fe80::6f0:21ff:fe24:1c63/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4046 errors:0 dropped:0 overruns:0 frame:0
TX packets:11028 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:694287 (678.0 KiB) TX bytes:4599021 (4.3 MiB)

wlan1 Link encap:Ethernet HWaddr 04:F0:21:23:19:2E
inet6 addr: fe80::6f0:21ff:fe23:192e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6564 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:827428 (808.0 KiB)

/var/log/messages

2021-03-03 16:32:15 info kernel[]: [ 1436.977639] usb 5-1: USB disconnect, device number 2
2021-03-03 16:32:15 info kernel[]: [ 1436.977775] ax88179_178a 5-1:1.0 eth3: unregister ‘ax88179_178a’ usb-f10f8000.usb3-1, ASIX AX88179 USB 3.0 Gigabit Ethernet
2021-03-03 16:32:15 warning kernel[]: [ 1436.977801] ax88179_178a 5-1:1.0 eth3: Failed to read reg index 0x0002: -19
2021-03-03 16:32:15 warning kernel[]: [ 1436.977808] ax88179_178a 5-1:1.0 eth3: Failed to write reg index 0x0002: -19
2021-03-03 16:32:15 info kernel[]: [ 1436.977936] br-lan: port 5(eth3) entered disabled state
2021-03-03 16:32:15 info kernel[]: [ 1436.981150] device eth3 left promiscuous mode
2021-03-03 16:32:15 info kernel[]: [ 1436.981157] br-lan: port 5(eth3) entered disabled state
2021-03-03 16:32:15 warning kernel[]: [ 1437.007635] ax88179_178a 5-1:1.0 eth3 (unregistered): Failed to write reg index 0x0002: -19
2021-03-03 16:32:15 warning kernel[]: [ 1437.007645] ax88179_178a 5-1:1.0 eth3 (unregistered): Failed to write reg index 0x0001: -19
2021-03-03 16:32:15 warning kernel[]: [ 1437.007651] ax88179_178a 5-1:1.0 eth3 (unregistered): Failed to write reg index 0x0002: -19
2021-03-03 16:32:20 info kernel[]: [ 1441.837409] usb 5-1: new SuperSpeed USB device number 3 using xhci-hcd
2021-03-03 16:32:20 info kernel[]: [ 1442.198746] ax88179_178a 5-1:1.0 eth3: register ‘ax88179_178a’ at usb-f10f8000.usb3-1, ASIX AX88179 USB 3.0 Gigabit Ethernet, 00:13:3b:9a:1b:
2021-03-03 16:32:21 info kernel[]: [ 1442.530174] device eth3 entered promiscuous mode

[/etc/config/network] just lan interface to show eth3 is there:

config interface ‘lan’
<------>option force_link ‘1’
<------>option type ‘bridge’
<------>option proto ‘static’
<------>option netmask ‘255.255.255.0’
<------>option ip6assign ‘60’
<------>option ipaddr ‘192.168.2.1’
<------>option _orig_ifname ‘eth0 eth2 eth3 wlan0 wlan1’
<------>option _orig_bridge ‘true’
<------>option ifname ‘eth0 eth2 eth3’

Hi There, After I did updates to USB drivers everything works well. You can close the topic.

2021-03-04 11:42:03 info kernel[]: [ 9689.948343] ax88179_178a 4-1:1.0 eth3: ax88179 - Link status is: 1
2021-03-04 11:42:03 notice netifd[]: Network device ‘eth3’ link is up
2021-03-04 11:42:03 info kernel[]: [ 9689.953993] br-lan: port 5(eth3) entered forwarding state
2021-03-04 11:42:03 info kernel[]: [ 9689.954031] br-lan: port 5(eth3) entered forwarding state
2021-03-04 11:42:05 info kernel[]: [ 9691.950501] br-lan: port 5(eth3) entered forwarding state

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.