0
guidol

H2/H3: "old problem" Link (eth0) is Up/Down syndrom

Recommended Posts

Armbianmonitor:

on a Sunvell R69 (H2) and a NanoPi Neo (H3) I got these "old known" eth0 Link Up/Down syndrom, but couldnt find a solution in the forum while using the search-engine :(

 

armbianmonitor -u
System diagnosis information will now be uploaded to

Sunvell R69 - Linux sunvell-r69 5.4.0-rc8-sunxi #19.11.3 SMP Wed Nov 27 17:01:29 CET 2019 armv7l armv7l armv7l GNU/Linux : 

http://ix.io/232T

 

NanoPi Neo - Linux npi-neo 5.3.3-sunxi #5.98 SMP Sat Oct 5 18:34:15 +03 2019 armv7l GNU/Linux :

http://ix.io/232U


in dmesg it looks like
 

[10536.264427] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[10568.008879] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[10571.081067] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[10575.177000] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[10580.297247] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[10604.873552] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[10607.945753] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[10608.969632] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[10612.041827] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[10631.498029] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[10633.546213] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[10636.618141] dwmac-sun8i 1c30000.ethernet eth0: Link is Down

I have the feeling its could have to do with using 1GBit/1000MBit devices on the same 100MBit-Ethernet-Hub, because I do get much mor of these messages when my armbian-build-system-PC is on (which uses a onboard GBit-Ethernet-Card).
On the 100MBit-Hub there are also some othe 1GBit-Devices like the NanoPi Neo2.

On the PC I did try to force the 1GBit-Card to 100MBit with ethtool -s eth0 speed 100 autoneg off 

But that doesnt seem to help.

 

On other SBC-devices I could find these messages in the dmesg (and in the froum search it was a problem 4 to 2 years ago)

 

On the other hand there was a disscussion about a new driver version for kernel 4.1.4 at
https://forum.armbian.com/topic/4364-dwmac-sun8i- driver-v6/

 

 

With debian stretch armabian 5.41 and kernel 4.1.4.34 I did see that problem (and doenst feel it at a SSH-session) on the Sunvell R69. 

Share this post


Link to post
Share on other sites

Also with kernel 5.4.1 on the OrangePi R1 (H2+ CPU) :(
Changed Network-cable, Power-supply, dcard which do work without problems on other SBCs

SSH-session is mostly unuseable :(
I also deinstalled network-manager and do only use /etc/network/interfaces.

Maybe I will check tomorrow if connection via WiFi is more "stable"!?

 

BTW: I did also read about some SBCs other than H2/H3 who have Network/SSH-problems since kernel 5.3/5.4.y,

but they did show the error-message in the dmesg.

Armbian Buster with Linux 5.4.1-sunxi
package bsp-kernel[19.11.3.339] u-boot[19.11.3] dtb[19.11.3.339] 
firmware[19.11.3.334] config[19.11.3.334] branch[dev]

[   33.781329] vcc3v0: disabling
[   33.781350] vcc5v0: disabling
[   59.349570] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[   67.541687] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   74.709525] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[   92.117671] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  113.621488] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  115.669653] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  152.533554] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  154.581720] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  169.941894] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  171.990061] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  181.206113] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  184.278327] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  188.374256] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  191.446457] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  193.494356] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  195.542543] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  219.094889] dwmac-sun8i 1c30000.ethernet eth0: Link is Down

 

Share this post


Link to post
Share on other sites
10 hours ago, Igor said:

What is the u-boot version?

@Igor its for the OPi R1

U-Boot SPL 2019.10-armbian (Dec 05 2019 - 19:02:23 +0300)

dpkg -l|grep u-boot
linux-u-boot-orangepi-r1-dev 19.11.3   armhf  Uboot loader 2019.10

 

I also compiled a legacy image, but here I did also get Uboot 2019.10:

linux-u-boot-legacy-orangepi-r1_19.11.3_armhf.deb
U-Boot SPL 2019.10-armbian (Dec 06 2019 - 08:52:44 +0300)
dpkg -l|grep u-boot
linux-u-boot-orangepi-r1-legacy 19.11.3 armhf Uboot loader 2019.10

with the same problems:
 

Spoiler

[  225.629410] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  226.653640] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  231.773488] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  232.797650] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  233.373175] ==> rtl8188e_iol_efuse_patch
[  235.869420] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  243.037541] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  247.133489] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  248.157639] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  250.205402] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  254.301629] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  258.397501] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  264.541706] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  268.637493] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  271.709631] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  275.805495] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  277.853624] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  281.949493] dwmac-sun8i 1c30000.ethernet eth0: Link is Down

 

but also often:
 

