Linksys rt3200: radio0 device is not active (mt7622)

Hello,
I am struggling with lastest
openwrt-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade
on a freshly installed belkin rt3200.
I can't enable radio0 ( on 2ghz freqs), radio1 is working fine.
I am on OpenWrt SNAPSHOT r18125-b764cb9e5b
I tried cleaning configuration and restarting from scratch but I always never manage to enable radio0
I am attaching relevant config and log
can anyone please point me to some hint?
Thanks
A.


config wifi-device 'radio0'
        option type 'mac80211'
        option path 'platform/18000000.wmac'
        option channel '1'
        option band '2g'
        option htmode 'HT20'
        option country 'IT'
        option cell_density '0'

config wifi-device 'radio1'
        option type 'mac80211'
        option path '1a143000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
        option channel '36'
        option band '5g'
        option htmode 'HE80'
        option country 'IT'
        option cell_density '0'

----system log----
Sun Dec 26 12:52:20 2021 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Sun Dec 26 12:52:20 2021 daemon.err odhcp6c[2205]: Failed to send SOLICIT message to ff02::1:2 (Address not available)
Sun Dec 26 12:52:20 2021 daemon.err odhcpd[1873]: Failed to send to ff02::1%lan@br-lan (Address not available)
Sun Dec 26 12:52:36 2021 daemon.err odhcpd[1873]: Failed to send to ff02::1%lan@br-lan (Address not available)
Sun Dec 26 12:52:37 2021 kern.err kernel: [   29.325397] mt7622-wmac 18000000.wmac: Message 80000010 (seq 1) timeout
Sun Dec 26 12:52:37 2021 kern.err kernel: [   29.332016] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Dec 26 12:52:37 2021 kern.err kernel: [   29.555667] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Dec 26 12:52:37 2021 kern.err kernel: [   29.775623] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Dec 26 12:52:37 2021 kern.err kernel: [   29.995627] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Dec 26 12:52:37 2021 kern.err kernel: [   30.215620] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Dec 26 12:52:38 2021 kern.err kernel: [   30.435634] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Dec 26 12:52:38 2021 kern.err kernel: [   30.655616] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Dec 26 12:52:38 2021 kern.err kernel: [   30.875621] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Dec 26 12:52:38 2021 kern.err kernel: [   31.095632] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Dec 26 12:52:38 2021 kern.err kernel: [   31.315639] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Dec 26 12:52:39 2021 daemon.err hostapd: Could not set interface wlan0 flags (UP): I/O error
Sun Dec 26 12:52:39 2021 daemon.err hostapd: nl80211: Could not set interface 'wlan0' UP
Sun Dec 26 12:52:39 2021 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Sun Dec 26 12:52:39 2021 daemon.err hostapd: nl80211 driver initialization failed.
Sun Dec 26 12:52:39 2021 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Sun Dec 26 12:52:39 2021 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Sun Dec 26 12:52:39 2021 daemon.err odhcp6c[2205]: Failed to send RS (Address not available)
Sun Dec 26 12:52:39 2021 kern.err kernel: [   31.535622] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
------ /var/run/hostapd-phy0.conf----------
driver=nl80211
logger_syslog=127
logger_syslog_level=2
logger_stdout=127
logger_stdout_level=2
country_code=IT
ieee80211d=1
hw_mode=g
supported_rates=60 90 120 180 240 360 480 540
basic_rates=60 120 240
beacon_int=100
dtim_period=2
channel=1
chanlist=1


ieee80211n=1
ht_coex=0
ht_capab=[LDPC][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1]

radio_config_id=644f1e4d25de0d4218d6867f8f2ea976
interface=wlan0
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
wpa_passphrase=xxxxxx
wpa_psk_file=/var/run/hostapd-wlan0.psk
auth_algs=1
wpa=2
wpa_pairwise=CCMP
ssid=myssid
bridge=br-lan
wds_bridge=
snoop_iface=br-lan
wpa_disable_eapol_key_retries=0
wpa_key_mgmt=WPA-PSK
okc=0
disable_pmksa_caching=1
dynamic_vlan=0
vlan_naming=1
vlan_no_bridge=1
vlan_file=/var/run/hostapd-wlan0.vlan
qos_map_set=0,0,2,16,1,1,255,255,18,22,24,38,40,40,44,46,48,56
config_id=61b8fc1289c27f0698f45495ba17f3c7
bssid=e8:9f:80:d5:d8:

Oh, that looks weird. Please check if the firmware files /lib/firmware/mediatek/mt7622_rom_patch.bin and /lib/firmware/mediatek/mt7622_n9.bin are in place (why ever they should be missing?).
Next step is to check for EEPROM data in hexdump -C /dev/mtd2 which should start with

00000000  22 76 .. ..

If both are present and you are using an official build, I'm afraid the hardware has a problem (which may even be something as odd as the power supply being too weak).

1 Like

Hi,
thanks for your answer
everything looks in place:

root@GolemWRT6:~# ls -al /lib/firmware/mediatek/mt7622_rom_patch.bin
-rw-r--r--    1 root     root         82110 Dec 24 23:15 /lib/firmware/mediatek/mt7622_rom_patch.bin

root@GolemWRT6:~# ls -al /lib/firmware/mediatek/mt7622_n9.bin
-rw-r--r--    1 root     root        300072 Dec 24 23:15 /lib/firmware/mediatek/mt7622_n9.bin

hexdump -C /dev/mtd2

00000000  22 76 02 00 e8 9f 80 d5  d8 04 00 00 00 00 00 00  |"v..............|
00000000  22 76 02 00 e8 9f 80 d5  d8 04 00 00 00 00 00 00  |"v..............|
00000010  83 55 4b 00 00 00 00 00  00 00 00 00 00 00 00 00  |.UK.............|
...

please note that I tested the router before flashing and with the stock belkin firmware the 2ghz radio was working.

I will try moving the power supply thanks

happy holidays
A.

8(
even changing the socket always gives me

Mon Dec 27 09:11:50 2021 kern.err kernel: [   29.325846] mt7622-wmac 18000000.wmac: Message 80000010 (seq 1) timeout
Mon Dec 27 09:11:50 2021 kern.err kernel: [   29.332463] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Mon Dec 27 09:11:50 2021 daemon.err odhcpd[1876]: Failed to send to ff02::1%lan@br-lan (Address not available)
Mon Dec 27 09:11:51 2021 kern.err kernel: [   29.556113] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Mon Dec 27 09:11:51 2021 kern.err kernel: [   29.776094] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Mon Dec 27 09:11:51 2021 kern.err kernel: [   29.996086] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Mon Dec 27 09:11:51 2021 kern.err kernel: [   30.216080] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Mon Dec 27 09:11:51 2021 kern.err kernel: [   30.436084] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Mon Dec 27 09:11:52 2021 kern.err kernel: [   30.656059] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Mon Dec 27 09:11:52 2021 kern.err kernel: [   30.876071] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Mon Dec 27 09:11:52 2021 kern.err kernel: [   31.096070] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Mon Dec 27 09:11:52 2021 kern.err kernel: [   31.316080] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Mon Dec 27 09:11:52 2021 daemon.err hostapd: Could not set interface wlan0 flags (UP): I/O error