Wireless section missing on x5000r in 21.02

Managed to do the same, but it had no effect on my router.
My issue is that the wireless card does not get detected at boot, as per the logs.
The issue regarding manual config for wireless in order to use 5ghz network i managed to overcome easily.
Looks lihe this tries to write also the mac addresses to mtd2, but again, out of my scope. https://github.com/dangowrt/linksys-e8450-openwrt-installer/commit/6674ead605dfbd10570c5b0333ab9eb6ca51c267
working router:


root@OpenWrt:~# lspci
00:00.0 PCI bridge: Device 0e8d:0801 (rev 01)
00:01.0 PCI bridge: Device 0e8d:0801 (rev 01)
01:00.0 Unclassified device [0002]: MEDIATEK Corp. Device 7916
02:00.0 Unclassified device [0002]: MEDIATEK Corp. MT7915E 802.11ax PCI Express Wireless Network Adapter

non working router:

root@OpenWrt:~# lspci
00:00.0 PCI bridge: Device 0e8d:0801 (rev 01)
01:00.0 Unclassified device [0002]: MEDIATEK Corp. MT7915E 802.11ax PCI Express Wireless Network Adapter

I have them both connected on my network and now they are both on opewrt, but I am missing wifi coverage in some areas of the home.

Are you running 21.02.1 or a snapshot?

Can you post the entire output of dmesg after a reboot for each router?

Have a look @ post number 2.
In the meantime i moved to 21.02.1 but the errors are the same.
About the dmesg, up until the section i posted everything was the same. If need be, i'll post it all on pastebin.

Can you try a recent snapshot? I've had some problems with LuCI 21.02.1

Did rewriting the factory partition get rid of the mt7915e: probe of 0000:01:00.0 failed with error -22 message at boot?

Are both phy being detected for the wireless device? This command should show both.

root@OpenWrt:/sys/devices# find /sys -name macaddress
/sys/devices/platform/1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0/ieee80211/phy0/macaddress
/sys/devices/platform/1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0/ieee80211/phy1/macaddress

The device that's not being found on your second device is an mt7916, which is a "mt7915e_hif". I'm not exactly sure what that's for.

The full dmesg has more hardware info that may help.

I did try before a snapshot but the result was the same.
Now i am on 21.02.1 with modified mtd2 partition.
I still get the error -22.
the wired thing is I do not have any result while running find command. So no phy on the non working router.
On the working router I get both of them, of course.

Both radios are detected and working fine on
OpenWrt SNAPSHOT r18270-fc4398fe71 / LuCI Master git-21.336.35676-ff4f529

root@OpenWrt:~# /sys/devices | find /sys -name macaddress

/sys/devices/platform/1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0/ieee80211/phy1/macaddress
/sys/devices/platform/1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0/ieee80211/phy0/macaddress

Hello @woffko
Did you have the issue i am facing before this?
I am asking because, as you can see, i have 2 totolink x5000r. One is working, one is not. :confused:

Hi, looks similar. Bought this one on aliexpress and got surprised by missing 5GHz radio, when uploaded firmware found at https://openwrt.org/toh/totolink/x5000r
https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/openwrt-21.02.1-ramips-mt7621-totolink_x5000r-squashfs-sysupgrade.bin

dmesg (working version)


BusyBox v1.34.1 (2021-12-03 09:56:49 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r18270-fc4398fe71
 -----------------------------------------------------
root@OpenWrt:~# dmesg
[    0.000000] Linux version 5.4.162 (builder@buildhost) (gcc version 11.2.0 (Op                                                  enWrt GCC 11.2.0 r18270-fc4398fe71)) #0 SMP Fri Dec 3 09:56:49 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 TOTOLINK X5000R
[    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 byt                                                  es
[    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 s26512 r8192 d22640 u57344
[    0.000000] pcpu-alloc: s26512 r8192 d22640 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,115200n8 rootfstype=squashfs,j                                                  ffs2
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, l                                                  inear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, lin                                                  ear)
[    0.000000] Writing ErrCtl register=00010420
[    0.000000] Readback ErrCtl register=00010420
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 249960K/262144K available (6397K kernel code, 208K rwdata                                                  , 1292K rodata, 1240K init, 238K bss, 12184K reserved, 0K cma-reserved, 0K highm                                                  em)
[    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 jif                                                  fies.
[    0.000000] NR_IRQS: 256
[    0.000000] random: get_random_bytes called from start_kernel+0x368/0x580 wit                                                  h crng_init=0
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478ab                                                  b4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_i                                                  dle_ns: 4343773742 ns
[    0.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 48806                                                  45118ns
[    0.007812] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.073972] pid_max: default: 32768 minimum: 301
[    0.078760] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linea                                                  r)
[    0.085961] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes,                                                   linear)
[    0.096396] rcu: Hierarchical SRCU implementation.
[    0.101727] smp: Bringing up secondary CPUs ...
[    0.107894] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.107904] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt                                                  es
[    0.107916] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.108013] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.166509] Synchronize counters for CPU 1: done.
[    0.207505] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.207514] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt                                                  es
[    0.207522] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.207571] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.257263] Synchronize counters for CPU 2: done.
[    0.288589] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.288598] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt                                                  es
[    0.288604] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.288658] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.342449] Synchronize counters for CPU 3: done.
[    0.372313] smp: Brought up 1 node, 4 CPUs
[    0.380420] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma                                                  x_idle_ns: 19112604462750000 ns
[    0.390209] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.397211] pinctrl core: initialized pinctrl subsystem
[    0.403937] NET: Registered protocol family 16
[    0.418871] FPU Affinity set after 11720 emulations
[    0.434863] workqueue: max_active 576 requested for napi_workq is out of rang                                                  e, clamping between 1 and 512
[    0.446059] clocksource: Switched to clocksource GIC
[    0.452370] thermal_sys: Registered thermal governor 'step_wise'
[    0.452857] NET: Registered protocol family 2
[    0.463284] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear                                                  )
[    0.471285] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144                                                   bytes, linear)
[    0.479765] TCP established hash table entries: 2048 (order: 1, 8192 bytes, l                                                  inear)
[    0.487400] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.494460] TCP: Hash tables configured (established 2048 bind 2048)
[    0.500943] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.507425] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.514582] NET: Registered protocol family 1
[    0.518906] PCI: CLS 0 bytes, default 32
[    0.755999] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    0.762561] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.769824] random: fast init done
[    0.783862] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.789658] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORIT                                                  Y) (c) 2001-2006 Red Hat, Inc.
[    0.801128] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2                                                  51)
[    0.810511] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.816423] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.822143] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.828518] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.838421] printk: console [ttyS0] disabled
[    0.842678] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud                                                   = 3125000) is a 16550A
[    0.851683] printk: console [ttyS0] enabled
[    0.859946] printk: bootconsole [early0] disabled
[    0.872049] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[    0.878279] spi-nor spi0.0: en25qh128 (16384 Kbytes)
[    0.883278] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.889645] Creating 4 MTD partitions on "spi0.0":
[    0.894422] 0x000000000000-0x000000030000 : "u-boot"
[    0.900776] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.907354] 0x000000040000-0x000000050000 : "factory"
[    0.913584] 0x000000050000-0x000001000000 : "firmware"
[    0.920179] 2 uimage-fw partitions found on MTD device firmware
[    0.926134] Creating 2 MTD partitions on "firmware":
[    0.931093] 0x000000000000-0x0000002818b1 : "kernel"
[    0.937267] 0x0000002818b1-0x000000fb0000 : "rootfs"
[    0.943419] mtd: device 5 (rootfs) set to be root filesystem
[    0.949191] 1 squashfs-split partitions found on MTD device rootfs
[    0.955351] 0x0000005b0000-0x000000fb0000 : "rootfs_data"
[    0.962956] libphy: Fixed MDIO Bus: probed
[    1.006528] libphy: mdio: probed
[    1.009939] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.019590] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe                                                  100000, irq 21
[    1.028570] i2c /dev entries driver
[    1.033440] mt7621-pci 1e140000.pcie: Parsing DT failed
[    1.041279] NET: Registered protocol family 10
[    1.047186] Segment Routing with IPv6
[    1.050929] NET: Registered protocol family 17
[    1.055402] bridge: filtering via arp/ip/ip6tables is no longer available by                                                   default. Update your scripts to load br_netfilter if you need this.
[    1.068625] 8021q: 802.1Q VLAN Support v1.8
[    1.076305] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.093863] libphy: dsa slave smi: probed
[    1.098325] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [dsa-0.0:00] driver                                                   [Generic PHY]
[    1.108034] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [dsa-0.0:01] driver                                                   [Generic PHY]
[    1.117717] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [dsa-0.0:02] driver                                                   [Generic PHY]
[    1.127431] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [dsa-0.0:03] driver                                                   [Generic PHY]
[    1.137184] mt7530 mdio-bus:1f wan (uninitialized): PHY [dsa-0.0:04] driver [                                                  Generic PHY]
[    1.146823] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    1.158029] DSA: tree 0 setup
[    1.161301] rt2880-pinmux pinctrl: pcie is already enabled
[    1.166944] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port =                                                   1)
[    1.174489] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port =                                                   0)
[    1.181941] mt7621-pci 1e140000.pcie: failed to parse bus ranges property: -2                                                  2
[    1.289133] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    1.294695] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    1.400225] mt7621-pci 1e140000.pcie: pcie2 no card, disable it (RST & CLK)
[    1.407178] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    1.412031] mt7621-pci 1e140000.pcie: PCIE1 enabled
[    1.416914] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000,                                                   mask/settings: 0xf0000002
[    1.426364] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    1.432698] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    1.439572] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.446440] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.451934] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    1.457967] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.464209] pci 0000:00:00.0: reg 0x14: [mem 0x60600000-0x6060ffff]
[    1.470533] pci 0000:00:00.0: supports D1
[    1.474524] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.480608] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    1.486646] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.492887] pci 0000:00:01.0: reg 0x14: [mem 0x60610000-0x6061ffff]
[    1.499205] pci 0000:00:01.0: supports D1
[    1.503196] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.510251] pci 0000:01:00.0: [14c3:7916] type 00 class 0x000280
[    1.516332] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref                                                  ]
[    1.523535] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x00003fff 64bit pref                                                  ]
[    1.530764] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x00000fff 64bit pref                                                  ]
[    1.538097] pci 0000:01:00.0: supports D1 D2
[    1.542348] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    1.548985] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by                                                   2.5 GT/s x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[    1.563898] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    1.569137] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    1.575202] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    1.581984] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x602fffff pref                                                  ]
[    1.589200] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.595994] pci 0000:02:00.0: [14c3:7915] type 00 class 0x000280
[    1.602072] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref                                                  ]
[    1.609299] pci 0000:02:00.0: reg 0x18: [mem 0x00000000-0x00003fff 64bit pref                                                  ]
[    1.616524] pci 0000:02:00.0: reg 0x20: [mem 0x00000000-0x00000fff 64bit pref                                                  ]
[    1.623829] pci 0000:02:00.0: supports D1 D2
[    1.628102] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    1.634717] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by                                                   2.5 GT/s x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[    1.649638] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    1.654847] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    1.660954] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff]
[    1.667734] pci 0000:00:01.0:   bridge window [mem 0x60400000-0x605fffff pref                                                  ]
[    1.674926] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.681577] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    1.688183] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    1.695114] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    1.701720] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    1.708675] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    1.715433] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x602fffff pref                                                  ]
[    1.722648] pci 0000:00:01.0: BAR 8: assigned [mem 0x60300000-0x603fffff]
[    1.729430] pci 0000:00:01.0: BAR 9: assigned [mem 0x60400000-0x605fffff pref                                                  ]
[    1.736646] pci 0000:00:00.0: BAR 1: assigned [mem 0x60600000-0x6060ffff]
[    1.743408] pci 0000:00:01.0: BAR 1: assigned [mem 0x60610000-0x6061ffff]
[    1.750189] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    1.756973] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    1.763738] pci 0000:01:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bi                                                  t pref]
[    1.771485] pci 0000:01:00.0: BAR 2: assigned [mem 0x60200000-0x60203fff 64bi                                                  t pref]
[    1.779232] pci 0000:01:00.0: BAR 4: assigned [mem 0x60204000-0x60204fff 64bi                                                  t pref]
[    1.786978] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.791920] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    1.798701] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    1.805459] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x602fffff pref                                                  ]
[    1.812676] pci 0000:02:00.0: BAR 0: assigned [mem 0x60400000-0x604fffff 64bi                                                  t pref]
[    1.820424] pci 0000:02:00.0: BAR 2: assigned [mem 0x60500000-0x60503fff 64bi                                                  t pref]
[    1.828168] pci 0000:02:00.0: BAR 4: assigned [mem 0x60504000-0x60504fff 64bi                                                  t pref]
[    1.835885] pci 0000:00:01.0: PCI bridge to [bus 02]
[    1.840850] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    1.847629] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff]
[    1.854386] pci 0000:00:01.0:   bridge window [mem 0x60400000-0x605fffff pref                                                  ]
[    1.862245] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control off
[    1.862536] hctosys: unable to open rtc device (rtc0)
[    1.878708] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    1.890017] Freeing unused kernel memory: 1240K
[    1.894541] This architecture does not have kernel memory protection.
[    1.900979] Run /sbin/init as init process
[    2.434308] init: Console is alive
[    2.438190] init: - watchdog -
[    3.126430] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.217475] kmodloader: done loading kernel modules from /etc/modules-boot.d/                                                  *
[    3.236427] init: - preinit -
[    4.006283] random: jshn: uninitialized urandom read (4 bytes read)
[    4.079055] random: jshn: uninitialized urandom read (4 bytes read)
[    4.118219] random: jshn: uninitialized urandom read (4 bytes read)
[    4.361300] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii l                                                  ink mode
[    4.369943] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flo                                                  w control rx/tx
[    4.376380] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    4.385290] 8021q: adding VLAN 0 to HW filter on device lan1
[    4.393677] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.636872] jffs2: notice: (588) jffs2_build_xattr_subsystem: complete buildi                                                  ng xattr subsystem, 29 of xdatum (23 unchecked, 6 orphan) and 43 of xref (4 dead                                                  , 2 orphan) found.
[    8.656313] mount_root: switching to jffs2 overlay
[    8.665658] overlayfs: upper fs does not support tmpfile.
[    8.677699] urandom-seed: Seeding with /etc/urandom.seed
[    8.827695] procd: - early -
[    8.830806] procd: - watchdog -
[    9.436302] procd: - watchdog -
[    9.440801] procd: - ubus -
[    9.501744] procd: - init -
[   10.028158] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.131012] Loading modules backported from Linux version v5.15-rc6-0-g519d81                                                  956ee2
[   10.138674] Backport generated by backports.git v5.15-rc6-1-0-gd44432d6
[   10.165449] xt_time: kernel timezone is -0000
[   10.233860] mt7621-pci 1e140000.pcie: bus=1 slot=0 irq=22
[   10.239400] pci 0000:00:00.0: enabling device (0006 -> 0007)
[   10.245052] mt7915e_hif 0000:01:00.0: enabling device (0000 -> 0002)
[   10.252028] mt7621-pci 1e140000.pcie: bus=2 slot=1 irq=23
[   10.257484] pci 0000:00:01.0: enabling device (0006 -> 0007)
[   10.263135] mt7915e 0000:02:00.0: enabling device (0000 -> 0002)
[   10.308793] urngd: v1.0.2 started.
[   10.396752] mt7915e 0000:02:00.0: HW/SW Version: 0x8a108a10, Build Time: 2020                                                  1105222230a
[   10.396752]
[   10.493554] random: crng init done
[   10.497003] random: 7 urandom warning(s) missed due to ratelimiting
[   10.714395] mt7915e 0000:02:00.0: WM Firmware Version: ____000000, Build Time                                                  : 20201105222304
[   10.747850] mt7915e 0000:02:00.0: WA Firmware Version: DEV_000000, Build Time                                                  : 20201105222323
[   10.890832] PPP generic driver version 2.4.2
[   10.896981] NET: Registered protocol family 24
[   10.915739] kmodloader: done loading kernel modules from /etc/modules.d/*
[   17.772809] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[   17.788849] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii l                                                  ink mode
[   17.797067] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flo                                                  w control rx/tx
[   17.801223] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   17.812760] 8021q: adding VLAN 0 to HW filter on device lan1
[   17.821340] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   17.828359] br-lan: port 1(lan1) entered blocking state
[   17.833635] br-lan: port 1(lan1) entered disabled state
[   17.839941] device lan1 entered promiscuous mode
[   17.844570] device eth0 entered promiscuous mode
[   17.876423] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[   17.883573] 8021q: adding VLAN 0 to HW filter on device lan2
[   17.892902] br-lan: port 2(lan2) entered blocking state
[   17.898222] br-lan: port 2(lan2) entered disabled state
[   17.904572] device lan2 entered promiscuous mode
[   17.924464] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[   17.931750] 8021q: adding VLAN 0 to HW filter on device lan3
[   17.941143] br-lan: port 3(lan3) entered blocking state
[   17.946461] br-lan: port 3(lan3) entered disabled state
[   17.953018] device lan3 entered promiscuous mode
[   17.969672] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[   17.976896] 8021q: adding VLAN 0 to HW filter on device lan4
[   17.986085] br-lan: port 4(lan4) entered blocking state
[   17.991334] br-lan: port 4(lan4) entered disabled state
[   17.997975] device lan4 entered promiscuous mode
[   18.011681] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   18.018806] 8021q: adding VLAN 0 to HW filter on device wan
[   20.350802] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   20.513444] br-lan: port 5(wlan0-1) entered blocking state
[   20.519027] br-lan: port 5(wlan0-1) entered disabled state
[   20.525141] device wlan0-1 entered promiscuous mode
[   20.531858] br-lan: port 5(wlan0-1) entered blocking state
[   20.537431] br-lan: port 5(wlan0-1) entered forwarding state
[   20.543738] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   20.636229] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-1: link becomes ready
[   20.743548] br-lan: port 6(wlan0-2) entered blocking state
[   20.749124] br-lan: port 6(wlan0-2) entered disabled state
[   20.755225] device wlan0-2 entered promiscuous mode
[   20.761680] br-lan: port 6(wlan0-2) entered blocking state
[   20.767265] br-lan: port 6(wlan0-2) entered forwarding state
[   20.867151] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-2: link becomes ready
[   21.236699] mt7530 mdio-bus:1f wan: Link is Up - 100Mbps/Full - flow control                                                   rx/tx
[   21.244284] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready
[   21.698498] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   21.715705] br-lan: port 7(wlan1-1) entered blocking state
[   21.721393] br-lan: port 7(wlan1-1) entered disabled state
[   21.727603] device wlan1-1 entered promiscuous mode
[   21.734951] br-lan: port 7(wlan1-1) entered blocking state
[   21.740519] br-lan: port 7(wlan1-1) entered forwarding state
[   21.848554] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1-1: link becomes ready
[   21.919239] br-lan: port 8(wlan1-2) entered blocking state
[   21.924778] br-lan: port 8(wlan1-2) entered disabled state
[   21.931141] device wlan1-2 entered promiscuous mode
[   21.941608] br-lan: port 8(wlan1-2) entered blocking state
[   21.947169] br-lan: port 8(wlan1-2) entered forwarding state
[   22.081994] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1-2: link becomes ready
[   22.116788] mt7530 mdio-bus:1f lan3: Link is Up - 1Gbps/Full - flow control r                                                  x/tx
[   22.124362] br-lan: port 3(lan3) entered blocking state
[   22.129743] br-lan: port 3(lan3) entered forwarding state
[37020.587731] br-lan: port 8(wlan1-2) entered disabled state
[37020.593433] br-lan: port 7(wlan1-1) entered disabled state
[37020.599145] br-lan: port 6(wlan0-2) entered disabled state
[37020.604848] br-lan: port 5(wlan0-1) entered disabled state
[37020.610579] br-lan: port 3(lan3) entered disabled state
[37020.628775] device lan1 left promiscuous mode
[37020.633467] br-lan: port 1(lan1) entered disabled state
[37020.684610] device lan2 left promiscuous mode
[37020.689332] br-lan: port 2(lan2) entered disabled state
[37020.754789] device lan3 left promiscuous mode
[37020.759533] br-lan: port 3(lan3) entered disabled state
[37020.809787] mt7530 mdio-bus:1f lan3: Link is Down
[37020.818419] device lan4 left promiscuous mode
[37020.823093] br-lan: port 4(lan4) entered disabled state
[37020.883492] device wlan0-1 left promiscuous mode
[37020.888379] br-lan: port 5(wlan0-1) entered disabled state
[37020.939094] device wlan0-2 left promiscuous mode
[37020.943906] br-lan: port 6(wlan0-2) entered disabled state
[37020.998890] device wlan1-1 left promiscuous mode
[37021.003676] br-lan: port 7(wlan1-1) entered disabled state
[37021.078861] device wlan1-2 left promiscuous mode
[37021.083652] br-lan: port 8(wlan1-2) entered disabled state
[37021.307106] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[37021.314277] 8021q: adding VLAN 0 to HW filter on device lan1
[37021.323217] br-lan: port 1(lan1) entered blocking state
[37021.328529] br-lan: port 1(lan1) entered disabled state
[37021.334672] device lan1 entered promiscuous mode
[37021.348562] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[37021.355735] 8021q: adding VLAN 0 to HW filter on device lan2
[37021.365313] br-lan: port 2(lan2) entered blocking state
[37021.370667] br-lan: port 2(lan2) entered disabled state
[37021.376971] device lan2 entered promiscuous mode
[37021.390005] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[37021.397306] 8021q: adding VLAN 0 to HW filter on device lan3
[37021.406250] br-lan: port 3(lan3) entered blocking state
[37021.411562] br-lan: port 3(lan3) entered disabled state
[37021.418021] device lan3 entered promiscuous mode
[37021.430434] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[37021.437586] 8021q: adding VLAN 0 to HW filter on device lan4
[37021.446424] br-lan: port 4(lan4) entered blocking state
[37021.451707] br-lan: port 4(lan4) entered disabled state
[37021.458653] device lan4 entered promiscuous mode
[37021.470563] br-lan: port 5(wlan0-1) entered blocking state
[37021.476122] br-lan: port 5(wlan0-1) entered disabled state
[37021.482490] device wlan0-1 entered promiscuous mode
[37021.492345] br-lan: port 6(wlan0-2) entered blocking state
[37021.497882] br-lan: port 6(wlan0-2) entered disabled state
[37021.504182] device wlan0-2 entered promiscuous mode
[37021.515651] br-lan: port 7(wlan1-1) entered blocking state
[37021.521201] br-lan: port 7(wlan1-1) entered disabled state
[37021.527263] device wlan1-1 entered promiscuous mode
[37021.538038] br-lan: port 8(wlan1-2) entered blocking state
[37021.543657] br-lan: port 8(wlan1-2) entered disabled state
[37021.549943] device wlan1-2 entered promiscuous mode
[37021.560744] br-lan: port 8(wlan1-2) entered blocking state
[37021.566279] br-lan: port 8(wlan1-2) entered forwarding state
[37021.572246] br-lan: port 7(wlan1-1) entered blocking state
[37021.577796] br-lan: port 7(wlan1-1) entered forwarding state
[37021.583678] br-lan: port 6(wlan0-2) entered blocking state
[37021.589225] br-lan: port 6(wlan0-2) entered forwarding state
[37021.595004] br-lan: port 5(wlan0-1) entered blocking state
[37021.600550] br-lan: port 5(wlan0-1) entered forwarding state
[37021.606345] br-lan: port 3(lan3) entered blocking state
[37021.611642] br-lan: port 3(lan3) entered forwarding state
[37021.678648] br-lan: port 3(lan3) entered disabled state
[37024.558920] mt7530 mdio-bus:1f lan3: Link is Up - 1Gbps/Full - flow control r                                                  x/tx
[37024.566429] br-lan: port 3(lan3) entered blocking state
[37024.571685] br-lan: port 3(lan3) entered forwarding state
[45528.309635] mt7530 mdio-bus:1f wan: Link is Down
[45528.322290] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[45528.332240] 8021q: adding VLAN 0 to HW filter on device wan
[45528.454967] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[45528.462072] 8021q: adding VLAN 0 to HW filter on device wan
[45531.568248] mt7530 mdio-bus:1f wan: Link is Up - 100Mbps/Full - flow control                                                   rx/tx
[47386.720759] device wlan1-1 left promiscuous mode
[47386.725710] br-lan: port 7(wlan1-1) entered disabled state
[47386.789712] device wlan1-2 left promiscuous mode
[47386.794584] br-lan: port 8(wlan1-2) entered disabled state
[47388.892956] br-lan: port 7(wlan1) entered blocking state
[47388.898339] br-lan: port 7(wlan1) entered disabled state
[47388.904330] device wlan1 entered promiscuous mode
[47388.909486] br-lan: port 7(wlan1) entered blocking state
[47388.914845] br-lan: port 7(wlan1) entered forwarding state
[47389.069069] br-lan: port 7(wlan1) entered disabled state
[47389.453030] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[47389.459830] br-lan: port 7(wlan1) entered blocking state
[47389.465150] br-lan: port 7(wlan1) entered forwarding state
[47389.556043] br-lan: port 8(wlan1-1) entered blocking state
[47389.561740] br-lan: port 8(wlan1-1) entered disabled state
[47389.567833] device wlan1-1 entered promiscuous mode
[47389.574860] br-lan: port 8(wlan1-1) entered blocking state
[47389.580443] br-lan: port 8(wlan1-1) entered forwarding state
[47389.684662] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1-1: link becomes ready
root@OpenWrt:~#

lspci output (working version)

root@OpenWrt:~# lspci
00:00.0 PCI bridge: Device 0e8d:0801 (rev 01)
00:01.0 PCI bridge: Device 0e8d:0801 (rev 01)
01:00.0 Unclassified device [0002]: MEDIATEK Corp. Device 7916
02:00.0 Unclassified device [0002]: MEDIATEK Corp. MT7915E 802.11ax PCI Express Wireless Network Adapter

And yes I have seen same output

[    1.115692] mt7621-pci 1e140000.pcie: pcie2 no card, disable it (RST & CLK)
[    1.122647] mt7621-pci 1e140000.pcie: PCIE1 enabled

on the 21.02.1

Verbose output of lspci (working snapshot version)

root@OpenWrt:~# lspci -v
00:00.0 PCI bridge: Device 0e8d:0801 (rev 01) (prog-if 00 [Normal decode])
        Device tree node: /sys/firmware/devicetree/base/pcie@1e140000/pcie@0,0
        Flags: bus master, fast devsel, latency 0, IRQ 255
        Memory at 60600000 (32-bit, non-prefetchable) [size=64K]
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 00000000-00000fff [size=4K]
        Memory behind bridge: 60000000-600fffff [size=1M]
        Prefetchable memory behind bridge: 60100000-602fffff [size=2M]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Root Port (Slot-), MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Virtual Channel
lspci: Unable to load libkmod resources: error -12

00:01.0 PCI bridge: Device 0e8d:0801 (rev 01) (prog-if 00 [Normal decode])
        Device tree node: /sys/firmware/devicetree/base/pcie@1e140000/pcie@1,0
        Flags: bus master, fast devsel, latency 0, IRQ 255
        Memory at 60610000 (32-bit, non-prefetchable) [size=64K]
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
        I/O behind bridge: 00001000-00001fff [size=4K]
        Memory behind bridge: 60300000-603fffff [size=1M]
        Prefetchable memory behind bridge: 60400000-605fffff [size=2M]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Root Port (Slot-), MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Virtual Channel

01:00.0 Unclassified device [0002]: MEDIATEK Corp. Device 7916 (prog-if 80)
        Subsystem: MEDIATEK Corp. Device 7916
        Flags: bus master, fast devsel, latency 0, IRQ 22
        Memory at 60100000 (64-bit, prefetchable) [size=1M]
        Memory at 60200000 (64-bit, prefetchable) [size=16K]
        Memory at 60204000 (64-bit, prefetchable) [size=4K]
        Capabilities: [80] Express Endpoint, MSI 00
        Capabilities: [e0] MSI: Enable- Count=1/32 Maskable+ 64bit+
        Capabilities: [f8] Power Management version 3
        Capabilities: [100] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?>
        Capabilities: [108] Latency Tolerance Reporting
        Capabilities: [110] L1 PM Substates
        Capabilities: [200] Advanced Error Reporting
        Kernel driver in use: mt7915e_hif

02:00.0 Unclassified device [0002]: MEDIATEK Corp. MT7915E 802.11ax PCI Express Wireless Network Adapter (prog-if 80)
        Subsystem: MEDIATEK Corp. MT7915E 802.11ax PCI Express Wireless Network Adapter
        Device tree node: /sys/firmware/devicetree/base/pcie@1e140000/pcie@1,0/wifi@0,0
        Flags: bus master, fast devsel, latency 0, IRQ 23
        Memory at 60400000 (64-bit, prefetchable) [size=1M]
        Memory at 60500000 (64-bit, prefetchable) [size=16K]
        Memory at 60504000 (64-bit, prefetchable) [size=4K]
        Capabilities: [80] Express Endpoint, MSI 00
        Capabilities: [e0] MSI: Enable- Count=1/32 Maskable+ 64bit+
        Capabilities: [f8] Power Management version 3
        Capabilities: [100] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?>
        Capabilities: [108] Latency Tolerance Reporting
        Capabilities: [110] L1 PM Substates
        Capabilities: [200] Advanced Error Reporting
        Kernel driver in use: mt7915e

Hello @woffko
Do you have a direct link to that firmware?

https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/openwrt-ramips-mt7621-totolink_x5000r-squashfs-sysupgrade.bin
yesterday it was
SHA256: D401EA8F25E2D2352594286393F9E6AA8016214CB382FE581EE53E04F7B92D27
I think now it's updated. But since it's development it's OK to try. If it does not work for you I'll share my copy.
Don't forget to install luci if you are using it :wink:

@nonyhaha
Any news?

@woffko not yet. I really did not have the time to get the ap down off the wall to flash it. I am thinking about it every day :))

Also you can build your own image here — Chef image builder
Just press "Customize". Luci is already selected and some other stuff too, you can just modify it or leave it as is. Then press build and wait until download button appears.
Just tried it, looks like everything is working out of the box.

So, as I told you, my issue is that none of the wireless devices are discovered. So nothing is working for me with any of the stock openwrt firmwares.
ptpt52 mentioned trying to revert a commit, here: https://github.com/openwrt/mt76/issues/610#issuecomment-961647710
But I do not know how to do that so I am stuck now.

About your:

[    1.115692] mt7621-pci 1e140000.pcie: pcie2 no card, disable it (RST & CLK)
[    1.122647] mt7621-pci 1e140000.pcie: PCIE1 enabled

Please check what is going on with pcie0. that is the main issue. Please see above my 2 exa,ples, working and non working of dmesg, on non working I also have

[    1.108740] mt7621-pci 1e140000.pcie: pcie0 no card, disable it (RST & CLK)
[    1.115692] mt7621-pci 1e140000.pcie: pcie2 no card, disable it (RST & CLK)
[    1.122647] mt7621-pci 1e140000.pcie: PCIE1 enabled

So you have tried latest SNAPSHOT, are you?

Again, on the working version it is

and yes, on non working there was only PCIE1 enabled.

I have lost my dmesg output and then just copied yours when answered two weeks ago just to point it, but lost one row.
Sorry if this caused a misunderstanding.

Latest snapshot, same issue. No wireless nic detected. :frowning:

Thanks for that, it looks like I'm having a similar problem with GL.iNet GL-MT1300, I'm gonna try the manual config workaround:

Hello @noseratio and thank you for the interest.
Unfortunately this is not going to resolve my issue, as I am having issue with the system detecting ANY of the wireless phys.

1 Like

Just a small remark - i built from the current snapshot via https://chef.libremesh.org/?version=SNAPSHOT&target=ramips%2Fmt7621&id=totolink_x5000r
and both 5ghz and 2ghz are working fine
(git-22.025.79016-22e2bfb)](https://github.com/openwrt/luci) / OpenWrt SNAPSHOT r18752-1b311aab31

I tried with 21.02.1 - 5ghz was not working
Also tried with 21.02.1 Snaphost again not working