Hi
As per dmesg with your new kernel 7.0-rc6 for NanoPi Zero2 I see:
[ 2.702207] rk_gmac-dwmac ffbe0000.ethernet: TSO supported
[ 2.702212] rk_gmac-dwmac ffbe0000.ethernet: TSO feature enabled
[ 2.702217] rk_gmac-dwmac ffbe0000.ethernet: SPH feature enabled
[ 2.702223] rk_gmac-dwmac ffbe0000.ethernet: Using 40/40 bits DMA host/device width
[ 2.835085] rk_gmac-dwmac ffbe0000.ethernet end0: renamed from eth0
[ 14.593430] rk_gmac-dwmac ffbe0000.ethernet end0: Register MEM_TYPE_PAGE_POOL RxQ-0
[ 14.594666] rk_gmac-dwmac ffbe0000.ethernet end0: cannot attach to PHY (error: -ENODEV)
Solution here could be:
--- a/arch/arm64/boot/dts/rockchip/rk3528-nanopi-zero2.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3528-nanopi-zero2.dts
@@ -215,8 +215,12 @@
&gmac1 {
clock_in_out = "output";
phy-handle = <&rgmii_phy>;
- phy-mode = "rgmii-id";
+ phy-mode = "rgmii-rxid";
phy-supply = <&vcc_3v3>;
+ snps,reset-delays-us = <0 20000 100000>;
+ tx_delay = <0x30>;
+ snps,reset-gpio = <&gpio4 RK_PC2 GPIO_ACTIVE_LOW>;
+ snps,reset-active-low;
pinctrl-names = "default";
pinctrl-0 = <&rgmii_miim>, <&rgmii_tx_bus2>, <&rgmii_rx_bus2>,
<&rgmii_rgmii_clk>, <&rgmii_rgmii_bus>;
After that no more issues and end0 is active:
root@nanopi-zero2:/mnt# dmesg |grep -i ether
[ 0.692398] igb: Intel(R) Gigabit Ethernet Network Driver
[ 2.724403] rk_gmac-dwmac ffbe0000.ethernet: IRQ sfty not found
[ 2.724642] rk_gmac-dwmac ffbe0000.ethernet: PTP uses main clock
[ 2.724894] rk_gmac-dwmac ffbe0000.ethernet: integrated PHY? (no).
[ 2.731460] rk_gmac-dwmac ffbe0000.ethernet: init for rgmii-rxid with delay (tx: 0x30, rx: 0x0)
[ 2.732094] rk_gmac-dwmac ffbe0000.ethernet: User ID: 0x40, Synopsys ID: 0x51
[ 2.732123] rk_gmac-dwmac ffbe0000.ethernet: DWMAC4/5
[ 2.732131] rk_gmac-dwmac ffbe0000.ethernet: DMA HW capability register supported
[ 2.732137] rk_gmac-dwmac ffbe0000.ethernet: Active PHY interface: RGMII (1)
[ 2.732143] rk_gmac-dwmac ffbe0000.ethernet: RX Checksum Offload Engine supported
[ 2.732148] rk_gmac-dwmac ffbe0000.ethernet: TX Checksum insertion supported
[ 2.732153] rk_gmac-dwmac ffbe0000.ethernet: Wake-Up On Lan supported
[ 2.732261] rk_gmac-dwmac ffbe0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 2.732274] rk_gmac-dwmac ffbe0000.ethernet: Enabled RFS Flow TC (entries=10)
[ 2.732281] rk_gmac-dwmac ffbe0000.ethernet: TSO supported
[ 2.732285] rk_gmac-dwmac ffbe0000.ethernet: TSO feature enabled
[ 2.732290] rk_gmac-dwmac ffbe0000.ethernet: SPH feature enabled
[ 2.732297] rk_gmac-dwmac ffbe0000.ethernet: Using 40/40 bits DMA host/device width
[ 3.003884] rk_gmac-dwmac ffbe0000.ethernet end0: renamed from eth0
[ 20.128116] rk_gmac-dwmac ffbe0000.ethernet end0: Register MEM_TYPE_PAGE_POOL RxQ-0
[ 20.154309] rk_gmac-dwmac ffbe0000.ethernet end0: PHY [stmmac-0:01] driver [RTL8211F Gigabit Ethernet] (irq=POLL)
[ 20.162321] rk_gmac-dwmac ffbe0000.ethernet end0: No Safety Features support found
[ 20.162907] rk_gmac-dwmac ffbe0000.ethernet end0: PTP not supported by HW
[ 20.162931] rk_gmac-dwmac ffbe0000.ethernet end0: configuring for phy/rgmii-rxid link mode
[ 167.651606] rk_gmac-dwmac ffbe0000.ethernet end0: Link is Up - 1Gbps/Full - flow control rx/tx
Hi
As per dmesg with your new kernel 7.0-rc6 for NanoPi Zero2 I see:
Solution here could be:
After that no more issues and end0 is active: