Bpi-r3 - problem with left sfp

Hy :slight_smile:

I have a problem with the sfp located at left (eth1)

I2C works : i can do the commands lines ethtool, but the network connection doesn’t work.

Here a log :

# ifup eth1
[  443.047914] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/2500base-x link mode
udhcpc: started, v1.32.0
udhcpc: sending [  443.126051] mtk_soc_eth 15100000.ethernet eth1: switched to inband/sgmii link mode
discover
[  443.302854] mtk_soc_eth 15100000.ethernet eth1: PHY [i2c:sfp-1:16] driver [Marvell 88E1111] (irq=POLL)
udhcpc: sending discover
udhcpc: sending discover
udhcpc: no lease, failing
# ifup eth1
udhcpc: started, v1.32.0
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: no lease, failing
# ethtool eth1
Settings for eth1:
        Supported ports: [ TP    MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
                                1000baseX/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
                                1000baseX/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Auto-negotiation: on
        Port: Twisted Pair
        PHYAD: 22
        Transceiver: external
        MDI-X: Unknown
        Current message level: 0x000000ff (255)
                               drv probe link timer ifdown ifup rx_err tx_err
        Link detected: no
# [  492.111580] sfp sfp-1: module removed
[  494.815691] sfp sfp-2: module RAD Data Comm.   SFP-30H          rev 1.0  sn OP18060400248    dc 180604
ifup wan0
Verification cohérence conf des interfaces wan
On bascule sur le rsfp wan
[  502.822792] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[  502.831178] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[  502.831845] mt7530 mdio-bus:1f wan0: configuring for inband/2500base-x link mode
udhcpc: started, v1.32.0
# [  502.915963] mt7530 mdio-bus:1f wan0: switched to inband/sgmii link mode
udhcpc: sending discover
[  503.092864] mt7530 mdio-bus:1f wan0: PHY [i2c:sfp-2:16] driver [Marvell 88E1111] (irq=POLL)
udhcpc: sending discover
[  506.254885] mt7530 mdio-bus:1f wan0: Link is Up - 1Gbps/Full - flow control rx/tx
udhcpc: sending discover
udhcpc: sending select for 192.168.1.59
udhcpc: lease of 192.168.1.59 obtained, lease time 86400
deleting routers
adding dns 192.168.1.1

# ethtool wan0
Settings for wan0:
        Supported ports: [ TP    MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
                                1000baseX/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
                                1000baseX/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Auto-negotiation: on
        Port: Twisted Pair
        PHYAD: 22
        Transceiver: external
        MDI-X: Unknown
        Supports Wake-on: d
        Wake-on: d
        Link detected: yes
#

wan0 is the sfp located at the right ( next to the rj45).

The command line ethtool for eth1 shows this line ( i think an error ) :

    Current message level: 0x000000ff (255)
                           drv probe link timer ifdown ifup rx_err tx_err

I used the kernel of the frank’s repo :slight_smile: the lastest version 6.1-R3

For the configuration of the fiels itnerfaces, it’s very simple :

iface wan0 inet dhcp

iface eth1 inet dhcp

I’ve been going around in circles for weeks and don’t see my errors.

Can someone help me please :slight_smile:

Thank by advance

My kernel has no wan0 interface…only wan which is most left rj45 port and connected to mt7531 switch

Wan-sfp (sfp1,left one connected to eth1) is removed in your log. Only right sfp (sfp2=lan4) is inserted

Hy,

I have modified the device tree like this :
(Just to adapt for my project)

// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/*
 * Copyright (C) 2021 MediaTek Inc.
 * Authors: Sam.Shih <[email protected]>
 *          Frank Wunderlich <[email protected]>
 *          Daniel Golle <[email protected]>
 */

/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/mt65xx.h>

#include "mt7986a.dtsi"

/ {
	model = "Bananapi BPI-R3";
	compatible = "bananapi,bpi-r3", "mediatek,mt7986a";

	aliases {
		serial0 = &uart0;
		ethernet0 = &gmac0;
		ethernet1 = &gmac1;
	};

	chosen {
		stdout-path = "serial0:115200n8";
	};

	dcin: regulator-12vd {
		compatible = "regulator-fixed";
		regulator-name = "12vd";
		regulator-min-microvolt = <12000000>;
		regulator-max-microvolt = <12000000>;
		regulator-boot-on;
		regulator-always-on;
	};

	gpio-keys {
		compatible = "gpio-keys";

		reset-key {
			label = "reset";
			linux,code = <KEY_RESTART>;
			gpios = <&pio 9 GPIO_ACTIVE_LOW>;
		};

		wps-key {
			label = "wps";
			linux,code = <KEY_WPS_BUTTON>;
			gpios = <&pio 10 GPIO_ACTIVE_LOW>;
		};
	};

	/* i2c of the left SFP cage (wan) */
	i2c_sfp1: i2c-gpio-0 {
		compatible = "i2c-gpio";
		sda-gpios = <&pio 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
		scl-gpios = <&pio 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
		i2c-gpio,delay-us = <2>;
		#address-cells = <1>;
		#size-cells = <0>;
	};

	/* i2c of the right SFP cage (lan) */
	i2c_sfp2: i2c-gpio-1 {
		compatible = "i2c-gpio";
		sda-gpios = <&pio 18 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
		scl-gpios = <&pio 19 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
		i2c-gpio,delay-us = <2>;
		#address-cells = <1>;
		#size-cells = <0>;
	};

	leds {
		compatible = "gpio-leds";

		green_led: led-0 {
			color = <LED_COLOR_ID_GREEN>;
			function = LED_FUNCTION_POWER;
			gpios = <&pio 69 GPIO_ACTIVE_HIGH>;
			default-state = "on";
		};

		blue_led: led-1 {
			color = <LED_COLOR_ID_BLUE>;
			function = LED_FUNCTION_STATUS;
			gpios = <&pio 86 GPIO_ACTIVE_HIGH>;
			default-state = "off";
		};
	};

	reg_1p8v: regulator-1p8v {
		compatible = "regulator-fixed";
		regulator-name = "1.8vd";
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;
		regulator-boot-on;
		regulator-always-on;
		vin-supply = <&dcin>;
	};

	reg_3p3v: regulator-3p3v {
		compatible = "regulator-fixed";
		regulator-name = "3.3vd";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		regulator-boot-on;
		regulator-always-on;
		vin-supply = <&dcin>;
	};

	/* left SFP cage (wan) */
	sfp1: sfp-1 {
		compatible = "sff,sfp";
		i2c-bus = <&i2c_sfp1>;
		los-gpios = <&pio 46 GPIO_ACTIVE_HIGH>;
		mod-def0-gpios = <&pio 49 GPIO_ACTIVE_LOW>;
		tx-disable-gpios = <&pio 20 GPIO_ACTIVE_HIGH>;
		tx-fault-gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
		maximum-power-milliwatt = <2000>;
	};

	/* right SFP cage (lan) */
	sfp2: sfp-2 {
		compatible = "sff,sfp";
		i2c-bus = <&i2c_sfp2>;
		los-gpios = <&pio 31 GPIO_ACTIVE_HIGH>;
		mod-def0-gpios = <&pio 47 GPIO_ACTIVE_LOW>;
		tx-disable-gpios = <&pio 15 GPIO_ACTIVE_HIGH>;
		tx-fault-gpios = <&pio 48 GPIO_ACTIVE_HIGH>;
		maximum-power-milliwatt = <2000>;
	};
};

&crypto {
	status = "okay";
};

&eth {
	status = "okay";

	gmac0: mac@0 {
		compatible = "mediatek,eth-mac";
		reg = <0>;
		phy-mode = "2500base-x";

		fixed-link {
			speed = <2500>;
			full-duplex;
			pause;
		};
	};

	gmac1: mac@1 {
		compatible = "mediatek,eth-mac";
		reg = <1>;
		phy-mode = "2500base-x";
		sfp = <&sfp1>;
		managed = "in-band-status";
	};

	mdio: mdio-bus {
		#address-cells = <1>;
		#size-cells = <0>;
	};
};

&fan {
	pwms = <&pwm 0 500000 0>;
	status = "okay";
};

&mdio {
	switch: switch@31 {
		compatible = "mediatek,mt7531";
		reg = <31>;
		reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
	};
};

&mmc0 {
	pinctrl-names = "default", "state_uhs";
	pinctrl-0 = <&mmc0_pins_default>;
	pinctrl-1 = <&mmc0_pins_uhs>;
	vmmc-supply = <&reg_3p3v>;
	vqmmc-supply = <&reg_1p8v>;
};

&i2c0 {
	pinctrl-names = "default";
	pinctrl-0 = <&i2c_pins>;
	status = "okay";
};

&pcie {
	pinctrl-names = "default";
	pinctrl-0 = <&pcie_pins>;
	status = "okay";
};

&pcie_phy {
	status = "okay";
};

&pio {
	i2c_pins: i2c-pins {
		mux {
			function = "i2c";
			groups = "i2c";
		};
	};

	mmc0_pins_default: mmc0-pins {
		mux {
			function = "emmc";
			groups = "emmc_51";
		};
		conf-cmd-dat {
			pins = "EMMC_DATA_0", "EMMC_DATA_1", "EMMC_DATA_2",
			       "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5",
			       "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD";
			input-enable;
			drive-strength = <4>;
			bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */
		};
		conf-clk {
			pins = "EMMC_CK";
			drive-strength = <6>;
			bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */
		};
		conf-ds {
			pins = "EMMC_DSL";
			bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */
		};
		conf-rst {
			pins = "EMMC_RSTB";
			drive-strength = <4>;
			bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */
		};
	};

	mmc0_pins_uhs: mmc0-uhs-pins {
		mux {
			function = "emmc";
			groups = "emmc_51";
		};
		conf-cmd-dat {
			pins = "EMMC_DATA_0", "EMMC_DATA_1", "EMMC_DATA_2",
			       "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5",
			       "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD";
			input-enable;
			drive-strength = <4>;
			bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */
		};
		conf-clk {
			pins = "EMMC_CK";
			drive-strength = <6>;
			bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */
		};
		conf-ds {
			pins = "EMMC_DSL";
			bias-pull-down = <MTK_PUPD_SET_R1R0_10>; /* pull-down 50K */
		};
		conf-rst {
			pins = "EMMC_RSTB";
			drive-strength = <4>;
			bias-pull-up = <MTK_PUPD_SET_R1R0_01>; /* pull-up 10K */
		};
	};

	pcie_pins: pcie-pins {
		mux {
			function = "pcie";
			groups = "pcie_clk", "pcie_pereset";
		};
	};

	pwm_pins: pwm-pins {
		mux {
			function = "pwm";
			groups = "pwm0", "pwm1_0";
		};
	};

	spi_flash_pins: spi-flash-pins {
		mux {
			function = "spi";
			groups = "spi0", "spi0_wp_hold";
		};
	};

	spic_pins: spic-pins {
		mux {
			function = "spi";
			groups = "spi1_0";
		};
	};

	uart1_pins: uart1-pins {
		mux {
			function = "uart";
			groups = "uart1_rx_tx";
		};
	};

	uart2_pins: uart2-pins {
		mux {
			function = "uart";
			groups = "uart2_0_rx_tx";
		};
	};

	wf_2g_5g_pins: wf-2g-5g-pins {
		mux {
			function = "wifi";
			groups = "wf_2g", "wf_5g";
		};
		conf {
			pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4",
			       "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6",
			       "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10",
			       "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1",
			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
			       "WF1_TOP_CLK", "WF1_TOP_DATA";
			drive-strength = <4>;
		};
	};

	wf_dbdc_pins: wf-dbdc-pins {
		mux {
			function = "wifi";
			groups = "wf_dbdc";
		};
		conf {
			pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4",
			       "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6",
			       "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10",
			       "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1",
			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
			       "WF1_TOP_CLK", "WF1_TOP_DATA";
			drive-strength = <4>;
		};
	};

	wf_led_pins: wf-led-pins {
		mux {
			function = "led";
			groups = "wifi_led";
		};
	};
};

&pwm {
	pinctrl-names = "default";
	pinctrl-0 = <&pwm_pins>;
	status = "okay";
};

&spi0 {
	pinctrl-names = "default";
	pinctrl-0 = <&spi_flash_pins>;
	cs-gpios = <0>, <0>;
	status = "okay";
};

&spi1 {
	pinctrl-names = "default";
	pinctrl-0 = <&spic_pins>;
	cs-gpios = <0>, <0>;
	status = "okay";
};

&ssusb {
	status = "okay";
};

&switch {
	ports {
		#address-cells = <1>;
		#size-cells = <0>;

		port@0 {
			reg = <0>;
			label = "wan1";
			local-mac-address = [00 0a 35 00 00 01]; 
		};

		port@1 {
			reg = <1>;
			label = "lan0";
		};

		port@2 {
			reg = <2>;
			label = "lan1";
		};

		port@3 {
			reg = <3>;
			label = "lan2";
		};

		port@4 {
			reg = <4>;
			label = "lan3";
		};

		port5: port@5 {
			reg = <5>;
			label = "wan0";
			phy-mode = "2500base-x";
			sfp = <&sfp2>;
			managed = "in-band-status";
			local-mac-address = [00 0a 35 00 00 01]; 
		};

		port@6 {
			reg = <6>;
			label = "cpu";
			ethernet = <&gmac0>;
			phy-mode = "2500base-x";

			fixed-link {
				speed = <2500>;
				full-duplex;
				pause;
			};
		};
	};
};

&trng {
	status = "okay";
};

&uart0 {
	status = "okay";
};

&uart1 {
	pinctrl-names = "default";
	pinctrl-0 = <&uart1_pins>;
	status = "okay";
};

&uart2 {
	pinctrl-names = "default";
	pinctrl-0 = <&uart2_pins>;
	status = "okay";
};

&usb_phy {
	status = "okay";
};

&watchdog {
	status = "okay";
};

&wifi {
	status = "okay";
	pinctrl-names = "default", "dbdc";
	pinctrl-0 = <&wf_2g_5g_pins>, <&wf_led_pins>;
	pinctrl-1 = <&wf_dbdc_pins>, <&wf_led_pins>;

	led {
		led-active-low;
	};
};

&wifi {
	mediatek,eeprom-data = <0x86790900 0xc4326 0x60000000 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x1000000
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x800 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x24649090 0x280000 0x5100000 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x21e00 0x21e0002 0x1e00021e 0x22800 0x2280002 0x28000228 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x8080 0x8080fdf7
				0x903150d 0x80808080 0x80808080 0x5050d0d 0x1313c6c6 0xc3c3c200
				0xc200c2 0x8182
				0x8585c2c2 0x82828282 0x858500c2 0xc2000081 0x82858587 0x87c2c200
				0x81818285 0x858787c2
				0xc2000081 0x82858587 0x87c2c200 0x818285 0x858787c2 0xc2000081
				0x82858587 0x87c4c4c2
				0xc100c300 0xc3c3c100 0x818383c3 0xc3c3c100 0x81838300 0xc2c2c2c0
				0x81828484 0xc3
				0xc3c3c100 0x81838386 0x86c3c3c3 0xc1008183 0x838686c2 0xc2c2c081
				0x82848486 0x86c3c3c3
				0xc1008183 0x838686c3 0xc3c3c100 0x81838386 0x86c3c3c3 0xc1008183
				0x83868622 0x28002228
				0x222800 0x22280000 0xdddddddd 0xdddddddd 0xddbbbbbb 0xccccccdd
				0xdddddddd 0xdddddddd
				0xeeeeeecc 0xccccdddd 0xdddddddd 0x4a5662 0x4a 0x56620000 0x4a5662
				0x4a
				0x56620000 0x88888888 0x33333326 0x26262626 0x26262600 0x33333326
				0x26262626 0x26262600
				0x33333326 0x26262626 0x26262600 0x33333326 0x26262626 0x26262600
				0x00 0xf0f0cc00
				0x00 0xaaaa 0xaabbbbbb 0xcccccccc 0xccccbbbb 0xbbbbbbbb 0xbbbbbbaa
				0xaaaabbbb
				0xbbaaaaaa 0x999999aa 0xaaaabbbb 0xbbcccccc 0x00 0xaaaa 0xaa000000
				0xbbbbbbbb
				0xbbbbaaaa 0xaa999999 0xaaaaaaaa 0xaaaaaaaa 0xaaaaaaaa 0xaaaaaaaa
				0xaaaabbbb 0xbbbbbbbb
				0x00 0x00 0x00 0x99999999 0x9999aaaa 0xaaaaaaaa 0x999999aa
				0xaaaaaaaa
				0xaaaaaaaa 0xaaaaaaaa 0xaaaabbbb 0xbbbbbbbb 0x00 0xeeee 0xeeffffff
				0xcccccccc
				0xccccdddd 0xddbbbbbb 0xccccccbb 0xbbbbbbbb 0xbbbbbbbb 0xbbbbbbbb
				0xbbbbcccc 0xccdddddd
				0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e
				0x516200 0x686e0051
				0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051
				0x6200686e 0x516200
				0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200
				0x686e0051 0x6200686e
				0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e
				0x516200 0x686e0051
				0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200 0x686e0051
				0x6200686e 0x516200
				0x686e0051 0x6200686e 0x516200 0x686e0051 0x6200686e 0x516200
				0x686e0051 0x6200686e
				0x88888888 0x88888888 0x88888888 0x88888888 0x88888888 0x88888888
				0x88888888 0x88888888
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x01 0x6000100 0x1050002 0xff0300
				0xf900fe03 0x00 0x00 0x9b 0x6e370000 0x00 0xfc0009 0xa00fe00
				0x60700fe 0x70800 0x5000b0a 0x00 0x00 0xe2 0x96460000 0x00
				0x400f7 0xf8000300 0xfcfe0003 0xfbfc00 0xee00e3f2 0x00 0x00 0x11
				0xbb550000 0x00 0x600f6 0xfc000300 0xfbfe0004 0xfafe00 0xf600ecf2
				0x00
				0x00 0x1f 0xbf580000 0x00 0x600f5 0xf6000400 0xf8f90004 0xf7f800
				0xf700f0f4 0x00 0x00 0x24 0xbe570000 0x00 0x800f8 0xfe000600
				0xf8fd0007 0xf9fe00 0xf500f0f4 0x00 0x00 0x2d 0xd6610000 0x00
				0x400f7 0xfc000500 0xf7fc0005 0xf7fc00 0xf900f5f8 0x00 0x00 0x26
				0xd96e0000 0x00 0x400f7 0xf9000600 0xf5f70005 0xf5f800 0xf900f4f7
				0x00
				0x00 0x1b 0xce690000 0x00 0x300f8 0xf8000600 0xf6f60004 0xf6f700
				0xf900f4f7 0x00 0x00 0x18 0xd8720000 0x00 0x00 0x2404002
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0xc1c2c1c2 0x41c341c3 0x3fc13fc1 0x40c13fc2 0x3fc240c1 0x41c040c0
				0x3fc23fc2 0x40c13fc2
				0x3fc140c0 0x41c040c0 0x3fc33fc3 0x40c23fc2 0x3fc240c1 0x41c040c0
				0x3fc23fc2 0x40c23fc2
				0x3fc140c1 0x41c040c0 0x00 0x00 0x41c741c7 0xc1c7c1c7 0x00 0x00
				0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0
				0x3fc03fc0 0x3fc03fc0
				0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0 0x3fc03fc0
				0x3fc03fc0 0x3fc03fc0
				0xa0ce00 0x00 0xb6840000 0x00 0x00 0x00 0x18181818 0x18181818
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x4b5763 0x4b 0x57630000 0x4b5763 0x4b 0x57630000 0x88888888
				0x8474759
				0x69780849 0x49596d7a 0x849495a 0x6d790848 0x48596c78 0x8484858
				0x6a780848 0x48586a78
				0x8484858 0x6c78084a 0x4a5b6d79 0x8474759 0x697a0848 0x48596b79
				0x8484859 0x6c7a0848
				0x48586c79 0x8484857 0x68770848 0x48576877 0x8484857 0x6a77084a
				0x4a5a6a77 0x8464659
				0x69790848 0x48586b79 0x8484858 0x6c7a0848 0x48596c79 0x8484857
				0x68770848 0x48576877
				0x8494958 0x6d7a084b 0x4b5c6c77 0x847475a 0x6a7b0849 0x495a6e7c
				0x849495a 0x6e7c0849
				0x495b6e7c 0x8494959 0x6a7a0849 0x49596a7a 0x84a4a5a 0x6f7d084b
				0x4b5c6e7b 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x85848484
				0xc3c4c4c5 0xc4c3c33f 0xc3c3c2c2 0xc2c2c03f 0xc3c3c3c4 0xc4c4c33f
				0xc2c2c2c2 0xc1c3c1c1
				0xc0c08282 0x83848686 0x88880000 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x1111 0x00
				0x8080f703 0x10808080 0x80050d13 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0xa4 0xce000000 0xb684 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
				0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00>;
};

The lan4 ( which is the sfp lan for you) became the wan0 for me, because it’s the only one sfp which works for now.

I have the same problem before modify the Device tree

I guess this your main problem…

That may be,but it makes harder to find problem if you change anything…

So please add full bootlog without any modifications and with sfp plugged into the left sfp cage

Hi :slight_smile:

it noticed removed, because i put the sfp on the other sfp cage to test.

So, i have use your device tree, without modifications.

here the dmesg :

# dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.1.0-rc6-diagbox (root@workstation) (aarch64-linux-gnu-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #1 SMP Thu Dec  8 22:35:12 CET 2022
[    0.000000] Machine model: Bananapi BPI-R3
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'wmcpu-reserved@4fc00000': base 0x000000004fc00000, size 1 MiB
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000042ffffff]
[    0.000000]   node   0: [mem 0x0000000043000000-0x000000004302ffff]
[    0.000000]   node   0: [mem 0x0000000043030000-0x00000000bfffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 27 pages/cpu s70760 r8192 d31640 u110592
[    0.000000] pcpu-alloc: s70760 r8192 d31640 u110592 alloc=27*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[    0.000000] Kernel command line: board=DiagBox earlycon=uart8250,mmio32,0x11002000 debug=7 initrd=0x48000000,550M
[    0.000000] Unknown kernel command line parameters "board=DiagBox", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 1469856K/2097152K available (12736K kernel code, 2254K rwdata, 3784K rodata, 3968K init, 438K bss, 627296K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 640 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[    0.000000] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.008291] Console: colour dummy device 80x25
[    0.012756] printk: console [tty0] enabled
[    0.016871] printk: bootconsole [uart8250] disabled
[    0.021798] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.021811] pid_max: default: 32768 minimum: 301
[    0.021905] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.021920] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.022502] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.022803] cblist_init_generic: Setting adjustable number of callback queues.
[    0.022814] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.022911] rcu: Hierarchical SRCU implementation.
[    0.022917] rcu:     Max phase no-delay instances is 1000.
[    0.023368] EFI services will not be available.
[    0.023524] smp: Bringing up secondary CPUs ...
[    0.023845] Detected VIPT I-cache on CPU1
[    0.023901] cacheinfo: Unable to detect cache hierarchy for CPU 1
[    0.023909] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[    0.023943] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.024280] Detected VIPT I-cache on CPU2
[    0.024315] cacheinfo: Unable to detect cache hierarchy for CPU 2
[    0.024320] GICv3: CPU2: found redistributor 2 region 0:0x000000000c0c0000
[    0.024334] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.024613] Detected VIPT I-cache on CPU3
[    0.024649] cacheinfo: Unable to detect cache hierarchy for CPU 3
[    0.024654] GICv3: CPU3: found redistributor 3 region 0:0x000000000c0e0000
[    0.024665] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.024700] smp: Brought up 1 node, 4 CPUs
[    0.024749] SMP: Total of 4 processors activated.
[    0.024756] CPU features: detected: 32-bit EL0 Support
[    0.024762] CPU features: detected: CRC32 instructions
[    0.024805] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.024816] CPU: All CPU(s) started at EL2
[    0.024821] alternatives: applying system-wide alternatives
[    0.026571] devtmpfs: initialized
[    0.028937] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.028971] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.029087] pinctrl core: initialized pinctrl subsystem
[    0.029390] DMI not present or invalid.
[    0.029799] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.030097] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.030132] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.030164] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.030589] thermal_sys: Registered thermal governor 'fair_share'
[    0.030592] thermal_sys: Registered thermal governor 'bang_bang'
[    0.030599] thermal_sys: Registered thermal governor 'step_wise'
[    0.030605] thermal_sys: Registered thermal governor 'user_space'
[    0.030688] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.030752] ASID allocator initialised with 65536 entries
[    0.042856] cryptd: max_cpu_qlen set to 1000
[    0.043802] iommu: Default domain type: Translated
[    0.043825] iommu: DMA domain TLB invalidation policy: strict mode
[    0.043961] SCSI subsystem initialized
[    0.044079] libata version 3.00 loaded.
[    0.044179] usbcore: registered new interface driver usbfs
[    0.044205] usbcore: registered new interface driver hub
[    0.044230] usbcore: registered new device driver usb
[    0.044483] i2c-gpio i2c-gpio-0: using lines 427 (SDA) and 428 (SCL)
[    0.044602] i2c-gpio i2c-gpio-1: using lines 429 (SDA) and 430 (SCL)
[    0.044650] pps_core: LinuxPPS API ver. 1 registered
[    0.044657] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.044672] PTP clock support registered
[    0.045585] vgaarb: loaded
[    0.065887] clocksource: Switched to clocksource arch_sys_counter
[    0.070008] NET: Registered PF_INET protocol family
[    0.070205] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.071273] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.071325] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.071339] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.071417] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[    0.071816] TCP: Hash tables configured (established 16384 bind 16384)
[    0.071950] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.071999] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.072189] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.072876] PCI: CLS 0 bytes, default 64
[    0.073062] Unpacking initramfs...
[    0.085852] Initialise system trusted keyrings
[    0.086035] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.089333] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.089424] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.111855] Key type asymmetric registered
[    0.111892] Asymmetric key parser 'x509' registered
[    0.111995] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.112006] io scheduler mq-deadline registered
[    0.112012] io scheduler kyber registered
[    0.145127] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.166802] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 116, base_baud = 2500000) is a ST16650V2
[    0.995043] printk: console [ttyS0] enabled
[    1.020469] 11003000.serial: ttyS1 at MMIO 0x11003000 (irq = 117, base_baud = 1625000) is a ST16650V2
[    1.050904] 11004000.serial: ttyS2 at MMIO 0x11004000 (irq = 118, base_baud = 1625000) is a ST16650V2
[    1.061155] mtk_rng 1020f000.rng: registered RNG driver
[    1.066825] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.076618] loop: module loaded
[    1.081657] spi-nand spi0.0: Winbond SPI NAND was found.
[    1.087012] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    2.438212] Initramfs unpacking failed: invalid magic at start of compressed archive
[    2.642034] Freeing initrd memory: 563200K
[    2.661270] 4 fixed-partitions partitions found on MTD device spi0.0
[    2.667652] Creating 4 MTD partitions on "spi0.0":
[    2.672432] 0x000000580000-0x000008000000 : "ubi"
[    2.815723] 0x000000380000-0x000000580000 : "fip"
[    2.823176] 0x000000080000-0x000000380000 : "reserved"
[    2.832504] 0x000000000000-0x000000080000 : "bl2"
[    2.839740] sfp sfp-1: Host maximum power 1.0W
[    2.844720] sfp sfp-2: Host maximum power 1.0W
[    2.867174] mtk_soc_eth 15100000.ethernet: generated random MAC address 9e:75:21:bc:e6:80
[    2.875662] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc00b900000, irq 121
[    2.884840] mtk_soc_eth 15100000.ethernet: generated random MAC address 1e:89:47:d4:97:84
[    2.893269] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc00b900000, irq 121
[    2.902815] usbcore: registered new interface driver usb-storage
[    2.909034] i2c_dev: i2c /dev entries driver
[    2.915488] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    2.924346] SMCCC: SOC_ID: ID = jep106:0426:7986 Revision = 0x00000000
[    2.931010] usbcore: registered new interface driver usbhid
[    2.936596] usbhid: USB HID core driver
[    2.941351] xt_time: kernel timezone is -0000
[    2.945726] IPVS: Registered protocols ()
[    2.949803] IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
[    2.957214] IPVS: ipvs loaded.
[    2.960316] ipip: IPv4 and MPLS over IPv4 tunneling driver
[    2.966202] ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
[    2.972687] Initializing XFRM netlink socket
[    2.977045] NET: Registered PF_PACKET protocol family
[    2.982106] NET: Registered PF_KEY protocol family
[    2.987071] 8021q: 802.1Q VLAN Support v1.8
[    2.991297] Key type dns_resolver registered
[    2.996015] Loading compiled-in X.509 certificates
[    3.006610] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.009819] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    3.016474] mmc0: new high speed SDHC card at address 0001
[    3.021927] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    3.028402] mmcblk0: mmc0:0001 00000 29.8 GiB
[    3.033643] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    3.044588]  mmcblk0: p1 p2 p3 p4 p5 p6 p7
[    3.185710] sfp sfp-2: module RAD Data Comm.   SFP-30H          rev 1.0  sn OP18060400248    dc 180604
[    3.265897] mtk-pcie-gen3 11280000.pcie: PCIe link down, current LTSSM state: detect.active (0x1000001)
[    3.275299] mtk-pcie-gen3: probe of 11280000.pcie failed with error -110
[    3.300368] mt7530 mdio-bus:1f: no interrupt support
[    3.335306] mt7530 mdio-bus:1f: configuring for fixed/2500base-x link mode
[    3.342479] mt7530 mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    3.351675] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7531 PHY] (irq=POLL)
[    3.371416] mt7530 mdio-bus:1f lan0 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=POLL)
[    3.390989] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=POLL)
[    3.410564] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=POLL)
[    3.430139] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7531 PHY] (irq=POLL)
[    3.440839] device eth0 entered promiscuous mode
[    3.445484] DSA: tree 0 setup
[    3.448862] xhci-mtk 11200000.usb: supply vbus not found, using dummy regulator
[    3.456278] xhci-mtk 11200000.usb: supply vusb33 not found, using dummy regulator
[    3.464658] xhci-mtk 11200000.usb: xHCI Host Controller
[    3.469905] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 1
[    3.480289] xhci-mtk 11200000.usb: hcc params 0x01403f99 hci version 0x110 quirks 0x0000000000210010
[    3.489452] xhci-mtk 11200000.usb: irq 127, io mem 0x11200000
[    3.495293] xhci-mtk 11200000.usb: xHCI Host Controller
[    3.500517] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 2
[    3.507908] xhci-mtk 11200000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[    3.515435] hub 1-0:1.0: USB hub found
[    3.519218] hub 1-0:1.0: 2 ports detected
[    3.523526] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.531989] hub 2-0:1.0: USB hub found
[    3.535763] hub 2-0:1.0: 1 port detected
[    3.540870] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    3.556800] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    3.566945] Freeing unused kernel memory: 3968K
[    3.635958] Run /init as init process
[    3.639625]   with arguments:
[    3.642582]     /init
[    3.644843]   with environment:
[    3.647983]     HOME=/
[    3.650331]     TERM=linux
[    3.653025]     board=DiagBox
[    3.751017] FAT-fs (mmcblk0p5): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    3.823127] EXT4-fs (mmcblk0p6): recovery complete
[    3.837649] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Quota mode: disabled.
[    3.856830] F2FS-fs (mmcblk0p7): Magic Mismatch, valid(0xf2f52010) - read(0x0)
[    3.864062] F2FS-fs (mmcblk0p7): Can't find valid F2FS filesystem in 1th superblock
[    3.872321] F2FS-fs (mmcblk0p7): Magic Mismatch, valid(0xf2f52010) - read(0x0)
[    3.879541] F2FS-fs (mmcblk0p7): Can't find valid F2FS filesystem in 2th superblock
[    3.965964] usb 1-1: new high-speed USB device number 2 using xhci-mtk
[    3.990710] udevd[1311]: starting version 3.2.9
[    4.146624] hub 1-1:1.0: USB hub found
[    4.150451] hub 1-1:1.0: 4 ports detected
[    4.565907] usb 1-1.1: new high-speed USB device number 3 using xhci-mtk
[   11.366153] random: crng init done
[   11.377833] udevd[1332]: starting eudev-3.2.9
[   11.410569] usbcore: registered new interface driver usbserial_generic
[   11.415138] usbcore: registered new interface driver cdc_wdm
[   11.417736] usbserial: USB Serial support registered for generic
[   11.438614] usbcore: registered new interface driver option
[   11.444750] usbserial: USB Serial support registered for GSM modem (1-port)
[   11.452227] qmi_wwan 1-1.1:1.4: cdc-wdm0: USB WDM device
[   11.459957] qmi_wwan 1-1.1:1.4 wwan0: register 'qmi_wwan' at usb-11200000.usb-1.1, WWAN/QMI device, 82:9a:85:eb:93:d9
[   11.471213] option 1-1.1:1.0: GSM modem (1-port) converter detected
[   11.476003] usbcore: registered new interface driver qmi_wwan
[   11.491828] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB0
[   11.499045] option 1-1.1:1.1: GSM modem (1-port) converter detected
[   11.505723] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB1
[   11.513170] option 1-1.1:1.2: GSM modem (1-port) converter detected
[   11.519982] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB2
[   11.527586] option 1-1.1:1.3: GSM modem (1-port) converter detected
[   11.534199] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB3
[   11.559215] mtdblock: MTD device 'fip' is NAND, please consider using UBI block devices instead.
[   11.559833] mtdblock: MTD device 'reserved' is NAND, please consider using UBI block devices instead.
[   11.562690] mtdblock: MTD device 'bl2' is NAND, please consider using UBI block devices instead.
[   11.572248] mtdblock: MTD device 'ubi' is NAND, please consider using UBI block devices instead.
[   12.792045] br-wire: port 1(lan0) entered blocking state
[   12.797399] br-wire: port 1(lan0) entered disabled state
[   12.818379] device lan0 entered promiscuous mode
[   12.825339] br-wire: port 2(lan1) entered blocking state
[   12.830658] br-wire: port 2(lan1) entered disabled state
[   12.856973] device lan1 entered promiscuous mode
[   12.863055] br-wire: port 3(lan2) entered blocking state
[   12.868365] br-wire: port 3(lan2) entered disabled state
[   12.886976] device lan2 entered promiscuous mode
[   12.893033] br-wire: port 4(lan3) entered blocking state
[   12.898342] br-wire: port 4(lan3) entered disabled state
[   12.916969] device lan3 entered promiscuous mode
[   15.036128] mt7986-wmac 18000000.wifi: HW/SW Version: 0x8a108a10, Build Time: 20220113162701a
[   15.036128]
[   15.062671] mt7986-wmac 18000000.wifi: WM Firmware Version: ____000000, Build Time: 20220113162756
[   15.104139] mt7986-wmac 18000000.wifi: WA Firmware Version: DEV_000000, Build Time: 20220113163034
[   19.333819] br-wifi: port 1(wlan0) entered blocking state
[   19.339253] br-wifi: port 1(wlan0) entered disabled state
[   19.344764] device wlan0 entered promiscuous mode
[   19.349567] br-wifi: port 1(wlan0) entered blocking state
[   19.354956] br-wifi: port 1(wlan0) entered forwarding state
[   19.365936] br-wifi: port 1(wlan0) entered disabled state
[   19.663548] br-wifi: port 1(wlan0) entered blocking state
[   19.668974] br-wifi: port 1(wlan0) entered forwarding state
[   20.082012] br-wifi: port 2(wlan1) entered blocking state
[   20.087458] br-wifi: port 2(wlan1) entered disabled state
[   20.092985] device wlan1 entered promiscuous mode
[   20.097758] br-wifi: port 2(wlan1) entered blocking state
[   20.103145] br-wifi: port 2(wlan1) entered forwarding state
[   47.940623] sfp sfp-2: module removed
[   50.935712] sfp sfp-1: module RAD Data Comm.   SFP-30H          rev 1.0  sn OP18060400248    dc 180604
[   76.847889] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/2500base-x link mode
[   76.926031] mtk_soc_eth 15100000.ethernet eth1: switched to inband/sgmii link mode
[   77.102876] mtk_soc_eth 15100000.ethernet eth1: PHY [i2c:sfp-1:16] driver [Marvell 88E1111] (irq=POLL)

