Hello everyone,
I have a problem with my NanoPi R4S. The WAN (eth0) port does not work well when it is configured to work on 1Gbps/Full. When this setting is active there is about 15% packet loss, which is quite annoying.
In my tests I have already been able to identify that if I configure the port to work at 100Mbps/Full everything works normally. So I found the forum-post below, that explain that some u-Boot version wasn't setting the correct clock configuration for the netwok device at boot time, but now I have installed the linux-u-boot-nanopi-r4s-edge 22.08.6 and linux-image-edge-rockchip64 22.08.8 but the problem still there.
I've read millions of forums for the solution, and so far I haven't made much progress. Would anyone be able to help me?
in dmesg it looks like:
[ 1.853954] rk_gmac-dwmac fe300000.ethernet: IRQ eth_wake_irq not found
[ 1.853967] rk_gmac-dwmac fe300000.ethernet: IRQ eth_lpi not found
[ 1.854071] rk_gmac-dwmac fe300000.ethernet: PTP uses main clock
[ 1.854234] rk_gmac-dwmac fe300000.ethernet: clock input or output? (input).
[ 1.854244] rk_gmac-dwmac fe300000.ethernet: TX delay(0x28).
[ 1.854253] rk_gmac-dwmac fe300000.ethernet: RX delay(0x11).
[ 1.854267] rk_gmac-dwmac fe300000.ethernet: integrated PHY? (no).
[ 1.854320] rk_gmac-dwmac fe300000.ethernet: cannot get clock clk_mac_speed
[ 1.854326] rk_gmac-dwmac fe300000.ethernet: clock input from PHY
[ 1.859341] rk_gmac-dwmac fe300000.ethernet: init for RGMII
[ 1.860175] rk_gmac-dwmac fe300000.ethernet: User ID: 0x10, Synopsys ID: 0x35
[ 1.860191] rk_gmac-dwmac fe300000.ethernet: DWMAC1000
[ 1.860199] rk_gmac-dwmac fe300000.ethernet: DMA HW capability register supported
[ 1.860206] rk_gmac-dwmac fe300000.ethernet: RX Checksum Offload Engine supported
[ 1.860212] rk_gmac-dwmac fe300000.ethernet: COE Type 2
[ 1.860218] rk_gmac-dwmac fe300000.ethernet: TX Checksum insertion supported
[ 1.860224] rk_gmac-dwmac fe300000.ethernet: Wake-Up On Lan supported
[ 1.860283] rk_gmac-dwmac fe300000.ethernet: Normal descriptors
[ 1.860291] rk_gmac-dwmac fe300000.ethernet: Ring mode enabled
[ 1.860297] rk_gmac-dwmac fe300000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 11.139092] rk_gmac-dwmac fe300000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[ 11.178717] rk_gmac-dwmac fe300000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211E Gigabit Ethernet] (irq=75)
[ 11.189571] rk_gmac-dwmac fe300000.ethernet eth0: No Safety Features support found
[ 11.189610] rk_gmac-dwmac fe300000.ethernet eth0: PTP not supported by HW
[ 11.190145] rk_gmac-dwmac fe300000.ethernet eth0: configuring for phy/rgmii link mode
[ 14.868809] rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
I was thinking that the line below was the problem, but I'm confused now:
armbianmonitor -u: https://paste.armbian.com/joperiqoso