ER-X LAN port connection interruption

I‘m using Ubiquiti EdgeRouter X with LEDE Reboot 17.01.2 r3435-65eec8bd5f / LuCI lede-17.01 branch (git-17.152.82987-7f6fc16). The firmware is downloaded from lede download page.

The router's LAN ports are connected to a desktop and an access point(DAP-1665). Everything works fine but the connction between the router and the AP always got weird reset several times per day. The Desktop has no problem connecting with the router. I tried to replace the AP with other model(EX6100), problem remains.

I paste the kernel log, take a look at the end of the log, port 1 is linked to the AP. Any help is appreciated.

[    0.000000] Linux version 4.4.71 (buildbot@builds-02.infra.lede-project.org) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3104-41de9a2) ) #0 SMP Thu Jun 8 17:57:31 2017
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole     [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is UBNT-ERX
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    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] free_area_init_node: node 0, pgdat 804270e0, node_mem_map 81000000
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    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] PERCPU: Embedded 10 pages/cpu @8120c000 s8416 r8192 d24352 u40960
[    0.000000] pcpu-alloc: s8416 r8192 d24352 u40960 alloc=10*4096
[    0.000000] pcpu-alloc:     [0] 0     [0] 1     [0] 2     [0] 3 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Writing ErrCtl register=00001e83
[    0.000000] Readback ErrCtl register=00001e83
[    0.000000] Memory: 254772K/262144K available (3703K kernel code, 201K rwdata, 476K rodata, 216K init, 256K bss, 7372K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:256
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
[    0.010000] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.090000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.090000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.090000] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.180000] Synchronize counters for CPU 1: done.
[    0.190000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.190000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.190000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.190000] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.280000] Synchronize counters for CPU 2: done.
[    0.290000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.290000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.290000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.290000] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.380000] Synchronize counters for CPU 3: done.
[    0.390000] Brought up 4 CPUs
[    0.390000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.400000] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.410000] pinctrl core: initialized pinctrl subsystem
[    0.420000] NET: Registered protocol family 16
[    0.430000] Can't analyze schedule() prologue at 8000c07c
[    0.440000] FPU Affinity set after 11720 emulations
[    0.480000] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.490000] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.500000] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.520000] clocksource: Switched to clocksource GIC
[    0.540000] NET: Registered protocol family 2
[    0.550000] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.560000] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    0.570000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.580000] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.600000] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.610000] NET: Registered protocol family 1
[    0.620000] PCI: CLS 0 bytes, default 32
[    0.620000] Crashlog allocated RAM at address 0x3f00000
[    0.640000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.650000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.670000] io scheduler noop registered
[    0.680000] io scheduler deadline registered (default)
[    0.690000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.700000] console     [ttyS0] disabled
[    0.710000] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 33, base_baud = 3125000) is a 16550A
[    0.730000] console     [ttyS0] enabled
[    0.740000] bootconsole     [early0] disabled
[    0.760000] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    0.770000] Allocate 16 byte aligned buffer: 804b4270
[    0.780000] Enable NFI Clock
[    0.790000] # MTK NAND # : Use HW ECC
[    0.800000] Device found in MTK table, ID: 1da, EXT_ID: 909546
[    0.810000] Support this Device in MTK table! 1da 
[    0.820000] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xda
[    0.830000] nand: AMD/Spansion NAND 256MiB 3,3V 8-bit
[    0.840000] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128
[    0.860000]     [NAND]select ecc bit:12, sparesize :112 spare_per_sector=28
[    0.870000] Scanning device for bad blocks
[    1.570000] 6 ofpart partitions found on MTD device MT7621-NAND
[    1.580000] Creating 6 MTD partitions on "MT7621-NAND":
[    1.590000] 0x000000000000-0x000000080000 : "u-boot"
[    1.600000] 0x000000080000-0x0000000e0000 : "u-boot-env"
[    1.620000] 0x0000000e0000-0x000000140000 : "factory"
[    1.630000] 0x000000140000-0x000000440000 : "kernel1"
[    1.640000] 0x000000440000-0x000000740000 : "kernel2"
[    1.650000] 0x000000740000-0x00000ff00000 : "ubi"
[    1.660000]     [mtk_nand] probe successfully!
[    1.670000] Signature matched and data read!
[    1.680000] load_fact_bbt success 2047
[    1.690000] netif_napi_add() called with weight 128 on device eth%d
[    1.710000] libphy: mdio: probed
[    3.120000] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    3.130000] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 10
[    3.150000] mt7621_wdt 1e000100.wdt: Initialized
[    3.160000] NET: Registered protocol family 10
[    3.170000] NET: Registered protocol family 17
[    3.180000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    3.200000] 8021q: 802.1Q VLAN Support v1.8
[    3.210000] UBI: auto-attach mtd5
[    3.220000] ubi0: attaching mtd5
[    5.110000] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[    5.300000] mtk_soc_eth 1e100000.ethernet eth0: port 0 link up
[    5.670000] ubi0: scanning is finished
[    5.690000] ubi0: attached mtd5 (name "ubi", size 247 MiB)
[    5.700000] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    5.720000] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    5.730000] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    5.740000] ubi0: good PEBs: 1982, bad PEBs: 0, corrupted PEBs: 0
[    5.760000] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    5.770000] ubi0: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 185505709
[    5.790000] ubi0: available PEBs: 0, total reserved PEBs: 1982, PEBs reserved for bad PEB handling: 40
[    5.810000] ubi0: background thread "ubi_bgt0d" started, PID 324
[    5.820000] block ubiblock0_0: created from ubi0:0(rootfs)
[    5.830000] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    5.840000] hctosys: unable to open rtc device (rtc0)
[    5.860000] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    5.870000] Freeing unused kernel memory: 216K (8044a000 - 80480000)
[    6.550000] init: Console is alive
[    6.560000] init: - watchdog -
[    6.710000] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.770000] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.790000] init: - preinit -
[   10.220000] random: procd: uninitialized urandom read (4 bytes read, 31 bits of entropy available)
[   10.230000] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 381
[   10.310000] UBIFS (ubi0:1): recovery needed
[   10.500000] UBIFS (ubi0:1): recovery completed
[   10.510000] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   10.530000] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   10.550000] UBIFS (ubi0:1): FS size: 242651136 bytes (231 MiB, 1911 LEBs), journal size 12189696 bytes (11 MiB, 96 LEBs)
[   10.570000] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   10.580000] UBIFS (ubi0:1): media format: w4/r0 (latest is w4/r0), UUID DD0CB10A-7E8B-4336-AEDD-3093DF8FBB4D, small LPT model
[   10.620000] mount_root: switching to ubifs overlay
[   10.640000] urandom-seed: Seeding with /etc/urandom.seed
[   10.760000] procd: - early -
[   10.760000] procd: - watchdog -
[   11.430000] procd: - ubus -
[   11.520000] random: ubusd: uninitialized urandom read (4 bytes read, 36 bits of entropy available)
[   11.540000] random: ubusd: uninitialized urandom read (4 bytes read, 36 bits of entropy available)
[   11.560000] random: ubusd: uninitialized urandom read (4 bytes read, 36 bits of entropy available)
[   11.580000] random: ubusd: uninitialized urandom read (4 bytes read, 36 bits of entropy available)
[   11.590000] random: ubusd: uninitialized urandom read (4 bytes read, 36 bits of entropy available)
[   11.610000] random: ubusd: uninitialized urandom read (4 bytes read, 36 bits of entropy available)
[   11.630000] random: ubusd: uninitialized urandom read (4 bytes read, 36 bits of entropy available)
[   11.650000] random: ubusd: uninitialized urandom read (4 bytes read, 36 bits of entropy available)
[   11.670000] procd: - init -
[   12.160000] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.180000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.190000] Netfilter messages via NETLINK v0.30.
[   12.210000] ip_set: protocol 6
[   12.290000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.300000] nf_conntrack version 0.5.0 (3984 buckets, 15936 max)
[   12.450000] xt_time: kernel timezone is -0000
[   12.460000] PPP generic driver version 2.4.2
[   12.470000] NET: Registered protocol family 24
[   12.480000] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.870000] random: jshn: uninitialized urandom read (4 bytes read, 51 bits of entropy available)
[   17.530000] device eth0 entered promiscuous mode
[   17.540000] device eth0.2 entered promiscuous mode
[   17.550000] br-lan: port 1(eth0.2) entered forwarding state
[   17.560000] br-lan: port 1(eth0.2) entered forwarding state
[   19.560000] br-lan: port 1(eth0.2) entered forwarding state
[   21.130000] random: nonblocking pool is initialized
[   23.240000] pppoe-wan: renamed from ppp0
[  644.900000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[  677.110000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[  679.890000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[  696.710000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[  699.630000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[ 5167.400000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[ 5170.580000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[10900.840000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[10903.990000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[11534.350000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[11537.610000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[17100.930000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[17104.080000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[21710.690000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[21713.880000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[64872.560000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[64875.670000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[74598.410000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[74601.540000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[84509.580000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[84512.830000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[102181.720000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[102184.870000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[102462.460000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[102465.670000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[104999.990000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[105003.110000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[108700.830000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[108704.010000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[111015.900000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[111019.180000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[113331.690000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[113335.060000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[116103.520000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[116106.650000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[117043.630000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[117046.920000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[118083.750000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[118087.150000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up

I also have this problem using 2 different mt7621 based routers.

[   27.329916] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[  626.017913] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
[  628.684695] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[  839.965284] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
[  842.649565] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[  949.839890] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
[  953.794458] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[ 1202.788238] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
[ 1205.659311] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[ 2187.438936] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
[ 2190.013982] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[ 2652.439458] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
[ 2656.358777] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[ 3531.568240] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
[ 3534.243471] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[ 4026.492311] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
[ 4029.243292] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[ 4448.503593] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
[ 4452.498139] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[ 4792.623865] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
[ 4795.217966] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[ 5311.981310] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
[ 5314.682756] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[ 5500.913893] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
[ 5504.932630] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[ 5792.035963] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
[ 5794.592470] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up

Any ideas?

Same here on ER-X (17.01.2),but not on 17.01.1

Bug Report

I have this error too

Model: UniElec U7621-06 (256M RAM/16M flash)
Firmware Version: OpenWrt SNAPSHOT r5784-69a36cb / LuCI Master (git-18.012.77894-31f5c6a)
Kernel Version: 4.9.76

The link to the bug report posted above shows it is still an open issue.

same thing here DIR 860L

Currently tracking on https://bugs.openwrt.org/index.php?do=details&task_id=1449

Does any one know how to fix that issue ?