Here another commands (ip a and ethtool for eth1) :

# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST> mtu 1504 qdisc noop state DOWN group default qlen 1000
    link/ether 9e:75:21:bc:e6:80 brd ff:ff:ff:ff:ff:ff
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 1e:89:47:d4:97:84 brd ff:ff:ff:ff:ff:ff
4: tunl0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/ipip 0.0.0.0 brd 0.0.0.0
5: wan@eth0: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 9e:75:21:bc:e6:80 brd ff:ff:ff:ff:ff:ff
6: lan0@eth0: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop master br-wire state DOWN group default qlen 1000
    link/ether 9e:75:21:bc:e6:80 brd ff:ff:ff:ff:ff:ff
7: lan1@eth0: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop master br-wire state DOWN group default qlen 1000
    link/ether 9e:75:21:bc:e6:80 brd ff:ff:ff:ff:ff:ff
8: lan2@eth0: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop master br-wire state DOWN group default qlen 1000
    link/ether 9e:75:21:bc:e6:80 brd ff:ff:ff:ff:ff:ff
9: lan3@eth0: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop master br-wire state DOWN group default qlen 1000
    link/ether 9e:75:21:bc:e6:80 brd ff:ff:ff:ff:ff:ff
10: lan4@eth0: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 9e:75:21:bc:e6:80 brd ff:ff:ff:ff:ff:ff
11: wwan0: <POINTOPOINT,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/none
12: br-wire: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 9e:75:21:bc:e6:80 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.1/24 scope global br-wire
       valid_lft forever preferred_lft forever
