ubnt ER-X 无法驱动eth0网口
半年之前用lede编译的er-x固件都正常工作,今天用新源码重新编译了一下,更新后eth0网口无法驱动,网卡指示灯都不亮,看日志发现有一条错误是:mtk_soc_eth 1e100000.ethernet eth0: error -17 registering interface eth0
编译的内核版本是:5.4.224
相同问题
r23.2.14仍有问题,暂时把eth1当wan了
相同问题,用作lan wan都不行 [ 0.000000] Linux version 5.4.241 (zzz@zzz-Ubuntu) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r5911-702087ab3)) #0 SMP Sat Apr 22 15:54:32 2023 [ 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 [ 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 s26640 r8192 d22512 u57344 [ 0.000000] pcpu-alloc: s26640 r8192 d22512 u57344 alloc=144096 [ 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=00000000 [ 0.000000] Readback ErrCtl register=00000000 [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 250024K/262144K available (6211K kernel code, 271K rwdata, 1304K rodata, 1288K init, 235K bss, 12120K 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 10 jiffies. [ 0.000000] NR_IRQS: 256 [ 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.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns [ 0.015561] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688) [ 0.087872] pid_max: default: 32768 minimum: 301 [ 0.097203] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.111605] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.129876] rcu: Hierarchical SRCU implementation. [ 0.140106] smp: Bringing up secondary CPUs ... [ 6.776335] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes. [ 6.776344] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes [ 6.776356] MIPS secondary cache 256kB, 8-way, linesize 32 bytes. [ 6.776454] CPU1 revision is: 0001992f (MIPS 1004Kc) [ 0.209590] Synchronize counters for CPU 1: done. [ 6.899495] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes. [ 6.899504] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes [ 6.899513] MIPS secondary cache 256kB, 8-way, linesize 32 bytes. [ 6.899570] CPU2 revision is: 0001992f (MIPS 1004Kc) [ 0.330182] Synchronize counters for CPU 2: done. [ 7.017006] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes. [ 7.017014] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes [ 7.017023] MIPS secondary cache 256kB, 8-way, linesize 32 bytes. [ 7.017082] CPU3 revision is: 0001992f (MIPS 1004Kc) [ 0.449773] Synchronize counters for CPU 3: done. [ 0.509381] smp: Brought up 1 node, 4 CPUs [ 0.521926] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.541399] futex hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 0.555222] pinctrl core: initialized pinctrl subsystem [ 0.567400] NET: Registered protocol family 16 [ 0.587532] FPU Affinity set after 11720 emulations [ 0.605072] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512 [ 0.625949] clocksource: Switched to clocksource GIC [ 0.637514] NET: Registered protocol family 2 [ 0.646329] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.661304] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear) [ 0.677832] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear) [ 0.693012] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear) [ 0.707201] TCP: Hash tables configured (established 2048 bind 2048) [ 0.719922] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.732806] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.746929] NET: Registered protocol family 1 [ 0.755462] PCI: CLS 0 bytes, default 32 [ 0.995890] 4 CPUs re-calibrate udelay(lpj = 2924544) [ 1.007659] workingset: timestamp_bits=14 max_order=16 bucket_order=2 [ 1.032037] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 1.043519] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 1.066278] mt7621_gpio 1e000600.gpio: registering 32 gpios [ 1.077617] mt7621_gpio 1e000600.gpio: registering 32 gpios [ 1.088877] mt7621_gpio 1e000600.gpio: registering 32 gpios [ 1.100683] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled [ 1.114658] printk: console [ttyS0] disabled [ 1.123090] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A [ 1.141019] printk: console [ttyS0] enabled [ 1.157572] printk: bootconsole [early0] disabled [ 1.178462] mt7621-nand 1e003000.nand: Using programmed access timing: 31c07388 [ 1.193279] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xda [ 1.205930] nand: AMD/Spansion S34ML02G2 [ 1.213722] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128 [ 1.228962] mt7621-nand 1e003000.nand: ECC strength adjusted to 12 bits [ 1.242167] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134 [ 1.256723] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134 [ 1.271272] Scanning device for bad blocks [ 5.233720] 6 fixed-partitions partitions found on MTD device mt7621-nand [ 5.247234] Creating 6 MTD partitions on "mt7621-nand": [ 5.257638] 0x000000000000-0x000000080000 : "u-boot" [ 5.268950] 0x000000080000-0x0000000e0000 : "u-boot-env" [ 5.280797] 0x0000000e0000-0x000000140000 : "factory" [ 5.292274] 0x000000140000-0x000000440000 : "kernel1" [ 5.303592] 0x000000440000-0x000000740000 : "kernel2" [ 5.315138] 0x000000740000-0x00000ff00000 : "ubi" [ 5.330631] [mtk_hw_init] reset_lock:0, force:0 [ 5.339689] [mtk_hw_init] execute fe cold reset [ 5.360381] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module [ 5.374366] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 21 [ 5.391024] (unnamed net_device) (dummy): netif_napi_add() called with weight 256 [ 5.410509] NET: Registered protocol family 10 [ 5.420917] Segment Routing with IPv6 [ 5.428378] NET: Registered protocol family 17 [ 5.437381] Bridge firewalling registered [ 5.445821] 8021q: 802.1Q VLAN Support v1.8 [ 5.457930] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module [ 5.484901] mt7530 mdio-bus:1f eth0 (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY] [ 5.501433] mtk_soc_eth 1e100000.ethernet eth0: error -17 registering interface eth0 [ 5.517519] mt7530 mdio-bus:1f eth1 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY] [ 5.535557] mt7530 mdio-bus:1f eth2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY] [ 5.553547] mt7530 mdio-bus:1f eth3 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY] [ 5.571540] mt7530 mdio-bus:1f eth4 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY] [ 5.589531] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode [ 5.607071] DSA: tree 0 setup [ 5.613403] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx [ 5.614521] UBI: auto-attach mtd5 [ 5.634087] ubi0: attaching mtd5 [ 8.198557] ubi0: scanning is finished [ 8.224996] ubi0: attached mtd5 (name "ubi", size 247 MiB) [ 8.235952] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes [ 8.249630] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 [ 8.263134] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [ 8.276996] ubi0: good PEBs: 1982, bad PEBs: 0, corrupted PEBs: 0 [ 8.289118] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128 [ 8.303487] ubi0: max/mean erase counter: 8/4, WL threshold: 4096, image sequence number: 625089681 [ 8.321489] ubi0: available PEBs: 0, total reserved PEBs: 1982, PEBs reserved for bad PEB handling: 40 [ 8.340033] ubi0: background thread "ubi_bgt0d" started, PID 461 [ 8.343287] block ubiblock0_0: created from ubi0:0(rootfs) [ 8.362947] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem [ 8.376817] hctosys: unable to open rtc device (rtc0) [ 8.396237] VFS: Mounted root (squashfs filesystem) readonly on device 259:0. [ 8.415021] Freeing unused kernel memory: 1288K [ 8.424064] This architecture does not have kernel memory protection. [ 8.436887] Run /sbin/init as init process [ 9.548250] init: Console is alive [ 9.555363] init: - watchdog - [ 11.060901] kmodloader: loading kernel modules from /etc/modules-boot.d/ [ 11.314389] kmodloader: done loading kernel modules from /etc/modules-boot.d/* [ 11.336346] init: - preinit - [ 13.943938] random: jshn: uninitialized urandom read (4 bytes read) [ 14.026036] random: jshn: uninitialized urandom read (4 bytes read) [ 14.072146] random: jshn: uninitialized urandom read (4 bytes read) [ 17.819906] mount_root: loading kmods from internal overlay [ 17.862738] kmodloader: loading kernel modules from //etc/modules-boot.d/* [ 17.878147] kmodloader: done loading kernel modules from //etc/modules-boot.d/* [ 18.015393] block: attempting to load /etc/config/fstab [ 18.031574] block: unable to load configuration (fstab: Entry not found) [ 18.045150] block: no usable configuration [ 18.056711] UBIFS (ubi0:1): Mounting in unauthenticated mode [ 18.068454] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 562 [ 18.165499] UBIFS (ubi0:1): recovery needed [ 18.519984] UBIFS (ubi0:1): recovery completed [ 18.529063] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data" [ 18.544681] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes [ 18.564448] UBIFS (ubi0:1): FS size: 235032576 bytes (224 MiB, 1851 LEBs), journal size 11808768 bytes (11 MiB, 93 LEBs) [ 18.586134] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB) [ 18.599340] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID 72F8A67F-9849-4B7A-BB8F-28BECEE615D0, small LPT model [ 18.641331] random: procd: uninitialized urandom read (4 bytes read) [ 18.668079] block: attempting to load /etc/config/fstab [ 18.678749] block: unable to load configuration (fstab: Entry not found) [ 18.692260] block: no usable configuration [ 18.701590] mount_root: overlay filesystem has not been fully initialized yet [ 18.716660] mount_root: switching to ubifs overlay [ 18.751000] urandom-seed: Seed file not found (/etc/urandom.seed) [ 18.963320] procd: - early - [ 18.969374] procd: - watchdog - [ 19.536124] procd: - watchdog - [ 19.544366] procd: - ubus - [ 19.712465] random: ubusd: uninitialized urandom read (4 bytes read) [ 19.727373] random: ubusd: uninitialized urandom read (4 bytes read) [ 19.740592] random: ubusd: uninitialized urandom read (4 bytes read) [ 19.758407] procd: - init - [ 20.654458] kmodloader: loading kernel modules from /etc/modules.d/* [ 20.686637] NET: Registered protocol family 38 [ 20.706333] tun: Universal TUN/TAP device driver, 1.6 [ 20.723035] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 20.827611] cryptodev: driver 1.12 loaded. [ 20.843233] mediatek_soc_hnat 1e100000.hnat: wan = wan [ 20.853596] mediatek_soc_hnat 1e100000.hnat: lan = lan [ 20.863910] mediatek_soc_hnat 1e100000.hnat: ppd = lan [ 20.874183] mediatek_soc_hnat 1e100000.hnat: gmac num = 1 [ 20.884978] mediatek_soc_hnat 1e100000.hnat: wan dsa port = 4 [ 20.896510] mediatek_soc_hnat 1e100000.hnat: ppe num = 1 [ 20.907676] mediatek_soc_hnat 1e100000.hnat: ext devices = ra0 [ 20.919359] mediatek_soc_hnat 1e100000.hnat: ext devices = rai0 [ 20.931191] mediatek_soc_hnat 1e100000.hnat: ext devices = rax0 [ 20.943045] mediatek_soc_hnat 1e100000.hnat: ext devices = apcli0 [ 20.955251] mediatek_soc_hnat 1e100000.hnat: ext devices = apclii0 [ 20.962354] urngd: v1.0.2 started. [ 20.967621] mediatek_soc_hnat 1e100000.hnat: ext devices = apclix0 [ 20.991623] mediatek_soc_hnat 1e100000.hnat: PPE0 entry number = 16384 [ 21.019223] mediatek_soc_hnat 1e100000.hnat: PPE0 hwnat start [ 21.030801] hnat roaming work enable [ 21.040997] GACT probability on [ 21.049132] Mirror/redirect action on [ 21.068311] u32 classifier [ 21.073702] input device check on [ 21.081056] Actions configured [ 21.108031] Loading modules backported from Linux version v5.15.33-0-g06f50ca83ace [ 21.123119] Backport generated by backports.git v5.15.33-1-0-g183c4ab2 [ 21.145752] mtk-eip93 1e004000.crypto: EIP93 Crypto Engine Initialized. [ 21.175567] random: crng init done [ 21.182445] random: 30 urandom warning(s) missed due to ratelimiting [ 21.287899] xt_time: kernel timezone is -0000 [ 21.321536] PPP generic driver version 2.4.2 [ 21.332015] PPP MPPE Compression module registered [ 21.343095] NET: Registered protocol family 24 [ 21.360337] batman_adv: B.A.T.M.A.N. advanced 2022.3-openwrt-1 (compatibility version 15) loaded [ 21.382065] kmodloader: done loading kernel modules from /etc/modules.d/* [ 35.987196] mtk_soc_eth 1e100000.ethernet eth0: TX vlan offload cannot be enabled when dsa is attached. [ 36.008112] mtk_soc_eth 1e100000.ethernet eth0: TX vlan offload cannot be enabled when dsa is attached. [ 56.005659] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode [ 56.021994] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 56.025750] mt7530 mdio-bus:1f eth1: configuring for phy/gmii link mode [ 56.052615] 8021q: adding VLAN 0 to HW filter on device eth1 [ 56.066925] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 56.081233] br-lan: port 1(eth1) entered blocking state [ 56.091740] br-lan: port 1(eth1) entered disabled state [ 56.103611] device eth1 entered promiscuous mode [ 56.112882] device eth0 entered promiscuous mode [ 56.160092] mt7530 mdio-bus:1f eth2: configuring for phy/gmii link mode [ 56.174481] 8021q: adding VLAN 0 to HW filter on device eth2 [ 56.189379] br-lan: port 2(eth2) entered blocking state [ 56.199925] br-lan: port 2(eth2) entered disabled state [ 56.212393] device eth2 entered promiscuous mode [ 56.236712] mt7530 mdio-bus:1f eth3: configuring for phy/gmii link mode [ 56.250513] 8021q: adding VLAN 0 to HW filter on device eth3 [ 56.265527] br-lan: port 3(eth3) entered blocking state [ 56.276097] br-lan: port 3(eth3) entered disabled state [ 56.288627] device eth3 entered promiscuous mode [ 56.311406] mt7530 mdio-bus:1f eth4: configuring for phy/gmii link mode [ 56.325221] 8021q: adding VLAN 0 to HW filter on device eth4 [ 56.339964] br-lan: port 4(eth4) entered blocking state [ 56.350483] br-lan: port 4(eth4) entered disabled state [ 56.362429] device eth4 entered promiscuous mode [ 59.396530] mt7530 mdio-bus:1f eth3: Link is Up - 1Gbps/Full - flow control rx/tx [ 59.411592] br-lan: port 3(eth3) entered blocking state [ 59.422083] br-lan: port 3(eth3) entered forwarding state [ 59.434903] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready [ 60.436341] mt7530 mdio-bus:1f eth3: Link is Down [ 60.450152] br-lan: port 3(eth3) entered disabled state [ 63.556447] mt7530 mdio-bus:1f eth3: Link is Up - 1Gbps/Full - flow control rx/tx [ 63.571539] br-lan: port 3(eth3) entered blocking state [ 63.582042] br-lan: port 3(eth3) entered forwarding state [ 64.596300] mt7530 mdio-bus:1f eth3: Link is Down [ 64.605890] br-lan: port 3(eth3) entered disabled state [ 67.716371] mt7530 mdio-bus:1f eth3: Link is Up - 1Gbps/Full - flow control rx/tx [ 67.731334] br-lan: port 3(eth3) entered blocking state [ 67.741751] br-lan: port 3(eth3) entered forwarding state [ 102.836614] mt7530 mdio-bus:1f eth1: Link is Up - 100Mbps/Full - flow control rx/tx [ 102.852108] br-lan: port 1(eth1) entered blocking state [ 102.862651] br-lan: port 1(eth1) entered forwarding state [ 104.916805] mt7530 mdio-bus:1f eth1: Link is Down [ 104.926754] br-lan: port 1(eth1) entered disabled state [ 126.756524] mt7530 mdio-bus:1f eth1: Link is Up - 100Mbps/Full - flow control rx/tx [ 126.771869] br-lan: port 1(eth1) entered blocking state [ 126.782301] br-lan: port 1(eth1) entered forwarding state [ 1096.116427] mt7530 mdio-bus:1f eth1: Link is Down [ 1096.126455] br-lan: port 1(eth1) entered disabled state [ 1099.236563] mt7530 mdio-bus:1f eth1: Link is Up - 1Gbps/Full - flow control rx/tx [ 1099.251531] br-lan: port 1(eth1) entered blocking state [ 1099.261952] br-lan: port 1(eth1) entered forwarding state [ 1143.956327] mt7530 mdio-bus:1f eth1: Link is Down [ 1143.965814] br-lan: port 1(eth1) entered disabled state [ 1168.916567] mt7530 mdio-bus:1f eth1: Link is Up - 100Mbps/Full - flow control rx/tx [ 1168.931880] br-lan: port 1(eth1) entered blocking state [ 1168.942300] br-lan: port 1(eth1) entered forwarding state
都散了吧,ubnt-x应该是不会修复了的,我已经刷回了原版系统丢抽屉当备用交换机了。
有人解决了吗?