Support for Mediatek MT7628AN eval board

Hi everyone,

I'm working on a 2.4 Ghz router that is based on the Mediatek MT7628AN evaluation board.

I was able to compile and install OpenWRT23.05.2 on it and everything works, except the 2.4Ghz radio, which cannot detect my router's 2.4Ghz SSID. The wireless config on the evaluation board as below:

root@Mango_CA81:~# cat /etc/config/wireless

config wifi-device 'radio0'
	option type 'mac80211'
	option path 'platform/10300000.wmac'
	option channel '1'
	option band '2g'
	option htmode 'HT20'
	option disabled '0'
	option country 'CA'

config wifi-iface 'default_radio0'
	option device 'radio0'
	option network 'lan'
	option mode 'ap'
	option ssid 'OpenWrt'
	option encryption 'none'
	option disabled '0'
	option ifname 'wlan0'

config wifi-iface
        option device  'radio0'
        option network 'wwan'
        option mode 'sta'
        option encryption 'psk2'
        option key 'xxxxxxxx'
        option ssid 'xxxxxx-2g'

When I run the "iw wlan0 scan", my router's SSID doesn't show up.

Then I checked the log file and it displays one error message

 kern.err kernel: [   17.568137] mt76x2e 0000:01:00.0: EEPROM data check failed: ffff

Below is the boot log where I found the error message above:

