Hello everybody. Currently I'm running Openwrt on Raspberry and have tried a lot of different Openwrt builds. Constant problem with USB lan Asix 88179. I need your advice. thank you very much...
Power 3A for Raspberry and Power 3A for Hub USB 3.0
2 Ugreen 50922 USB 3.0 Gigalan Asix AX88179 10/100/1000
Software
OpenWrt SNAPSHOT r18269-c47e82d255 Linux 5.10.82
Mwan3
kmod-usb-net-asix-ax88179
- I have tested from Linux version 5.4 to 5.10 all get the USB WAN error Asix AX88179. (Tested on 2 USB Lan Realtek r8152 runs relatively well, no problem) - When used for a period of 2.3 hours, the 2 usb Asix AX88179 automatically failed to connect to the wan and had problems. If I restart Openwrt, the connection is normal. (If tested with App Speedtest or website Speedtest, tested about 2.3 times, these 2 USBs suddenly died for no reason) Does anyone know how to fix this on Openwrt? I suspect due to Asix AX88179 USB. Thank you! (Power supply is excluded because I have tested various 3A power sources)
crashlog+conditions suggest nic hardware / load induced lockup... even more probable considering 5.4 and 5.10 manifest similar behavior...
i'd not exclude some arch + driver specific complications given the maturity of said chipsets, nor power circuitry as a factor
a little more info on how much data exactly you were pumping through each nic is just as relavent as time frames to crash... ( as is temperature I suppose... but not everyone has a thermal camera )
i think the first point of call would be to also reproduce with only a single usb nic inserted / used ...
(or save the trouble and use alternate nic/s?)
The temperature or power is definitely not because I use 3A and the fan is cool. machine temperature is very cool. My per wan speed is 250mb/wan and I use mwan3 to make 2 wan bandwidth into 1 Lan. Lan is equivalent to 400 ~ 450mb (After a few tests using the app or Speedtest website, 2 usb asix ax88178 is enabled and it is disabled. It seems that Asix ax88179 really has a problem. restart Raspberry .
I tested not using a usb 3.0 hub. Or just use 1 Usb Asix ax88179 but the problem is still the same. Check with the Speedtest application 3.4 times that the usb has a problem. Or leave it for 1.2 hours, the problem still occurs...
yeah... if there is an issue... I was sort of implying it's lower down in the power delivery layers... in the regulator ic's or components themselves...
rpi4 is known to interact in a non predictable way with hubs and power bleed also...
given the above... i'd go with another chipset / nic...
ue300 / rtl8153? is popular and has generally proved reliable for many users here...
at those speeds... vlans via a smart switch are also a reliable option... ( and bypass the hassle of having to handle boot usb -> nic interface reassignments )
I also consulted a lot of articles about Ax88179. and last response is This device should not be used for Raspberry + Openwrt to avoid problems. Thank you so much my friend!
Out of curiosity why are/were you using the hub? Given the RPi4 has two USB 3.0 ports and as far as I am aware ethernet adapters aren't that power hungry.
not sure about the OP, but I'd lean towards using a hub here...
mostly for the space/wear and tear factor... but the onboard power regulator is the achilles heel of the pi4... so if in doubt use a (powered) hub... but some hubs cause more issues than they solve...
a single usb->ethernet + a single usb3 thumb drive would probably be ok... and as you say 2 nics would probably be ok too...
but when hardware starts acting funny... it's definately one of the first things to try on these boards...
I replaced the Hub using a better one for the Asix ax88179a. But the problem is still the same. (The problem of lack of power can be ignored)
And I also tried 1 usb ax88179 to the Raspberry board, the problem is still the same, combining a lot of linux 5.4 > 5.10
Asix ax88179 tried on both PfSense and same error. It seems that Asix ax88179 is really problematic on Linux systems.
All 3 tests give the same result: Asix automatically dies after some time, you have to restart Openwrt, pfsense... Test App Speedtest or website 3,4 times Asix88179 will die on its own.
I firmly believe that the problem is related to the Driver that all Asix ax88179 currently on the market drive when running on Lunux. And I'm still waiting for a fix from someone in the community.
I had the same issue with the ax88179 adapter. Seemed to be triggered not by high throughput, but by a high packet per second rate. I disabled QoS (qdisc set to none) on the ax88179 adapter interface and that appears to have resolved the issue.
lsusb
Bus 003 Device 003: ID 0b95:1790 ASIX Elec. Corp. AX88179
dmesg | grep asix
[ 608.073560] usbcore: registered new interface driver asix
dmesg | grep ax88
[ 11.232362] ax88179_178a 3-1.1:1.0 eth1: register 'ax88179_178a' at usb-d0058000.usb-1.1, ASIX AX88179 USB 3.0 Gigabit Ethernet, XX:XX:XX:XX.....
[ 11.246326] usbcore: registered new interface driver ax88179_178a
root@Espresso1:~# dmesg | grep usb
[ 0.223957] usbcore: registered new interface driver usbfs
[ 0.229601] usbcore: registered new interface driver hub
[ 0.235139] usbcore: registered new device driver usb
[ 0.676942] orion-ehci d005e000.usb: EHCI Host Controller
[ 0.682470] orion-ehci d005e000.usb: new USB bus registered, assigned bus number 1
[ 0.690340] orion-ehci d005e000.usb: irq 21, io mem 0xd005e000
[ 0.721702] orion-ehci d005e000.usb: USB 2.0 started, EHCI 1.00
[ 0.737146] usbcore: registered new interface driver usb-storage
[ 2.761808] xhci-hcd d0058000.usb: xHCI Host Controller
[ 2.767237] xhci-hcd d0058000.usb: new USB bus registered, assigned bus number 2
[ 2.775010] xhci-hcd d0058000.usb: hcc params 0x0a000998 hci version 0x100 quirks 0x0000000000010090
[ 2.784491] xhci-hcd d0058000.usb: irq 20, io mem 0xd0058000
[ 2.799195] xhci-hcd d0058000.usb: xHCI Host Controller
[ 2.804629] xhci-hcd d0058000.usb: new USB bus registered, assigned bus number 3
[ 2.812280] xhci-hcd d0058000.usb: Host supports USB 3.0 SuperSpeed
[ 2.818846] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[ 3.081782] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[ 3.567030] usb 3-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd
[ 4.573250] usb 3-1.1: new SuperSpeed Gen 1 USB device number 3 using xhci-hcd
[ 11.010796] usbcore: registered new interface driver asix
[ 11.371047] ax88179_178a 3-1.1:1.0 eth1: register 'ax88179_178a' at usb-d0058000.usb-1.1, ASIX AX88179 USB 3.0 Gigabit Ethernet, XX:XX:XX:XX:.....
[ 11.385028] usbcore: registered new interface driver ax88179_178a