This post was finally edited by ag123 at 2023-11-30 15:10
follow-up from previous:
ethernet link disconnects recovers on its own if ethernet set to run at 100Mbps (this is good news)
- ethtool -s eth0 speed 100
Copy code
There have been several link down events at 100 Mbps.
But that this time, the link recovers on its own.
Note that the link down events are rather frequent
Thus far for one of the situation, recovery needs adjusting the ethernet cable,
possibly due to a loose ethernet cable.
- [ 5152.517613] dwmac-sun8i 5020000.ethernet eth0: Link is Down
- [ 5152.518017] br0: port 1(eth0) entered disabled state
- [ 5154.565859] dwmac-sun8i 5020000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
- [ 5154.566162] br0: port 1(eth0) entered blocking state
- [ 5154.566192] br0: port 1(eth0) entered listening state
- [ 5155.589608] dwmac-sun8i 5020000.ethernet eth0: Link is Down
- [ 5155.589987] br0: port 1(eth0) entered disabled state
- [ 5158.661851] dwmac-sun8i 5020000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
- [ 5158.662126] br0: port 1(eth0) entered blocking state
- [ 5158.662154] br0: port 1(eth0) entered listening state
- [ 5173.733061] br0: port 1(eth0) entered learning state
- [ 5188.837080] br0: port 1(eth0) entered forwarding state
- [ 5188.837122] br0: topology change detected, propagating
Copy code
Disconnects is frequent, some 25 disconnects and reconnects in 4 hours.
But that so far at 100 Mbps, the kernel / system manages to recover on its own.
Wifi (UWE5622) remains up and connectable.
- [ 6979.333601] dwmac-sun8i 5020000.ethernet eth0: Link is Down
- [ 6981.381844] dwmac-sun8i 5020000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
- [ 6982.405594] dwmac-sun8i 5020000.ethernet eth0: Link is Down
- [ 6985.477839] dwmac-sun8i 5020000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
- [ 6986.501592] dwmac-sun8i 5020000.ethernet eth0: Link is Down
- [ 6987.525845] dwmac-sun8i 5020000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
- [ 8434.437556] dwmac-sun8i 5020000.ethernet eth0: Link is Down
- [ 8476.421803] dwmac-sun8i 5020000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
- [ 8980.229593] dwmac-sun8i 5020000.ethernet eth0: Link is Down
- [ 8983.301834] dwmac-sun8i 5020000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
- [ 8984.325575] dwmac-sun8i 5020000.ethernet eth0: Link is Down
- [ 8986.373819] dwmac-sun8i 5020000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
- [10947.333595] dwmac-sun8i 5020000.ethernet eth0: Link is Down
- [10949.381835] dwmac-sun8i 5020000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
Copy code
Unfortunately even with this ethernet reduce to run at 100 Mbps network link still goes down twice in 6 hours, requiring at least
a cable adjustment (e.g. unplug/replug cable). Note that nothing moves, the link just goes off on its own.
In the last test, link disconnects after 18 hours 23 minutes at 100 Mbps requiring a
complete power cycle, led goes off. Note that nothing moves, the board is left overnight
to monitor stability. Adjusting the cable (disconnecting and reconnecting) did not restore
the connection. I did not successfully restore the ethernet connection even after a power
cycle, even tried power cycling the connected upstream ethernet switch. - [77171.726686] dwmac-sun8i 5020000.ethernet eth0: Link is Down
- [77171.727097] br0: port 1(eth0) entered disabled state
- root@DietPi:~# uptime
- 12:59:20 up 1 day, 2:30, 1 user, load average: 1.00, 1.00, 1.00
- root@DietPi:~# ip link
- 2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq master br0 state DOWN mode DEFAULT group default qlen 1000
Copy code
note that it is uncertain if this is a single piece defect or that it could be an
issue with the ethernet PHY.
got ethernet back after an hour, startup from cold, setting ethernet speeds to 100Mbps - ethtool -s eth0 speed 100
Copy code
|