Thu Nov 16 06:09:33 2023 kern.notice kernel: [    0.000000] Linux version 5.15.137 (builder@buildhost) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r23630-842932a63d) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 Tue Nov 14 13:38:11 2023
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.000000] Board has DDR2
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.000000] Analog PMU set to hw control
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.000000] Digital PMU set to hw control
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.000000] printk: bootconsole [early0] enabled
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.000000] MIPS: machine is Mediatek MT7628AN evaluation board
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.000000] Initrd not found or empty - disabling initrd
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.000000] Zone ranges:
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.000000] Movable zone start for each node
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.000000] Early memory node ranges
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
Thu Nov 16 06:09:33 2023 kern.debug kernel: [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
...
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.194906] thermal_sys: Registered thermal governor 'step_wise'
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.463720] PCI host bridge to bus 0000:00
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.483571] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.497158] pci_bus 0000:00: root bus resource [io  0x10160000-0x1016ffff]
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.510755] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.526458] pci 0000:00:00.0: [14c3:0801] type 01 class 0x060400
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.538283] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.550656] pci 0000:00:00.0: reg 0x14: [mem 0x20200000-0x2020ffff]
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.563122] pci 0000:00:00.0: supports D1
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.570938] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.584303] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.596158] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.609542] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.622907] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.636415] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.649420] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.662489] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.675531] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.689292] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.702710] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.716985] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.730412] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.744870] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.759124] pci 0000:00:00.0: PCI bridge to [bus 01]
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.768919] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.782342] pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.797177] clocksource: Switched to clocksource MIPS
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.808967] NET: Registered PF_INET protocol family
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.818861] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.834304] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.850815] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.866040] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.881186] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.895120] TCP: Hash tables configured (established 1024 bind 1024)
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.907880] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.920759] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.934948] NET: Registered PF_UNIX/PF_LOCAL protocol family
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.946222] PCI: CLS 0 bytes, default 32
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.958835] workingset: timestamp_bits=14 max_order=14 bucket_order=0
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.978974] squashfs: version 4.0 (2009/01/31) Phillip Lougher
Thu Nov 16 06:09:33 2023 kern.info kernel: [    0.990453] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.011532] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.029538] mt7621_gpio 10000600.gpio: registering 32 gpios
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.040949] mt7621_gpio 10000600.gpio: registering 32 gpios
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.052290] mt7621_gpio 10000600.gpio: registering 32 gpios
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.064029] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.080106] printk: console [ttyS0] disabled
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.088596] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.106416] printk: console [ttyS0] enabled
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.122910] printk: bootconsole [early0] disabled
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.143487] spi-mt7621 10000b00.spi: sys_freq: 193333333
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.178657] spi-nor spi0.0: w25q128 (16384 Kbytes)
Thu Nov 16 06:09:33 2023 kern.notice kernel: [    1.188303] 4 fixed-partitions partitions found on MTD device spi0.0
Thu Nov 16 06:09:33 2023 kern.err kernel: [    1.200961] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
Thu Nov 16 06:09:33 2023 kern.err kernel: [    1.215500] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
Thu Nov 16 06:09:33 2023 kern.notice kernel: [    1.230292] Creating 4 MTD partitions on "spi0.0":
Thu Nov 16 06:09:33 2023 kern.notice kernel: [    1.239830] 0x000000000000-0x000000030000 : "u-boot"
Thu Nov 16 06:09:33 2023 kern.notice kernel: [    1.252890] 0x000000030000-0x000000040000 : "u-boot-env"
Thu Nov 16 06:09:33 2023 kern.notice kernel: [    1.264880] 0x000000040000-0x000000050000 : "factory"
Thu Nov 16 06:09:33 2023 kern.notice kernel: [    1.278500] 0x000000050000-0x000001000000 : "firmware"
Thu Nov 16 06:09:33 2023 kern.notice kernel: [    1.290373] 2 uimage-fw partitions found on MTD device firmware
Thu Nov 16 06:09:33 2023 kern.notice kernel: [    1.302198] Creating 2 MTD partitions on "firmware":
Thu Nov 16 06:09:33 2023 kern.notice kernel: [    1.312044] 0x000000000000-0x0000002331f1 : "kernel"
Thu Nov 16 06:09:33 2023 kern.warn kernel: [    1.321886] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
Thu Nov 16 06:09:33 2023 kern.notice kernel: [    1.341554] 0x0000002331f1-0x000000fb0000 : "rootfs"
Thu Nov 16 06:09:33 2023 kern.warn kernel: [    1.351488] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.371074] mtd: setting mtd5 (rootfs) as root device
Thu Nov 16 06:09:33 2023 kern.notice kernel: [    1.382321] 1 squashfs-split partitions found on MTD device rootfs
Thu Nov 16 06:09:33 2023 kern.notice kernel: [    1.394670] 0x000000700000-0x000000fb0000 : "rootfs_data"
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.465327] rt3050-esw 10110000.esw: mediatek esw at 0xb0110000, irq 25 initialized
Thu Nov 16 06:09:33 2023 kern.err kernel: [    1.480674] mtk_soc_eth 10100000.ethernet: generated random MAC address de:62:1c:1d:dd:d2
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.497720] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.516645] NET: Registered PF_INET6 protocol family
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.533972] Segment Routing with IPv6
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.541419] In-situ OAM (IOAM) with IPv6
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.549381] NET: Registered PF_PACKET protocol family
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.559493] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.585545] 8021q: 802.1Q VLAN Support v1.8
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.611944] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.632567] Freeing unused kernel image (initmem) memory: 1188K
Thu Nov 16 06:09:33 2023 kern.warn kernel: [    1.644329] This architecture does not have kernel memory protection.
Thu Nov 16 06:09:33 2023 kern.info kernel: [    1.657102] Run /sbin/init as init process
Thu Nov 16 06:09:33 2023 kern.debug kernel: [    1.665215]   with arguments:
Thu Nov 16 06:09:33 2023 kern.debug kernel: [    1.665223]     /sbin/init
Thu Nov 16 06:09:33 2023 kern.debug kernel: [    1.665231]   with environment:
Thu Nov 16 06:09:33 2023 kern.debug kernel: [    1.665237]     HOME=/
Thu Nov 16 06:09:33 2023 kern.debug kernel: [    1.665243]     TERM=linux
Thu Nov 16 06:09:33 2023 user.info kernel: [    2.591948] init: Console is alive
Thu Nov 16 06:09:33 2023 user.info kernel: [    2.599511] init: - watchdog -
Thu Nov 16 06:09:33 2023 user.info kernel: [    4.513196] kmodloader: loading kernel modules from /etc/modules-boot.d/*
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.704164] usbcore: registered new interface driver usbfs
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.715276] usbcore: registered new interface driver hub
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.725992] usbcore: registered new device driver usb
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.743529] Button Hotplug driver version 0.4.1
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.760854] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.778278] fsl-ehci: Freescale EHCI Host controller driver
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.791555] ehci-platform: EHCI generic platform driver
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.812540] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.825847] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.836200] ehci-platform 101c0000.ehci: EHCI Host Controller
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.847635] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.863485] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.897197] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.910953] hub 1-0:1.0: USB hub found
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.919404] hub 1-0:1.0: 1 port detected
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.935961] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.950072] ohci-platform: OHCI generic platform driver
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.960954] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.974564] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
Thu Nov 16 06:09:33 2023 kern.info kernel: [    4.990486] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
Thu Nov 16 06:09:33 2023 kern.info kernel: [    5.072438] hub 2-0:1.0: USB hub found
Thu Nov 16 06:09:33 2023 kern.info kernel: [    5.080930] hub 2-0:1.0: 1 port detected
Thu Nov 16 06:09:33 2023 user.info kernel: [    5.099431] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
Thu Nov 16 06:09:33 2023 user.info kernel: [    5.124525] init: - preinit -
Thu Nov 16 06:09:33 2023 kern.info kernel: [    5.719202] rt3050-esw 10110000.esw: port 0 link up
Thu Nov 16 06:09:33 2023 kern.notice kernel: [    7.276055] random: jshn: uninitialized urandom read (4 bytes read)
Thu Nov 16 06:09:33 2023 kern.notice kernel: [    7.552509] random: jshn: uninitialized urandom read (4 bytes read)
Thu Nov 16 06:09:33 2023 kern.notice kernel: [    7.746470] random: jshn: uninitialized urandom read (4 bytes read)
Thu Nov 16 06:09:33 2023 kern.info kernel: [    8.335259] rt3050-esw 10110000.esw: port 0 link down
Thu Nov 16 06:09:33 2023 kern.notice kernel: [    8.660143] random: procd: uninitialized urandom read (4 bytes read)
Thu Nov 16 06:09:33 2023 kern.notice kernel: [   11.015023] jffs2: notice: (312) jffs2_build_xattr_subsystem: complete building xattr subsystem, 17 of xdatum (0 unchecked, 7 orphan) and 20 of xref (7 dead, 0 orphan) found.
Thu Nov 16 06:09:33 2023 user.info kernel: [   11.048654] mount_root: switching to jffs2 overlay
Thu Nov 16 06:09:33 2023 kern.warn kernel: [   11.070727] overlayfs: upper fs does not support tmpfile.
Thu Nov 16 06:09:33 2023 user.warn kernel: [   11.134273] urandom-seed: Seeding with /etc/urandom.seed
Thu Nov 16 06:09:33 2023 user.info kernel: [   11.277016] procd: - early -
Thu Nov 16 06:09:33 2023 user.info kernel: [   11.284217] procd: - watchdog -
Thu Nov 16 06:09:33 2023 user.info kernel: [   12.345213] procd: - watchdog -
Thu Nov 16 06:09:33 2023 user.info kernel: [   12.354260] procd: - ubus -
Thu Nov 16 06:09:33 2023 kern.info kernel: [   12.466994] rt3050-esw 10110000.esw: port 0 link up
Thu Nov 16 06:09:33 2023 kern.notice kernel: [   12.570129] random: ubusd: uninitialized urandom read (4 bytes read)
Thu Nov 16 06:09:33 2023 kern.notice kernel: [   12.586653] random: ubusd: uninitialized urandom read (4 bytes read)
Thu Nov 16 06:09:33 2023 kern.notice kernel: [   12.600057] random: ubusd: uninitialized urandom read (4 bytes read)
Thu Nov 16 06:09:33 2023 user.info kernel: [   12.623778] procd: - init -
Thu Nov 16 06:09:33 2023 kern.notice kernel: [   14.045626] random: jshn: uninitialized urandom read (4 bytes read)
Thu Nov 16 06:09:33 2023 kern.notice kernel: [   14.166261] random: ubusd: uninitialized urandom read (4 bytes read)
Thu Nov 16 06:09:33 2023 kern.notice kernel: [   14.207613] random: ubus: uninitialized urandom read (4 bytes read)
Thu Nov 16 06:09:33 2023 user.info kernel: [   14.400180] kmodloader: loading kernel modules from /etc/modules.d/*
Thu Nov 16 06:09:33 2023 kern.info kernel: [   15.288028] Loading modules backported from Linux version v6.1.24-0-g0102425ac76b
Thu Nov 16 06:09:33 2023 kern.info kernel: [   15.302945] Backport generated by backports.git v5.15.92-1-44-gd6ea70fafd36
Thu Nov 16 06:09:33 2023 kern.info kernel: [   15.462402] xt_time: kernel timezone is -0000
Thu Nov 16 06:09:33 2023 kern.info kernel: [   16.135413] mt76_wmac 10300000.wmac: ASIC revision: 76280001
Thu Nov 16 06:09:33 2023 kern.info kernel: [   16.168213] mt76_wmac 10300000.wmac: Invalid MAC address, using random address be:ac:26:b8:f7:dd
Thu Nov 16 06:09:33 2023 kern.info kernel: [   17.248603] mt76_wmac 10300000.wmac: Firmware Version: 20151201
Thu Nov 16 06:09:33 2023 kern.info kernel: [   17.260422] mt76_wmac 10300000.wmac: Build Time: 20151201183641
Thu Nov 16 06:09:33 2023 kern.info kernel: [   17.347194] mt76_wmac 10300000.wmac: firmware init done
Thu Nov 16 06:09:33 2023 user.info kernel: [   17.487794] urngd: v1.0.2 started.
Thu Nov 16 06:09:33 2023 kern.debug kernel: [   17.527415] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Thu Nov 16 06:09:33 2023 kern.info kernel: [   17.599407] mt76x2e 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
Thu Nov 16 06:09:33 2023 kern.info kernel: [   17.612144] mt76x2e 0000:01:00.0: ASIC revision: 76120044
Thu Nov 16 06:09:33 2023 kern.err kernel: [   17.697261] mt76x2e 0000:01:00.0: EEPROM data check failed: ffff
Thu Nov 16 06:09:33 2023 kern.info kernel: [   18.507367] mt76x2e 0000:01:00.0: Invalid MAC address, using random address da:38:6c:e7:5e:1f
Thu Nov 16 06:09:33 2023 kern.info kernel: [   18.580369] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
Thu Nov 16 06:09:33 2023 kern.info kernel: [   18.659194] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
Thu Nov 16 06:09:33 2023 kern.info kernel: [   18.670160] mt76x2e 0000:01:00.0: Build: 1
Thu Nov 16 06:09:33 2023 kern.info kernel: [   18.678277] mt76x2e 0000:01:00.0: Build Time: 201607111443____
Thu Nov 16 06:09:33 2023 kern.info kernel: [   18.788592] mt76x2e 0000:01:00.0: Firmware running!
Thu Nov 16 06:09:33 2023 kern.debug kernel: [   18.879515] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
Thu Nov 16 06:09:33 2023 kern.info kernel: [   19.325672] PPP generic driver version 2.4.2
Thu Nov 16 06:09:33 2023 kern.info kernel: [   19.378457] NET: Registered PF_PPPOX protocol family
Thu Nov 16 06:09:33 2023 user.info kernel: [   19.457829] kmodloader: done loading kernel modules from /etc/modules.d/*
Thu Nov 16 06:09:33 2023 kern.notice kernel: [   22.397730] random: crng init done
Thu Nov 16 06:09:33 2023 kern.notice kernel: [   22.404490] random: 24 urandom warning(s) missed due to ratelimiting
Thu Nov 16 06:09:36 2023 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Thu Nov 16 06:09:36 2023 user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Thu Nov 16 06:09:37 2023 daemon.info dnsmasq[1]: started, version 2.89 cachesize 250
Thu Nov 16 06:09:37 2023 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-nftset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Thu Nov 16 06:09:37 2023 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus
Thu Nov 16 06:09:37 2023 daemon.info dnsmasq[1]: using nameserver 192.168.1.1#53
Thu Nov 16 06:09:37 2023 daemon.info dnsmasq[1]: using only locally-known addresses for test
Thu Nov 16 06:09:37 2023 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Thu Nov 16 06:09:37 2023 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Thu Nov 16 06:09:37 2023 daemon.info dnsmasq[1]: using only locally-known addresses for local
Thu Nov 16 06:09:37 2023 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Thu Nov 16 06:09:37 2023 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Thu Nov 16 06:09:37 2023 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Thu Nov 16 06:09:37 2023 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Thu Nov 16 06:09:37 2023 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 names
Thu Nov 16 06:09:38 2023 authpriv.info dropbear[1070]: Not backgrounding
Thu Nov 16 06:09:44 2023 kern.info kernel: [   34.485356] rt3050-esw 10110000.esw: port 0 link down
Thu Nov 16 06:09:44 2023 daemon.notice wpa_supplicant[1181]: Successfully initialized wpa_supplicant
Thu Nov 16 06:09:45 2023 user.notice : Added device handler type: bonding
Thu Nov 16 06:09:45 2023 user.notice : Added device handler type: 8021ad
Thu Nov 16 06:09:45 2023 user.notice : Added device handler type: 8021q
Thu Nov 16 06:09:45 2023 user.notice : Added device handler type: macvlan
Thu Nov 16 06:09:45 2023 user.notice : Added device handler type: veth
Thu Nov 16 06:09:45 2023 user.notice : Added device handler type: bridge
Thu Nov 16 06:09:45 2023 user.notice : Added device handler type: Network device
Thu Nov 16 06:09:45 2023 user.notice : Added device handler type: tunnel
Thu Nov 16 06:09:48 2023 kern.info kernel: [   38.738962] rt3050-esw 10110000.esw: port 0 link up
Thu Nov 16 06:09:49 2023 daemon.notice procd: /etc/rc.d/S50uhttpd: Skipping invalid Lua prefix "/cgi-bin/luci=/usr/lib/lua/luci/sgi/uhttpd.lua"
Thu Nov 16 06:09:51 2023 user.notice ucitrack: Setting up /etc/config/dhcp reload dependency on /etc/config/network
Thu Nov 16 06:09:51 2023 user.notice ucitrack: Setting up /etc/config/network reload dependency on /etc/config/wireless
Thu Nov 16 06:09:51 2023 user.notice ucitrack: Setting up /etc/config/luci-splash reload dependency on /etc/config/firewall
Thu Nov 16 06:09:51 2023 user.notice ucitrack: Setting up /etc/config/qos reload dependency on /etc/config/firewall
Thu Nov 16 06:09:52 2023 user.notice ucitrack: Setting up /etc/config/miniupnpd reload dependency on /etc/config/firewall
Thu Nov 16 06:09:52 2023 user.notice ucitrack: Setting up /etc/config/odhcpd reload dependency on /etc/config/dhcp
Thu Nov 16 06:09:53 2023 user.notice ucitrack: Setting up non-init /etc/config/fstab reload handler: /sbin/block mount
Thu Nov 16 06:09:53 2023 user.notice ucitrack: Setting up /etc/config/system reload trigger for non-procd /etc/init.d/led
Thu Nov 16 06:09:53 2023 user.notice ucitrack: Setting up /etc/config/luci_statistics reload dependency on /etc/config/system
Thu Nov 16 06:09:54 2023 user.notice ucitrack: Setting up /etc/config/dhcp reload dependency on /etc/config/system
Thu Nov 16 06:09:55 2023 daemon.notice procd: /etc/rc.d/S96led: setting up led led_far
Thu Nov 16 06:09:55 2023 daemon.notice procd: /etc/rc.d/S96led: setting up led led_midfar
Thu Nov 16 06:09:55 2023 daemon.notice procd: /etc/rc.d/S96led: setting up led led_mid
Thu Nov 16 06:09:55 2023 daemon.notice procd: /etc/rc.d/S96led: setting up led led_midclose
Thu Nov 16 06:09:55 2023 daemon.notice procd: /etc/rc.d/S96led: setting up led led_close
Thu Nov 16 06:09:56 2023 kern.info kernel: [   46.505769] br-lan: port 1(eth0.1) entered blocking state
Thu Nov 16 06:09:56 2023 kern.info kernel: [   46.516591] br-lan: port 1(eth0.1) entered disabled state
Thu Nov 16 06:09:56 2023 kern.info kernel: [   46.527702] device eth0.1 entered promiscuous mode
Thu Nov 16 06:09:56 2023 kern.info kernel: [   46.537267] device eth0 entered promiscuous mode
Thu Nov 16 06:09:56 2023 kern.info kernel: [   46.620697] br-lan: port 1(eth0.1) entered blocking state
Thu Nov 16 06:09:56 2023 kern.info kernel: [   46.631491] br-lan: port 1(eth0.1) entered forwarding state
Thu Nov 16 06:09:56 2023 daemon.notice netifd: Interface 'lan' is enabled
Thu Nov 16 06:09:56 2023 daemon.notice netifd: Interface 'lan' is setting up now
Thu Nov 16 06:09:56 2023 daemon.notice netifd: Interface 'lan' is now up
Thu Nov 16 06:09:56 2023 daemon.notice netifd: bridge 'br-lan' link is up
Thu Nov 16 06:09:56 2023 daemon.notice netifd: Interface 'lan' has link connectivity
Thu Nov 16 06:09:56 2023 daemon.notice netifd: VLAN 'eth0.1' link is up
Thu Nov 16 06:09:56 2023 daemon.notice netifd: Interface 'loopback' is enabled
Thu Nov 16 06:09:56 2023 daemon.notice netifd: Interface 'loopback' is setting up now
Thu Nov 16 06:09:56 2023 daemon.notice netifd: Interface 'loopback' is now up
Thu Nov 16 06:09:56 2023 daemon.notice netifd: Interface 'wan' is enabled
Thu Nov 16 06:09:56 2023 daemon.notice netifd: bridge 'br-lan' link is down
Thu Nov 16 06:09:56 2023 daemon.notice netifd: Interface 'lan' has link connectivity loss
Thu Nov 16 06:09:56 2023 daemon.notice netifd: Network device 'eth0' link is up
Thu Nov 16 06:09:56 2023 daemon.notice netifd: VLAN 'eth0.1' link is down
Thu Nov 16 06:09:56 2023 daemon.notice netifd: VLAN 'eth0.1' link is up
Thu Nov 16 06:09:56 2023 daemon.notice netifd: bridge 'br-lan' link is up
Thu Nov 16 06:09:56 2023 daemon.notice netifd: Interface 'lan' has link connectivity
Thu Nov 16 06:09:56 2023 daemon.notice netifd: Network device 'lo' link is up
Thu Nov 16 06:09:56 2023 daemon.notice netifd: Interface 'loopback' has link connectivity
Thu Nov 16 06:09:56 2023 daemon.notice netifd: VLAN 'eth0.2' link is up
Thu Nov 16 06:09:56 2023 daemon.notice netifd: Interface 'wan' has link connectivity
Thu Nov 16 06:09:56 2023 daemon.notice netifd: Interface 'wan' is setting up now
Thu Nov 16 06:09:57 2023 kern.info kernel: [   47.517685] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Thu Nov 16 06:09:57 2023 daemon.notice netifd: wan (1958): udhcpc: started, v1.36.1
Thu Nov 16 06:09:57 2023 daemon.notice netifd: radio0 (1897): WARNING: Variable 'data' does not exist or is not an array/object
Thu Nov 16 06:09:59 2023 daemon.notice netifd: wan (1958): udhcpc: broadcasting discover
Thu Nov 16 06:09:59 2023 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Thu Nov 16 06:09:59 2023 daemon.info procd: - init complete -
Thu Nov 16 06:10:01 2023 daemon.notice hostapd: Set new config for phy phy0:
Thu Nov 16 06:10:01 2023 daemon.notice wpa_supplicant[1181]: Set new config for phy phy0
Thu Nov 16 06:10:02 2023 daemon.notice netifd: wan (1958): udhcpc: broadcasting discover
Thu Nov 16 06:10:03 2023 daemon.notice netifd: radio0 (1897): sh: out of range
Thu Nov 16 06:10:03 2023 daemon.notice wpa_supplicant[1181]: Set new config for phy phy0
Thu Nov 16 06:10:04 2023 daemon.notice hostapd: Set new config for phy phy0: /var/run/hostapd-phy0.conf
Thu Nov 16 06:10:04 2023 daemon.notice hostapd: Restart interface for phy phy0
Thu Nov 16 06:10:04 2023 daemon.notice hostapd: Configuration file: data: driver=nl80211 logger_syslog=127 logger_syslog_level=2 logger_stdout=127 logger_stdout_level=2 country_code=CA ieee80211d=1 hw_mode=g supported_rates=60 90 120 180 240 360 480 540 basic_rates=60 120 240 beacon_int=100 chanlist=1 noscan=1 #num_global_macaddr=1 ieee80211n=1 ht_coex=0 ht_capab=[SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1] channel=1  interface=wlan0 bssid=be:ac:26:b8:f7:dd ctrl_interface=/var/run/hostapd ap_isolate=1 bss_load_update_period=60 chan_util_avg_period=600 disassoc_low_ack=1 skip_inactivity_poll=0 preamble=1 wmm_enabled=1 ignore_broadcast_ssid=0 uapsd_advertisement_enabled=1 utf8_ssid=1 multi_ap=0 auth_algs=1 wpa=0 ssid=OpenWrt bridge=br-lan wds_bridge= snoop_iface=br-lan qos_map_set=0,0,2,16,1,1,255,255,18,22,24,38,40,40,44,46,48,56 #default_macaddr nas_identifier=beac26b8f7dd  (phy phy0) --> new PHY
Thu Nov 16 06:10:04 2023 kern.info kernel: [   54.853461] br-lan: port 2(wlan0) entered blocking state
Thu Nov 16 06:10:04 2023 kern.info kernel: [   54.864091] br-lan: port 2(wlan0) entered disabled state
Thu Nov 16 06:10:04 2023 kern.info kernel: [   54.875051] device wlan0 entered promiscuous mode
Thu Nov 16 06:10:04 2023 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Thu Nov 16 06:10:04 2023 kern.info kernel: [   55.061732] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Thu Nov 16 06:10:04 2023 kern.info kernel: [   55.074644] br-lan: port 2(wlan0) entered blocking state
Thu Nov 16 06:10:04 2023 kern.info kernel: [   55.085231] br-lan: port 2(wlan0) entered forwarding state
Thu Nov 16 06:10:04 2023 daemon.notice netifd: Network device 'wlan0' link is up
Thu Nov 16 06:10:04 2023 daemon.notice hostapd: wlan0: interface state COUNTRY_UPDATE->ENABLED
Thu Nov 16 06:10:04 2023 daemon.notice hostapd: wlan0: AP-ENABLED
Thu Nov 16 06:10:05 2023 daemon.notice netifd: wan (1958): udhcpc: broadcasting discover
Thu Nov 16 06:10:05 2023 daemon.notice netifd: Interface 'wwan' is enabled
Thu Nov 16 06:10:07 2023 daemon.notice netifd: Network device 'wlan0' link is down
Thu Nov 16 06:10:07 2023 kern.info kernel: [   57.269780] br-lan: port 2(wlan0) entered disabled state
Thu Nov 16 06:10:07 2023 daemon.notice wpa_supplicant[1181]: Set new config for phy phy0
Thu Nov 16 06:10:07 2023 daemon.notice netifd: Wireless device 'radio0' is now up
Thu Nov 16 06:10:43 2023 authpriv.info dropbear[2238]: Child connection from 192.168.1.200:50841
Thu Nov 16 06:10:43 2023 authpriv.notice dropbear[2238]: Pubkey auth succeeded for 'root' with ssh-rsa key SHA256:Xr90mkOun60snY5arKBDKqpNti0cppeKBkVw7S7mz0E from 192.168.1.200:50841

Thanks in advance.

After following the suggestion on the post How to manually switch wifi driver on OpenWrt and adding the wpad-mini package, I can see one SSID now when running the iw scan command

iw phy0-sta0 scan
BSS 3c:90:66:4c:ca:80(on phy0-sta0) -- associated
	last seen: 176978.116s [boottime]
	TSF: 3389189259162 usec (39d, 05:26:29)
	freq: 2442
	beacon interval: 100 TUs
	capability: ESS (0x0431)
	signal: -78.00 dBm
	last seen: 150 ms ago
	Information elements from Probe Response frame:
	SSID: def
	RSN:	 * Version: 1
		 * Group cipher: CCMP
		 * Pairwise ciphers: CCMP
		 * Authentication suites: PSK
		 * Capabilities: 16-PTKSA-RC 1-GTKSA-RC (0x000c)

However, when the distance between the device and the router with SSID "def" is over three meters, the signal will not show again as shown below:

root@MangoInit:~# iw phy0-sta0 scan
root@MangoInit:~#

I am using the mt76 driver from OpenWRT 23.05.2:

lsmod | grep 'mt76'
cfg80211              280864  5 mt76x2_common,mt76x02_lib,mt7603e,mt76,mac80211
mac80211              569664  4 mt76x2e,mt76x02_lib,mt7603e,mt76
mt76                   48032  4 mt76x2e,mt76x2_common,mt76x02_lib,mt7603e
mt7603e                38752  0
mt76x02_lib            40320  2 mt76x2e,mt76x2_common
mt76x2_common          11488  1 mt76x2e
mt76x2e                10176  0

Posts suggest vendor MT76 drivers, like the one here MT76 precompiled drivers (Mediatek wifi is useless in MT7628) . Should I use the vendor MT76 or the one that comes along with OpenWRT 23.05.2?

Thanks in advance

Steven

:tada: Issue Solved! :tada:

After several days of digging, I'm thrilled to announce that we've resolved the issue! It turns out that populating the calibrate data to the 'Factory' mtd did the trick.

A big thank you to everyone who contributed their insights and assistance along the way. Your support made all the difference!

Looking forward to smoother sailing ahead!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.