13: br-wifi: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:0c:43:26:60:00 brd ff:ff:ff:ff:ff:ff
    inet 10.0.1.1/24 scope global br-wifi
       valid_lft forever preferred_lft forever
14: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-wifi state UP group default qlen 1000
    link/ether 00:0c:43:26:60:00 brd ff:ff:ff:ff:ff:ff
15: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-wifi state UP group default qlen 1000
    link/ether 82:0c:43:26:60:00 brd ff:ff:ff:ff:ff:ff
# ethtool eth1
Settings for eth1:
        Supported ports: [ TP    MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
                                1000baseX/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
                                1000baseX/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Auto-negotiation: on
        Port: Twisted Pair
        PHYAD: 22
        Transceiver: external
        MDI-X: Unknown
        Current message level: 0x000000ff (255)
                               drv probe link timer ifdown ifup rx_err tx_err
        Link detected: no
#

Always this line with ethtool command :

Current message level: 0x000000ff (255)
                       drv probe link timer ifdown ifup rx_err tx_err

Ethtool -m eth1

Would be interesting too

Hy.

Here, the output of the command line ethtool -m eth1

# ethtool -m eth1
        Identifier                                : 0x03 (SFP)
        Extended identifier                       : 0x04 (GBIC/SFP defined by 2-                                                         wire interface ID)
        Connector                                 : 0x22 (RJ45)
        Transceiver codes                         : 0x00 0x00 0x00 0x08 0x00 0x0                                                         0 0x00 0x00 0x00
        Transceiver type                          : Ethernet: 1000BASE-T
        Encoding                                  : 0x01 (8B/10B)
        BR, Nominal                               : 1300MBd
        Rate identifier                           : 0x00 (unspecified)
        Length (SMF,km)                           : 0km
        Length (SMF)                              : 0m
        Length (50um)                             : 0m
        Length (62.5um)                           : 0m
        Length (Copper)                           : 100m
        Length (OM3)                              : 0m
        Laser wavelength                          : 0nm
        Vendor name                               : RAD Data Comm.
        Vendor OUI                                : 00:00:00
        Vendor PN                                 : SFP-30H
        Vendor rev                                : 1.0
        Option values                             : 0x00 0x00
        BR margin, max                            : 0%
        BR margin, min                            : 0%
        Vendor SN                                 : OP18060400248
        Date code                                 : 180604
#

Looks good for me and i see no cause that you should not can work with it…@dangowrt have you an idea?

@doudootiana which exact problem do you have? No traffic, biterrors,…? Do you work directly over this interface (ping the other side in same subnet)? How is your exact network-setup?

Please try without any bridges direct on interface and with unique subnet (not same as lanports and such strange things)

Hy. I have no traffic and can’t ping anything (same subnet or another).

I work directly over this interface, no bridge.

I have tried using DHCP and static ip address, same result

I meant this interface (eth1) have to be in its own subnet,not anywhere else on the device.

thought you were the user wants to have multiple ips from same subnet on different interfaces.

You could try using tcpdump locally remote to check if anything came to the remote and back.

Do you use vlans? Thst is currently not supported on gmac

This interfaces has his own subnet. I have also tried with only this interface up and configured (ip).

I didn’t tried with vlans yet.

Can i use another method that gmac for this interface?

Thats all i do:

  • insert sfp
  • connect cable (fiber in my case)
  • bring interface up
  • set ip
  • ping the other side/iperf3

So nothing special…and i wonder why it does not work for you…

root@bpi-r3:~# uname -a
Linux bpi-r3 6.1.0-rc6-bpi-r3-r3 #3 SMP Wed Dec  7 17:48:36 CET 2022 aarch64 GNU/Linux
root@bpi-r3:~# dmesg | grep -i 'eth\|sfp'
[    0.000000] psci: probing for conduit method from DT.
[    1.132266] sfp sfp-1: Host maximum power 1.0W
[    1.137249] sfp sfp-2: Host maximum power 1.0W
[    1.155960] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc00ab00000, irq 121
[    1.165154] mtk_soc_eth 15100000.ethernet: generated random MAC address 7e:16:f2:63:83:4e
[    1.173526] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc00ab00000, irq 121
[    1.473279] sfp sfp-2: module OEM              GLC-SX-MMD      rev \x90e   sn CSCGE1M14138     dc 220120  
[    1.521736] sfp sfp-1: module OEM              GLC-SX-MMD      rev \x90e   sn CSCGE1M14134     dc 220120  
[    1.535588] mtk_soc_eth 15100000.ethernet eth1: switched to inband/1000base-x link mode
[    2.296233] device eth0 entered promiscuous mode
[    7.580955] usbcore: registered new interface driver cdc_ether
root@bpi-r3:~# ethtool eth1
Settings for eth1:
        Supported ports: [ FIBRE ]
        Supported link modes:   1000baseX/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  1000baseX/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Speed: 10Mb/s
        Duplex: Half
        Auto-negotiation: on
        Port: FIBRE
        PHYAD: 0
        Transceiver: internal
        Current message level: 0x000000ff (255)
                               drv probe link timer ifdown ifup rx_err tx_err
        Link detected: no
root@bpi-r3:~# ethtool -m eth1
        Identifier                                : 0x03 (SFP)
        Extended identifier                       : 0x04 (GBIC/SFP defined by 2-wire interface ID)
        Connector                                 : 0x07 (LC)
        Transceiver codes                         : 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00
        Transceiver type                          : Ethernet: 1000BASE-SX
        Encoding                                  : 0x01 (8B/10B)
        BR, Nominal                               : 1300MBd
        Rate identifier                           : 0x00 (unspecified)
        Length (SMF,km)                           : 0km
        Length (SMF)                              : 0m
        Length (50um)                             : 550m
        Length (62.5um)                           : 270m
        Length (Copper)                           : 0m
        Length (OM3)                              : 0m
        Laser wavelength                          : 850nm
        Vendor name                               : OEM
        Vendor OUI                                : 00:90:65
        Vendor PN                                 : GLC-SX-MMD     _
        Vendor rev                                : _e
        Option values                             : 0x00 0x1a
        Option                                    : RX_LOS implemented
        Option                                    : TX_FAULT implemented
        Option                                    : TX_DISABLE implemented
        BR margin, max                            : 0%
        BR margin, min                            : 0%
        Vendor SN                                 : CSCGE1M14134
        Date code                                 : 220120
        Optical diagnostics support               : Yes
        Laser bias current                        : 0.000 mA
        Laser output power                        : 0.0000 mW / -inf dBm
        Receiver signal average optical power     : 0.3518 mW / -4.54 dBm
        Module temperature                        : 21.37 degrees C / 70.46 degrees F
        Module voltage                            : 3.3259 V
        Alarm/warning flags implemented           : Yes
        Laser bias current high alarm             : Off
        Laser bias current low alarm              : Off
        Laser bias current high warning           : Off
        Laser bias current low warning            : Off
        Laser output power high alarm             : Off
        Laser output power low alarm              : Off
        Laser output power high warning           : Off
        Laser output power low warning            : Off
        Module temperature high alarm             : Off
        Module temperature low alarm              : Off
        Module temperature high warning           : Off
        Module temperature low warning            : Off
        Module voltage high alarm                 : Off
        Module voltage low alarm                  : Off
        Module voltage high warning               : Off
        Module voltage low warning                : Off
        Laser rx power high alarm                 : Off
        Laser rx power low alarm                  : Off
        Laser rx power high warning               : Off
        Laser rx power low warning                : Off
        Laser bias current high alarm threshold   : 100.000 mA
        Laser bias current low alarm threshold    : 0.000 mA
        Laser bias current high warning threshold : 90.000 mA
        Laser bias current low warning threshold  : 0.100 mA
        Laser output power high alarm threshold   : 1.2589 mW / 1.00 dBm
        Laser output power low alarm threshold    : 0.0501 mW / -13.00 dBm
        Laser output power high warning threshold : 0.7943 mW / -1.00 dBm
        Laser output power low warning threshold  : 0.0631 mW / -12.00 dBm
        Module temperature high alarm threshold   : 90.00 degrees C / 194.00 degrees F
        Module temperature low alarm threshold    : -45.00 degrees C / -49.00 degrees F
        Module temperature high warning threshold : 85.00 degrees C / 185.00 degrees F
        Module temperature low warning threshold  : -40.00 degrees C / -40.00 degrees F
        Module voltage high alarm threshold       : 3.8000 V
        Module voltage low alarm threshold        : 2.7000 V
        Module voltage high warning threshold     : 3.7000 V
        Module voltage low warning threshold      : 2.8000 V
        Laser rx power high alarm threshold       : 0.7943 mW / -1.00 dBm
        Laser rx power low alarm threshold        : 0.0079 mW / -21.02 dBm
        Laser rx power high warning threshold     : 0.5012 mW / -3.00 dBm
        Laser rx power low warning threshold      : 0.0126 mW / -19.00 dBm
root@bpi-r3:~# 
root@bpi-r3:~# ip a s eth1
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 92:65:f3:ec:b0:19 brd ff:ff:ff:ff:ff:ff
root@bpi-r3:~# ip a a 192.168.0.19/24 dev eth1
root@bpi-r3:~# ip l set eth1 up                                                                                              
[  166.527966] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/1000base-x link mode
root@bpi-r3:~# [  166.593601] mtk_soc_eth 15100000.ethernet eth1: Link is Up - 1Gbps/Full - flow control rx/tx
[  166.602060] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

root@bpi-r3:~# ping 192.168.0.10
PING 192.168.0.10 (192.168.0.10) 56(84) bytes of data.
64 bytes from 192.168.0.10: icmp_seq=1 ttl=64 time=0.724 ms
64 bytes from 192.168.0.10: icmp_seq=2 ttl=64 time=0.395 ms
64 bytes from 192.168.0.10: icmp_seq=3 ttl=64 time=0.408 ms
64 bytes from 192.168.0.10: icmp_seq=4 ttl=64 time=0.382 ms
64 bytes from 192.168.0.10: icmp_seq=5 ttl=64 time=0.459 ms
^C
--- 192.168.0.10 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4151ms
rtt min/avg/max/mdev = 0.382/0.473/0.724/0.127 ms
1 Like

Hy @frank-w :slight_smile:

So i have check with tcpdump and no packet circulates.

I have watch thanks to ssh.

To do it :
-interface wan has ip address 192.168.1.70 -interface eth1 has ip address 192.168.3.50

I have a routeur which manages my subnets.

$ tcpdump -i eth1
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 262144 bytes

when i left tcpdump i have

[ 600.348351] device eth1 left promiscuous mode

and when i used tcpdump -i eth1 i have :

[ 604.469192] device eth1 entered promiscuous mode

Enter/left “promiscuous mode” is normal info from tcpdump as it puts interface into this mode to capture all packets arriving this not only the one targeting the interface (in case of damaged packets and such).

But if you do not see anything on r3 going out from r3 thats strange (and something is wrong with the sfp which is not get packets from r3 os or not passing them out)

In a first time, i thought it was my SFP. So i tested it in teh second sfp cage (lan). And it works with sfp lan.

maybe there is still a problem with the phylink-core…i thought we have it fixed so far (russels series is in next for 6.2 and “squashed” in my 6.1-r3).

i will wait teh 6.2 so ^^

Hy @frank-w :slight_smile:

I have one question.

I tried to use a sfp gpon ont : sercomm fgs 202.

[   54.876767] sfp sfp-1: please wait, module slow to respond
[   87.506765] sfp sfp-1: please wait, module slow to respond
[  120.146772] sfp sfp-1: please wait, module slow to respond
[  152.786764] sfp sfp-1: please wait, module slow to respond
[  185.426764] sfp sfp-1: please wait, module slow to respond
[  218.056763] sfp sfp-1: please wait, module slow to respond
[  250.696765] sfp sfp-1: please wait, module slow to respond
[  283.336769] sfp sfp-1: please wait, module slow to respond
[  315.966766] sfp sfp-1: please wait, module slow to respond
[  348.606764] sfp sfp-1: please wait, module slow to respond
[  381.246766] sfp sfp-1: please wait, module slow to respond
[  413.876762] sfp sfp-1: please wait, module slow to respond
[  446.516765] sfp sfp-1: please wait, module slow to respond

It works in another Routeur.

Do you think Bananapi r3 can be Comptible with this sfp?

to be honest i don’t know, maybe @dangowrt has an idea…i don’t think there is a hardware-problem why some sfp’s are not recognized…maybe i2c needs to be changed a bit (e.g. change speed or polarity).

i only have some same sfps here (H!fiber ASF85-24-X2-D) which are my first SFPs and they are recognized without problems.

edit: made a quick google-search and found this…maybe it helps:

https://www.spinics.net/lists/netdev/msg611737.html

this patch seems merged at least since 5.10

e117be74c559 2019-11-10 net: sfp: allow sfp to probe slow to initialise GPON modules

and i see some quirks for other modules…maybe yours need one too

similar to this:

73472c830eae 2022-09-13 net: sfp: add support for HALNy GPON SFP

or increase the timeout in upper patch

you could also try these steps: https://forum.openwrt.org/t/mikrotik-hex-s-checksum-failure-on-fiber-module-using-snapshot/131699 maybe it’s similar

in openwrt 21.2 there was a problem with sfps (maybe only on microtik-devices)…maybe this patch helps (if not already applied in mainline/openwrt-master): https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=target/linux/ramips/patches-5.10/710-at803x.patch;h=ec8f3ba55ffc7c1c3cf83c1c5960e6f3c40ffb91;hb=54ed38d5ea

else look for messages in dmesg (maybe there are more than you’ve posted) and try to read out the sfp with ethtool

Thank again to answer me.

I will begin by add a quirk, and if it doesn’t work go to see patches.