Hello,
AFAIK, nobody mentioned that the current snapshots for the ER-X-SFP make the device unusable because it hangs most of the time. I suspect that it might have something to do with the support of the MT7530, DSA and the SFP port. However, I am unable to prove where the problem stems from (given that the device hangs most of the time without displaying any issue as far as I can tell).
root@OpenWrt:~# dmesg
[ 0.000000] Linux version 5.4.105 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16178-1cd098784e)) #0 SMP Sat Mar 13 16:06:42 2021
[ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[ 0.000000] MIPS: machine is Ubiquiti EdgeRouter X SFP
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] VPE topology {2,2} total 4
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] On node 0 totalpages: 65536
[ 0.000000] Normal zone: 576 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 65536 pages, LIFO batch:15
[ 0.000000] percpu: Embedded 14 pages/cpu s26768 r8192 d22384 u57344
[ 0.000000] pcpu-alloc: s26768 r8192 d22384 u57344 alloc=14*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64960
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Writing ErrCtl register=00050900
[ 0.000000] Readback ErrCtl register=00050900
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 250280K/262144K available (6057K kernel code, 209K rwdata, 1292K rodata, 1260K init, 238K bss, 11864K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] NR_IRQS: 256
[ 0.000000] random: get_random_bytes called from start_kernel+0x31c/0x534 with crng_init=0
[ 0.000000] CPU Clock: 880MHz
[ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[ 0.000008] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[ 0.015493] Calibrating delay loop... 583.68 BogoMIPS (lpj=1167360)
[ 0.055830] pid_max: default: 32768 minimum: 301
[ 0.065185] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.079591] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.097679] rcu: Hierarchical SRCU implementation.
[ 0.107780] smp: Bringing up secondary CPUs ...
[ 2.695174] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 2.695184] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 2.695197] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 2.695297] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.144959] Synchronize counters for CPU 1: done.
[ 2.786230] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 2.786238] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 2.786245] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 2.786305] CPU2 revision is: 0001992f (MIPS 1004Kc)
[ 0.239403] Synchronize counters for CPU 2: done.
[ 2.877353] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 2.877360] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 2.877368] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 2.877429] CPU3 revision is: 0001992f (MIPS 1004Kc)
[ 0.327000] Synchronize counters for CPU 3: done.
[ 0.386611] smp: Brought up 1 node, 4 CPUs
[ 0.399047] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.418339] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.432175] pinctrl core: initialized pinctrl subsystem
[ 0.444115] NET: Registered protocol family 16
[ 0.464822] FPU Affinity set after 4688 emulations
[ 0.480905] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[ 0.484014] random: fast init done
[ 0.506869] clocksource: Switched to clocksource GIC
[ 0.518649] NET: Registered protocol family 2
[ 0.528156] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.544706] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.559879] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.574051] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.586785] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.599698] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.613812] NET: Registered protocol family 1
[ 0.622378] PCI: CLS 0 bytes, default 32
[ 0.718815] 4 CPUs re-calibrate udelay(lpj = 1163264)
[ 0.730337] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[ 0.754961] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.766449] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.787667] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.803887] GPIO line 487 (sfp_i2c_clk_gate) hogged as output/high
[ 0.816362] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 0.827670] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 0.838965] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 0.850864] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.867103] printk: console [ttyS0] disabled
[ 0.875541] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[ 0.893485] printk: console [ttyS0] enabled
[ 0.910034] printk: bootconsole [early0] disabled
[ 0.931242] mt7621-nand 1e003000.nand: Using programmed access timing: 31c07388
[ 0.946053] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xda
[ 0.958711] nand: Macronix MX30LF2G18AC
[ 0.966353] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 0.981436] mt7621-nand 1e003000.nand: ECC strength adjusted to 4 bits
[ 0.994471] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134
[ 1.009037] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134
[ 1.023599] Scanning device for bad blocks
[ 3.629345] 6 fixed-partitions partitions found on MTD device mt7621-nand
[ 3.642886] Creating 6 MTD partitions on "mt7621-nand":
[ 3.653305] 0x000000000000-0x000000080000 : "u-boot"
[ 3.664524] 0x000000080000-0x0000000e0000 : "u-boot-env"
[ 3.676543] 0x0000000e0000-0x000000140000 : "factory"
[ 3.687942] 0x000000140000-0x000000440000 : "kernel1"
[ 3.699518] 0x000000440000-0x000000740000 : "kernel2"
[ 3.710943] 0x000000740000-0x00000ff00000 : "ubi"
[ 3.724427] libphy: Fixed MDIO Bus: probed
[ 3.757270] libphy: mdio: probed
[ 3.763986] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[ 3.781202] mtk_soc_eth 1e100000.ethernet dsa: mediatek frame engine at 0xbe100000, irq 20
[ 3.799008] i2c-mt7621 1e000900.i2c: clock 100 kHz
[ 3.812264] NET: Registered protocol family 10
[ 3.822532] Segment Routing with IPv6
[ 3.829973] NET: Registered protocol family 17
[ 3.838913] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 3.864970] 8021q: 802.1Q VLAN Support v1.8
[ 3.875324] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[ 3.899908] libphy: dsa slave smi: probed
[ 3.908354] mt7530 mdio-bus:1f eth0 (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[ 3.926321] mt7530 mdio-bus:1f eth1 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[ 3.944288] mt7530 mdio-bus:1f eth2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[ 3.962217] mt7530 mdio-bus:1f eth3 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[ 3.980209] mt7530 mdio-bus:1f eth4 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[ 3.998173] mt7530 mdio-bus:1f eth5 (uninitialized): PHY [mdio-bus:07] driver [Atheros 8031 ethernet]
[ 4.017990] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[ 4.035658] DSA: tree 0 setup
[ 4.042876] UBI: auto-attach mtd5
[ 4.049507] ubi0: attaching mtd5
[ 4.056288] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control off
[ 6.580189] ubi0: scanning is finished
[ 6.606685] ubi0: attached mtd5 (name "ubi", size 247 MiB)
[ 6.617651] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 6.631346] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 6.644861] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 6.658724] ubi0: good PEBs: 1982, bad PEBs: 0, corrupted PEBs: 0
[ 6.670864] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[ 6.685245] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 189582723
[ 6.703264] ubi0: available PEBs: 0, total reserved PEBs: 1982, PEBs reserved for bad PEB handling: 40
[ 6.721819] ubi0: background thread "ubi_bgt0d" started, PID 479
[ 6.725943] block ubiblock0_0: created from ubi0:0(rootfs)
[ 6.744776] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[ 6.758648] hctosys: unable to open rtc device (rtc0)
[ 6.774421] VFS: Mounted root (squashfs filesystem) readonly on device 259:0.
[ 6.792995] Freeing unused kernel memory: 1260K
[ 6.802038] This architecture does not have kernel memory protection.
[ 6.814870] Run /sbin/init as init process
[ 7.293386] init: Console is alive
[ 7.300434] init: - watchdog -
[ 7.589740] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 7.684936] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 7.703180] init: - preinit -
[ 8.384139] mtk_soc_eth 1e100000.ethernet dsa: configuring for fixed/rgmii link mode
[ 8.400055] mtk_soc_eth 1e100000.ethernet dsa: Link is Up - 1Gbps/Full - flow control rx/tx
[ 8.416771] IPv6: ADDRCONF(NETDEV_CHANGE): dsa: link becomes ready
[ 8.555548] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.625818] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.666104] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.955448] device dsa entered promiscuous mode
[ 8.965051] mt7530 mdio-bus:1f eth1: configuring for phy/gmii link mode
[ 8.978623] 8021q: adding VLAN 0 to HW filter on device eth1
[ 13.095469] mt7530 mdio-bus:1f eth1: Link is Up - 1Gbps/Full - flow control rx/tx
[ 13.112452] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 13.264759] UBIFS (ubi0:1): default file-system created
[ 13.276847] UBIFS (ubi0:1): Mounting in unauthenticated mode
[ 13.288540] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 584
[ 13.378471] urandom_read: 6 callbacks suppressed
[ 13.378495] random: procd: uninitialized urandom read (4 bytes read)
[ 13.434417] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[ 13.450035] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 13.469790] UBIFS (ubi0:1): FS size: 242397184 bytes (231 MiB, 1909 LEBs), journal size 12189696 bytes (11 MiB, 96 LEBs)
[ 13.491438] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[ 13.504612] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID 2EFAF5C0-EAB3-4E39-9B09-8A2A8F7DB024, small LPT model
[ 13.530289] mount_root: overlay filesystem has not been fully initialized yet
[ 13.544956] mount_root: switching to ubifs overlay
[ 13.561210] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 13.638876] mt7530 mdio-bus:1f eth1: Link is Down
[ 13.648840] device dsa left promiscuous mode
[ 13.666694] procd: - early -
[ 13.672589] procd: - watchdog -
[ 14.222993] procd: - watchdog -
[ 14.229936] procd: - ubus -
[ 14.290634] procd: - init -
[ 14.788034] kmodloader: loading kernel modules from /etc/modules.d/*
[ 14.850081] i2c /dev entries driver
[ 14.859912] pca953x 0-0025: 0-0025 supply vcc not found, using dummy regulator
[ 14.874453] pca953x 0-0025: using no AI
[ 14.951226] pca953x 0-0025: interrupt support not compiled in
[ 14.968514] urngd: v1.0.2 started.
[ 15.021431] libphy: SFP I2C Bus: probed
[ 15.042926] sfp sfp_eth5: Host maximum power 1.0W
[ 15.078836] sfp sfp_eth5: No tx_disable pin: SFP modules will always be emitting.
[ 15.102712] xt_time: kernel timezone is -0000
[ 15.118549] random: crng init done
[ 15.126612] PPP generic driver version 2.4.2
[ 15.136619] NET: Registered protocol family 24
[ 15.173886] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 47.966732] mtk_soc_eth 1e100000.ethernet dsa: Link is Down
[ 47.988502] mtk_soc_eth 1e100000.ethernet dsa: configuring for fixed/rgmii link mode
[ 48.004441] mtk_soc_eth 1e100000.ethernet dsa: Link is Up - 1Gbps/Full - flow control rx/tx
[ 48.008452] device dsa entered promiscuous mode
[ 48.031087] mt7530 mdio-bus:1f eth1: configuring for phy/gmii link mode
[ 48.045084] 8021q: adding VLAN 0 to HW filter on device eth1
[ 48.059935] IPv6: ADDRCONF(NETDEV_CHANGE): dsa: link becomes ready
[ 48.073138] br-lan: port 1(eth1) entered blocking state
[ 48.083714] br-lan: port 1(eth1) entered disabled state
[ 48.095133] device eth1 entered promiscuous mode
[ 48.123939] mt7530 mdio-bus:1f eth2: configuring for phy/gmii link mode
[ 48.139972] 8021q: adding VLAN 0 to HW filter on device eth2
[ 48.156240] br-lan: port 2(eth2) entered blocking state
[ 48.166869] br-lan: port 2(eth2) entered disabled state
[ 48.178927] device eth2 entered promiscuous mode
[ 48.200548] mt7530 mdio-bus:1f eth3: configuring for phy/gmii link mode
[ 48.214771] 8021q: adding VLAN 0 to HW filter on device eth3
[ 48.230289] br-lan: port 3(eth3) entered blocking state
[ 48.240823] br-lan: port 3(eth3) entered disabled state
[ 48.253228] device eth3 entered promiscuous mode
[ 48.274366] mt7530 mdio-bus:1f eth4: configuring for phy/gmii link mode
[ 48.288348] 8021q: adding VLAN 0 to HW filter on device eth4
[ 48.304237] br-lan: port 4(eth4) entered blocking state
[ 48.314741] br-lan: port 4(eth4) entered disabled state
[ 48.327405] device eth4 entered promiscuous mode
[ 48.348146] mt7530 mdio-bus:1f eth5: configuring for phy/rgmii-rxid link mode
[ 48.363068] 8021q: adding VLAN 0 to HW filter on device eth5
[ 48.375477] at803x_config_aneg: fiber
[ 48.386300] br-lan: port 5(eth5) entered blocking state
[ 48.396806] br-lan: port 5(eth5) entered disabled state
[ 48.409673] device eth5 entered promiscuous mode
[ 48.442689] mt7530 mdio-bus:1f eth0: configuring for phy/gmii link mode
[ 48.456622] 8021q: adding VLAN 0 to HW filter on device eth0
[ 51.111340] mt7530 mdio-bus:1f eth1: Link is Up - 1Gbps/Full - flow control rx/tx
[ 51.126325] br-lan: port 1(eth1) entered blocking state
[ 51.136770] br-lan: port 1(eth1) entered forwarding state
[ 51.148488] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 52.551348] mt7530 mdio-bus:1f eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 52.566303] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
root@OpenWrt:~# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option packet_steering '1'
option ula_prefix 'fda0:2842:0efe::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth1 eth2 eth3 eth4 eth5'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option ifname 'eth0'
option proto 'dhcp'
config interface 'wan6'
option ifname 'eth0'
option proto 'dhcpv6'
Feel free to tell me what details I should show here. For the record, I tried the three last snapshots and while compiling my own (even the Target Profile "Ubiquiti EdgeRouter X SFP" available on buildroot).
Edit: I noticed that this behaviour disappeared when I remove the cable on eth0
. I do not know why, everything is back to normal and you can finally access your device through ssh
without having the device hanging and waiting to type commands. I am going to see what could cause that starting to see if the uci defaults
are the same from 19.07.