[   76.501287] ==> rtl8188e_iol_efuse_patch
[   81.373252] ==> rtl8188e_iol_efuse_patch
[  104.449252] ==> rtl8188e_iol_efuse_patch
[  137.369173] ==> rtl8188e_iol_efuse_patch
[  180.377180] ==> rtl8188e_iol_efuse_patch
[  233.373175] ==> rtl8188e_iol_efuse_patch
[  296.433174] ==> rtl8188e_iol_efuse_patch
[  359.465161] ==> rtl8188e_iol_efuse_patch
[  422.466610] ==> rtl8188e_iol_efuse_patch
[  485.403544] ==> rtl8188e_iol_efuse_patch
[  548.408481] ==> rtl8188e_iol_efuse_patch

 

Share this post


Link to post
Share on other sites

@Igor interesting side-effect-information: its seems that only the onboard eth0 dwmac-sun8i 1c30000.ethernet

is affected by the down/up-link syndrom

 

if I do use the second ethernetport of the OPi R1 (which is connected onboard via USB) then I dont have this

down/up-link syndrom:
 

enxc0742bffe8ff
[    2.815218] usbcore: registered new interface driver usb-storage
[    3.471264] usb 3-1: New USB device found, idVendor=0bda, idProduct=8152, bcdDevice=20.00
[    6.781528] core: _opp_supported_by_regulators: OPP minuV: 1400000 maxuV: 1400000, not supported by regulator
[    7.062463] usbcore: registered new interface driver r8152
[    7.429322] r8152 3-1:1.0 eth2: v1.10.10
[    7.611054] r8152 3-1:1.0 enxc0742bffe8ff: renamed from eth2

Also a external USB-Ethernet device isnt affected by the down/up-link syndrom:

enx00123455562b
[    7.107788] MOSCHIP usb-ethernet driver 4-1:1.0 eth1: register 'MOSCHIP usb-ethernet driver' at usb-1c1c000.usb-1, MOSCHIP 7830/7832/7730 usb-NET adapter, 00:12:34:55:56:2b
[    7.108080] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[    7.568243] MOSCHIP usb-ethernet driver 4-1:1.0 enx00123455562b: renamed from eth1

All 3 were connected to the same ethernet-cable running with the same OS, Power-Supply and SDCard.

Share this post


Link to post
Share on other sites

maybe its the RTL8211E PHY which is used for eth0?

 

https://linux-sunxi.org/Ethernet

Quote

The SoC's GMAC is always combined with an external PHY, in most cases a RTL8211E/CL (the Lamobo R1 uses the Broadcom BCM53125 switch IC instead). Important: In this special mode the RTL8211 chip is just used as PHY and only responsible for layer 1 operations, since everything else happens inside the SoC's GMAC (therefore no RealTek drivers are needed and some functionality differs, e.g. no WoL possible).

 For reliable Gigabit networking (1000Mbit operation), several sunxi devices require an important tweak that adjusts the relative timing of the clock and data signals to the PHY, in order to compensate for differing trace lengths on the PCB (details). Among others, this includes Banana Pi/Pro, Cubietruck, Lamobo R1, pcDuino3 Nano and Orange Pi/Mini. Recent mainline U-Boot uses CONFIG_GMAC_TX_DELAY to initialize these devices accordingly. If a necessary GMAC TX delay isn't set, then GBit Ethernet operation might be unreliable or won't work at all. 10/100 Mbit/sec negotiation is unaffected, so misconfigured devices could actually work (faster) when connected to a Fast Ethernet port instead of a GBit Ethernet port.

 

see also
https://forum.pine64.org/showthread.php?tid=5712
https://patchwork.ozlabs.org/patch/873752/
https://lkml.org/lkml/2017/8/22/9

 

and maybe here?
https://lore.kernel.org/lkml/20170908142825.GC3037@Red/t/

Share this post


Link to post
Share on other sites
1 hour ago, Igor said:

Yes, it looks like somebody played with timings or we miss some patch adjusting this ... since we are changing release model, master will only be build ready, other things will be more fragile https://github.com/armbian/documentation/blob/master/docs/Process_Release-Model.md (WIP) users should stick to released branches. They should not have this problem since u-boot is old there ... 

my ./userpatches/config-default.conf defaults to branch master as LIB_TAG

but I cant set BRANCH=master at compile.sh because then I do get

[ error ] Kernel branch not defined for this board [ master ]
 

So I could use LEGACY, CURRENT and DEV and maybe NEXT

Which branch should I use to get an older u-boot?

I think released branches are v19.08 and v19.11  (took the names from https://github.com/armbian/build )

but I also do get

[ error ] Kernel branch not defined for this board [ v19.08 ]
[ error ] Kernel branch not defined for this board [ v19.11 ]

 

But also with LEGACY and NEXT I do get only the new u-boot 2019.10 :(

Please give me a info what to try ;)

 

Share this post


Link to post
Share on other sites
On 12/6/2019 at 11:15 PM, guidol said:

Please give me a info what to try


Your build directory is probably not clean and it does not change properly. Hmm ... but there are older binaries in the https://apt.armbian.com/pool/main/l/ 

 

Install them + armbian-config -> system -> update boot loader (+ de-install older before)

Share this post


Link to post
Share on other sites
3 hours ago, Igor said:


Your build directory is probably not clean and it does not change properly. Hmm ... but there are older binaries in the https://apt.armbian.com/pool/main/l/ 

Install them + armbian-config -> system -> update boot loader (+ de-install older before)

First I did try to compile with CLEAN_LEVEL="make,debs,oldcache,cache,alldebs" - that cleaned many files/dirctorys, but also did try to compile u-boot 2019.10 instead of 2019.04

 

Now I deleted my ./build-dirctory and cloned (again) the armbian-build - hope thats clean enough ;)

 

I did also try to install bootloader via armbian-config

On the OPi R1 I did get:

linux-u-boot-orangepi-r1-dev  19.11.3  armhf  Uboot loader 2019.04

 

With this u-boot eth0 is (also) found - but cant be used :(

 

dmesg seems to be OK:

[    2.718770] libphy: Fixed MDIO Bus: probed
[    2.719328] dwmac-sun8i 1c30000.ethernet: 1c30000.ethernet supply phy not found, using dummy regulator
[    2.719403] dwmac-sun8i 1c30000.ethernet: 1c30000.ethernet supply phy-io not found, using dummy regulator
[    2.719893] libphy: stmmac: probed
[    2.720380] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[    2.720477] libphy: mdio_mux: probed
[    2.720494] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[    2.720502] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[    2.731395] libphy: mdio_mux: probed
[    3.134611] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    8.052169] dwmac-sun8i 1c30000.ethernet eth0: PHY [0.1:01] driver [Generic PHY]
[    8.053364] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[    8.053380] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[    8.053390] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[    8.053403] dwmac-sun8i 1c30000.ethernet eth0: configuring for phy/mii link mode

eth0 is blinking like a heartbeat with the yellow/green led at the same time :(

 

second onboard-ethernet-port via usb is working.

 

Share this post


Link to post
Share on other sites

with fresh git--cloned armbian-build-system compiled:

Armbian Buster with Linux 5.4.2-sunxi

package bsp-kernel[19.11.3] u-boot[19.11.3] dtb[19.11.3] firmware[19.11.3] config[19.11.3]
branch[dev]
 

linux-u-boot-orangepi-r1-dev  19.11.3  armhf  Uboot loader 2019.10

linux-dtb-dev-sunxi           19.11.3  armhf  Linux DTB, version 5.4.2-sunxi
linux-image-dev-sunxi         19.11.3  armhf  Linux kernel, version 5.4.2-sunxi


 

eth0 doenst work- but usb-ethernet

CURRENT image only has the "patched/buggy" 5.3 kernel :(

 

 

Share this post


Link to post
Share on other sites
35 minutes ago, guidol said:

eth0 doenst work- but usb-ethernet

strange - eth0 is working (with down/up-link-syndrom) when powered via MicroUSB with org. Raspberry Pi power-supply, but not via the power-barrel-connector which is installed on my OPi R1.

Spoiler

[   33.781379] vcc3v0: disabling
[   33.781398] vcc5v0: disabling
[   36.213802] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   63.860722] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[   66.932859] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   70.004716] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[   74.100856] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   78.196731] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[   80.244862] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   83.316714] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[   85.364855] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   93.556750] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[   96.628785] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  113.018029] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  116.090292] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  132.474376] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  135.546821] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  145.786562] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  151.930964] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  160.122733] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  163.195196] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  165.242813] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  168.315266] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  174.458935] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  177.531355] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  185.723009] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  187.771176] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  194.939061] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  198.011499] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  222.587242] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  224.635439] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  287.099024] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  289.147172] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  309.627008] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  312.699461] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  330.107200] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  332.155394] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  352.635420] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[  356.731601] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx


This barrel-connector has now worked since 2 years and now it seems to get not enough power to the board for the normal eth0, bt for the usb-eth1?

 

 

Share this post


Link to post
Share on other sites
10 hours ago, guidol said:

strange - eth0 is working (with down/up-link-syndrom) when powered via MicroUSB with org. Raspberry Pi power-supply, but not via the power-barrel-connector which is installed on my OPi R1.


Probably there is a bug in the board DT or withing u-boot. Close inspection and comparing to reality is needed.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0