mt76 icon indicating copy to clipboard operation
mt76 copied to clipboard

Firmware Resets

Open Mushoz opened this issue 4 years ago • 53 comments

I have upgraded my DIR-860L device from 19.07.1 to 19.07.4 (which means the mt76 driver received this update: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=9da31d0fb402f5ee3f3973ee07625942634a38fb) and now my kernel logs are getting spammed by this, over and over and over again:

[303621.090349] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[303621.101702] mt76x2e 0000:01:00.0: Build: 1
[303621.110451] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[303621.138812] mt76x2e 0000:01:00.0: Firmware running!
[303621.158800] ieee80211 phy0: Hardware restart was requested
[305405.459830] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[305405.471014] mt76x2e 0000:01:00.0: Build: 1
[305405.479389] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[305405.508163] mt76x2e 0000:01:00.0: Firmware running!
[305405.528274] ieee80211 phy0: Hardware restart was requested
[305441.699606] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[305441.710760] mt76x2e 0000:01:00.0: Build: 1
[305441.719123] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[305441.747991] mt76x2e 0000:01:00.0: Firmware running!
[305441.768070] ieee80211 phy0: Hardware restart was requested
[305541.329064] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[305541.340234] mt76x2e 0000:01:00.0: Build: 1
[305541.348868] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[305541.377404] mt76x2e 0000:01:00.0: Firmware running!
[305541.397528] ieee80211 phy0: Hardware restart was requested
[312081.304855] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[312081.316019] mt76x2e 0000:01:00.0: Build: 1
[312081.324483] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[312081.352923] mt76x2e 0000:01:00.0: Firmware running!
[312081.373055] ieee80211 phy0: Hardware restart was requested

I experience small hiccups in the my connection, supposedly due to the firmware resetting. I did see these message very rarely on 19.07.1 as well, but not as often as I do on 19.07.4. If you need any additional information for debugging this, please let me know!

Mushoz avatar Sep 14 '20 08:09 Mushoz

same problem on my 7621 or 7621 devices

ptpt52 avatar Sep 15 '20 22:09 ptpt52

@ptpt52 there are many different mt7621 devices, with many different WiFi chips supported by the mt76 driver. With which devices are you having issues? Might help us pinpoint the issue.

Mushoz avatar Sep 16 '20 05:09 Mushoz

Same problem here too (mt7621, D-Link 860L). Only difference is that my PPPoE connection is also dropping.

This is the WIFI issue (only affecting 2.4GHz btw):

 72.414731] ieee80211 phy1: Hardware restart was requested
[   73.458692] mt76x2e 0000:02:00.0: MCU message 2 (seq 15) timed out
[   73.827737] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[   73.838746] mt76x2e 0000:02:00.0: Build: 1
[   73.846963] mt76x2e 0000:02:00.0: Build Time: 201507311614____
[   73.874621] mt76x2e 0000:02:00.0: Firmware running!
[   73.886742] ieee80211 phy1: Hardware restart was requested
[   74.930615] mt76x2e 0000:02:00.0: MCU message 2 (seq 3) timed out
[   75.299752] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[   75.310734] mt76x2e 0000:02:00.0: Build: 1
[   75.318920] mt76x2e 0000:02:00.0: Build Time: 201507311614____
[   75.346629] mt76x2e 0000:02:00.0: Firmware running!
[   75.358757] ieee80211 phy1: Hardware restart was requested
[   76.402616] mt76x2e 0000:02:00.0: MCU message 2 (seq 6) timed out
[   76.771890] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[   76.782952] mt76x2e 0000:02:00.0: Build: 1
[   76.791166] mt76x2e 0000:02:00.0: Build Time: 201507311614____
[   76.818650] mt76x2e 0000:02:00.0: Firmware running!
[   76.830887] ieee80211 phy1: Hardware restart was requested

This is the PPPoE:

[ 6654.729554] mt7530 mdio-bus:1f wan: Link is Down
[ 6654.744496] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[ 6654.758093] 8021q: adding VLAN 0 to HW filter on device wan
[ 6654.868874] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[ 6654.882354] 8021q: adding VLAN 0 to HW filter on device wan
[ 6658.978879] mt7530 mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control off
[ 6674.357221] pppoe-wan: renamed from ppp0
[ 6977.846481] mt7530 mdio-bus:1f wan: Link is Down
[ 6977.863373] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[ 6977.877022] 8021q: adding VLAN 0 to HW filter on device wan
[ 6978.014972] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[ 6978.028593] 8021q: adding VLAN 0 to HW filter on device wan
[ 6982.114198] mt7530 mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control off
[ 6987.476699] pppoe-wan: renamed from ppp0
[ 7417.007646] mt7530 mdio-bus:1f wan: Link is Down
[ 7417.022711] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[ 7417.036385] 8021q: adding VLAN 0 to HW filter on device wan
[ 7417.147297] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[ 7417.160884] 8021q: adding VLAN 0 to HW filter on device wan
[ 7421.249310] mt7530 mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control off
[ 7436.616196] pppoe-wan: renamed from ppp0
[ 7712.923390] mt7530 mdio-bus:1f wan: Link is Down
[ 7712.939600] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[ 7712.953338] 8021q: adding VLAN 0 to HW filter on device wan
[ 7713.097398] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[ 7713.110920] 8021q: adding VLAN 0 to HW filter on device wan
[ 7717.216718] mt7530 mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control off
[ 7722.577165] pppoe-wan: renamed from ppp0

dchard avatar Sep 17 '20 23:09 dchard

Tried with today's master, and the issue is the same: the 2.4GHz wifi cannot be enabled, otherwise this happens (every second, repeatedly):

[  929.185194] mt76x2e 0000:02:00.0: MCU message 2 (seq 15) timed out
[  929.554328] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[  929.565341] mt76x2e 0000:02:00.0: Build: 1
[  929.573601] mt76x2e 0000:02:00.0: Build Time: 201507311614____
[  929.601191] mt76x2e 0000:02:00.0: Firmware running!
[  929.613344] ieee80211 phy1: Hardware restart was requested

dchard avatar Sep 19 '20 11:09 dchard

Same problem on Xiaomi R3G router with openwrt 19.07.4

vgmz95 avatar Sep 23 '20 05:09 vgmz95

Adding a comment that I do NOT see this error on a ZBT-WE3526 (7621A/7603) on 19.07.4 I USED to see it regularly (a few times a week) on 19.07.3, so the new code on the same hardware with the same clients seems better (in terms of this error) with .4

Maybe something in how the ROM data is being interpreted on some devices?

EDIT 28 days later- I have seen this again, very sporadically, but it happens even after 7+ days of uptime on a very busy network. So longer runtimes before the occurrence, but still there.

JFtico avatar Sep 24 '20 20:09 JFtico

I'm also seeing this on DIR-860L with snaphot r14572-4682d4d770. Works fine up to 19.07.3.

[  768.364765] ieee80211 phy1: Hardware restart was requested
[  769.408626] mt76x2e 0000:02:00.0: MCU message 2 (seq 12) timed out
[  769.777815] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[  769.788791] mt76x2e 0000:02:00.0: Build: 1
[  769.796981] mt76x2e 0000:02:00.0: Build Time: 201507311614____
[  769.824617] mt76x2e 0000:02:00.0: Firmware running!
[  769.836817] ieee80211 phy1: Hardware restart was requested
[  770.880625] mt76x2e 0000:02:00.0: MCU message 2 (seq 15) timed out
[  771.249762] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[  771.260733] mt76x2e 0000:02:00.0: Build: 1
[  771.268924] mt76x2e 0000:02:00.0: Build Time: 201507311614____
[  771.296616] mt76x2e 0000:02:00.0: Firmware running!
[  771.308751] ieee80211 phy1: Hardware restart was requested

garyttirn avatar Sep 27 '20 09:09 garyttirn

Same MCU time outs on 860L B1 here as well, occurring on both dd-wrt and openrwrt, appears to only affect 5GHz radio. Stock firmware runs without any radio issues - eliminating hardware fault hypothesis.

headnail avatar Nov 21 '20 15:11 headnail

I just bumped to a recent master build (d346beb08c3a7867497000dc382635ee8ea0eedb) and I'm bumping into the hardware restart issue as well.

Borromini avatar Dec 06 '20 17:12 Borromini

Newifi-D2 with stable 19.07.5, same here. 5G WiFi not working at all:

Sun Dec 6 08:27:24 2020 kern.info kernel: [ 1812.411269] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00 Sun Dec 6 08:27:24 2020 kern.info kernel: [ 1812.416754] mt76x2e 0000:01:00.0: Build: 1 Sun Dec 6 08:27:24 2020 kern.info kernel: [ 1812.420953] mt76x2e 0000:01:00.0: Build Time: 201507311614____ Sun Dec 6 08:27:24 2020 kern.info kernel: [ 1812.449560] mt76x2e 0000:01:00.0: Firmware running! Sun Dec 6 08:27:24 2020 kern.info kernel: [ 1812.459721] ieee80211 phy1: Hardware restart was requested

sbarj avatar Jan 06 '21 18:01 sbarj

My 2.4G wifi alse couldn't start.
Log is :

[   13.628773] wireguard: WireGuard 1.0.20200611 loaded. See www.wireguard.com for information.
[   13.637245] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <[email protected]>. All Rights Reserved.
[   13.661392] xt_time: kernel timezone is -0000
[   13.735279] bus=0x1, slot = 0x0, irq=0xff
[   13.739327] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   13.773087] mt7603e 0000:01:00.0: Refused to change power state, currently in D3
[   13.780649] mt7603e 0000:01:00.0: ASIC revision: 0000
[   13.786804] ------------[ cut here ]------------
[   13.791455] WARNING: CPU: 0 PID: 583 at /home/wang/data/OpenSource/openwrt-19.07.6/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2021-02-01-4ba1709c/mt7603/eeprom.c:26 mt7603_eeprom_init+0x16c/0x514 [mt7603e]
[   13.811024] Modules linked in: mt7603e(+) mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_socket xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TPROXY xt_TCPMSS xt_REDIRECT xt_LOG xt_FLOWOFFLOAD wireguard ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda slhc nf_socket_ipv6 nf_socket_ipv4 nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_netlink macvlan iptable_mangle iptable_filter ip_tables crc_ccitt compat ledtrig_usbport xt_set ip_set_list_set ip_set_hash_netportnet ip_set_hash_netport ip_set_hash_netnet ip_set_hash_netiface ip_set_hash_net
[   13.881384]  ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6t_NPT ip6t_MASQUERADE nf_nat_masquerade_ipv6 nf_nat nf_conntrack nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 msdos ip6_udp_tunnel udp_tunnel tun vfat fat ntfs nls_utf8 nls_iso8859_1 nls_cp437 uas usb_storage leds_gpio xhci_plat_hcd xhci_pci xhci_mtk xhci_hcd ehci_platform sd_mod scsi_mod ehci_hcd gpio_button_hotplug ext4 mbcache jbd2 exfat usbcore nls_base usb_common crc32c_generic
[   13.942911] CPU: 0 PID: 583 Comm: kmodloader Not tainted 4.14.215 #0
[   13.949234] Stack : 00000000 000f0000 82e10000 8007297c 805b0000 8054c5e8 00000000 00000000
[   13.957570]         80517f6c 824f5a64 8393e31c 80586907 80512d00 00000001 824f5a08 ac07f5ce
[   13.965906]         00000000 00000000 806f0000 000054f0 00000000 00000103 00000007 00000000
[   13.974239]         00000000 80590000 000e633f 00000000 80000000 805b0000 00000000 82e08c4c
[   13.982571]         82e076ec 0000001a 83b27880 000f0000 00000003 8029c2a8 00000000 806f0000
[   13.990903]         ...
[   13.993341] Call Trace:
[   13.995799] [<8000c7b0>] show_stack+0x58/0x100
[   14.000228] [<80454be4>] dump_stack+0xa4/0xe0
[   14.004575] [<8002f798>] __warn+0xe0/0x138
[   14.008652] [<8002f880>] warn_slowpath_null+0x1c/0x2c
[   14.013702] [<82e076ec>] mt7603_eeprom_init+0x16c/0x514 [mt7603e]
[   14.019788] [<82e01da0>] mt7603_register_device+0x150/0xba4 [mt7603e]
[   14.026219] [<82e00188>] init_module+0x18188/0x19270 [mt7603e]
[   14.032103] ---[ end trace eb764efd0c3d03b3 ]---
[   16.083866] mt7603e 0000:01:00.0: Firmware Version: _e1_drv_tv
[   16.089695] mt7603e 0000:01:00.0: Build Time: 20140313215548
[   17.112836] mt7603e 0000:01:00.0: Timeout waiting for ROM code to become ready
[   17.120232] mt7603e: probe of 0000:01:00.0 failed with error -5
[   17.136939] bus=0x2, slot = 0x1, irq=0xff
[   17.141152] mt76x2e 0000:02:00.0: ASIC revision: 76120044
[   17.803509] mt76x2e 0000:02:00.0: ROM patch build: 20141115060606a
[   17.813346] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[   17.818824] mt76x2e 0000:02:00.0: Build: 1
[   17.822941] mt76x2e 0000:02:00.0: Build Time: 201507311614____
[   17.842899] mt76x2e 0000:02:00.0: Firmware running!
[   17.851018] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   17.858162] PPP generic driver version 2.4.2
[   17.864246] NET: Registered protocol family 24

The mt76 driver is:

#opkg list-installed | grep mt76

kmod-mt76-core - 4.14.215+2021-02-01-4ba1709c-1
kmod-mt7603 - 4.14.215+2021-02-01-4ba1709c-1
kmod-mt76x02-common - 4.14.215+2021-02-01-4ba1709c-1
kmod-mt76x2 - 4.14.215+2021-02-01-4ba1709c-1
kmod-mt76x2-common - 4.14.215+2021-02-01-4ba1709c-1

siwind avatar Feb 04 '21 13:02 siwind

Same MCU time outs on 860L B1 here as well, occurring on both dd-wrt and openrwrt, appears to only affect 5GHz radio. Stock firmware runs without any radio issues - eliminating hardware fault hypothesis.

I see the same in the log file. 5GHz is not stable in 19.07.x:

Model:D-Link DIR-860L B1 Architecture: MediaTek MT7621 ver:1 eco:3 Software: OpenWrt 19.07.7 r11306-c4a6851c72 / LuCI openwrt-19.07 branch git-21.086.32701-7456e2a

Errors in log: Mon Apr 5 19:54:00 2021 kern.err kernel: [ 8536.871237] mt76x2e 0000:01:00.0: MCU message 31 (seq 8) timed out Mon Apr 5 19:54:00 2021 kern.info kernel: [ 8536.932817] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00 Mon Apr 5 19:54:00 2021 kern.info kernel: [ 8536.932836] mt76x2e 0000:01:00.0: Build: 1 Mon Apr 5 19:54:00 2021 kern.info kernel: [ 8536.932844] mt76x2e 0000:01:00.0: Build Time: 201507311614 Mon Apr 5 19:54:00 2021 kern.info kernel: [ 8536.951281] mt76x2e 0000:01:00.0: Firmware running! Mon Apr 5 19:54:00 2021 kern.info kernel: [ 8536.961405] ieee80211 phy0: Hardware restart was requested Mon Apr 5 20:28:47 2021 kern.err kernel: [10624.060218] mt76x2e 0000:01:00.0: MCU message 31 (seq 1) timed out Mon Apr 5 20:28:47 2021 kern.info kernel: [10624.121807] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00 Mon Apr 5 20:28:47 2021 kern.info kernel: [10624.121826] mt76x2e 0000:01:00.0: Build: 1 Mon Apr 5 20:28:47 2021 kern.info kernel: [10624.121834] mt76x2e 0000:01:00.0: Build Time: 201507311614 Mon Apr 5 20:28:47 2021 kern.info kernel: [10624.150387] ieee80211 phy0: Hardware restart was requested Mon Apr 5 20:28:47 2021 kern.info kernel: [10624.140242] mt76x2e 0000:01:00.0: Firmware running!

rolandvans avatar Apr 14 '21 11:04 rolandvans

At this point, with 21.02 being around the corner, I'd advise trying that. Has a much newer mt76 version.

Builds can be grabbed here: https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/ramips/mt7621/ (include LuCI if you're worried about that).

Borromini avatar Apr 14 '21 12:04 Borromini

At this point, with 21.02 being around the corner, I'd advise trying that. Has a much newer mt76 version.

Builds can be grabbed here: https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/ramips/mt7621/ (include LuCI if you're worried about that).

Thanks! I will try the new version.

rolandvans avatar Apr 14 '21 14:04 rolandvans

I have tried 21.02.0-rc3 on a Netgear R6220 and I see the firmware resets too:

[13527.715355] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00 [13527.726533] mt76x2e 0000:01:00.0: Build: 1 [13527.734913] mt76x2e 0000:01:00.0: Build Time: 201507311614____ [13527.766324] mt76x2e 0000:01:00.0: Firmware running! [13527.782783] ieee80211 phy1: Hardware restart was requested [14133.839264] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00 [14133.850442] mt76x2e 0000:01:00.0: Build: 1 [14133.858685] mt76x2e 0000:01:00.0: Build Time: 201507311614____ [14133.894093] mt76x2e 0000:01:00.0: Firmware running! [14133.906315] ieee80211 phy1: Hardware restart was requested

phy1 is the 5 GHz radio.

robho avatar Jun 24 '21 20:06 robho

@robho Maybe something similar to https://github.com/openwrt/openwrt/commit/af1b6799c6ec9af7a30d63a5ddfed20f443b991c could help you (need to adapt your device DTS and recompile).

Borromini avatar Jul 06 '21 15:07 Borromini

This issue seems to persist in 21.02.0 for the DIR-860L:

Wed Sep  8 15:13:21 2021 kern.info kernel: [102481.248692] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
Wed Sep  8 15:13:21 2021 kern.info kernel: [102481.259854] mt76x2e 0000:01:00.0: Build: 1
Wed Sep  8 15:13:21 2021 kern.info kernel: [102481.268247] mt76x2e 0000:01:00.0: Build Time: 201507311614____
Wed Sep  8 15:13:21 2021 kern.info kernel: [102481.295534] mt76x2e 0000:01:00.0: Firmware running!
Wed Sep  8 15:13:21 2021 kern.info kernel: [102481.307691] ieee80211 phy0: Hardware restart was requested
Wed Sep  8 15:14:01 2021 kern.info kernel: [102520.956179] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
Wed Sep  8 15:14:01 2021 kern.info kernel: [102520.967339] mt76x2e 0000:01:00.0: Build: 1
Wed Sep  8 15:14:01 2021 kern.info kernel: [102520.975703] mt76x2e 0000:01:00.0: Build Time: 201507311614____
Wed Sep  8 15:14:01 2021 kern.info kernel: [102521.003034] mt76x2e 0000:01:00.0: Firmware running!
Wed Sep  8 15:14:01 2021 kern.info kernel: [102521.015263] ieee80211 phy0: Hardware restart was requested
Wed Sep  8 15:15:00 2021 kern.info kernel: [102580.819460] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
Wed Sep  8 15:15:00 2021 kern.info kernel: [102580.830618] mt76x2e 0000:01:00.0: Build: 1
Wed Sep  8 15:15:00 2021 kern.info kernel: [102580.838982] mt76x2e 0000:01:00.0: Build Time: 201507311614____
Wed Sep  8 15:15:00 2021 kern.info kernel: [102580.866277] mt76x2e 0000:01:00.0: Firmware running!
Wed Sep  8 15:15:00 2021 kern.info kernel: [102580.878503] ieee80211 phy0: Hardware restart was requested

noctux avatar Sep 08 '21 21:09 noctux

Confirmed on Newifi-D2. OpenWrt SNAPSHOT, r17566-96e05e2e36

Fri Sep 24 12:18:56 2021 kern.info kernel: [88785.900774] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
Fri Sep 24 12:18:56 2021 kern.info kernel: [88785.906262] mt76x2e 0000:01:00.0: Build: 1
Fri Sep 24 12:18:56 2021 kern.info kernel: [88785.910412] mt76x2e 0000:01:00.0: Build Time: 201507311614____
Fri Sep 24 12:18:56 2021 kern.info kernel: [88785.939466] mt76x2e 0000:01:00.0: Firmware running!
Fri Sep 24 12:19:01 2021 kern.info kernel: [88790.570742] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
Fri Sep 24 12:19:01 2021 kern.info kernel: [88790.576227] mt76x2e 0000:01:00.0: Build: 1
Fri Sep 24 12:19:01 2021 kern.info kernel: [88790.580384] mt76x2e 0000:01:00.0: Build Time: 201507311614____
Fri Sep 24 12:19:01 2021 kern.info kernel: [88790.609510] mt76x2e 0000:01:00.0: Firmware running!
Fri Sep 24 12:21:33 2021 kern.info kernel: [88943.000822] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
Fri Sep 24 12:21:33 2021 kern.info kernel: [88943.006305] mt76x2e 0000:01:00.0: Build: 1
Fri Sep 24 12:21:33 2021 kern.info kernel: [88943.010499] mt76x2e 0000:01:00.0: Build Time: 201507311614____
Fri Sep 24 12:21:33 2021 kern.info kernel: [88943.039463] mt76x2e 0000:01:00.0: Firmware running!

nquest avatar Sep 25 '21 23:09 nquest

Same issue seems to persist in OpenWrt 21.02.1 r16325-88151b8303 for Xiaomi MiWiFi Mini : This WIFI issue (only affecting 5 GHz)

Mon Dec 27 06:52:47 2021 kern.info kernel: [ 2025.470732] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00 Mon Dec 27 06:52:47 2021 kern.info kernel: [ 2025.476398] mt76x2e 0000:01:00.0: Build: 1 Mon Dec 27 06:52:47 2021 kern.info kernel: [ 2025.480623] mt76x2e 0000:01:00.0: Build Time: 201507311614____ Mon Dec 27 06:52:47 2021 kern.info kernel: [ 2025.497791] mt76x2e 0000:01:00.0: Firmware running! Mon Dec 27 06:52:47 2021 kern.info kernel: [ 2025.504631] ieee80211 phy0: Hardware restart was requested

This issue seems to persist in 21.02.0 for the DIR-860L:

Wed Sep  8 15:13:21 2021 kern.info kernel: [102481.248692] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
Wed Sep  8 15:13:21 2021 kern.info kernel: [102481.259854] mt76x2e 0000:01:00.0: Build: 1
Wed Sep  8 15:13:21 2021 kern.info kernel: [102481.268247] mt76x2e 0000:01:00.0: Build Time: 201507311614____
Wed Sep  8 15:13:21 2021 kern.info kernel: [102481.295534] mt76x2e 0000:01:00.0: Firmware running!
Wed Sep  8 15:13:21 2021 kern.info kernel: [102481.307691] ieee80211 phy0: Hardware restart was requested
Wed Sep  8 15:14:01 2021 kern.info kernel: [102520.956179] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
Wed Sep  8 15:14:01 2021 kern.info kernel: [102520.967339] mt76x2e 0000:01:00.0: Build: 1
Wed Sep  8 15:14:01 2021 kern.info kernel: [102520.975703] mt76x2e 0000:01:00.0: Build Time: 201507311614____
Wed Sep  8 15:14:01 2021 kern.info kernel: [102521.003034] mt76x2e 0000:01:00.0: Firmware running!
Wed Sep  8 15:14:01 2021 kern.info kernel: [102521.015263] ieee80211 phy0: Hardware restart was requested
Wed Sep  8 15:15:00 2021 kern.info kernel: [102580.819460] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
Wed Sep  8 15:15:00 2021 kern.info kernel: [102580.830618] mt76x2e 0000:01:00.0: Build: 1
Wed Sep  8 15:15:00 2021 kern.info kernel: [102580.838982] mt76x2e 0000:01:00.0: Build Time: 201507311614____
Wed Sep  8 15:15:00 2021 kern.info kernel: [102580.866277] mt76x2e 0000:01:00.0: Firmware running!
Wed Sep  8 15:15:00 2021 kern.info kernel: [102580.878503] ieee80211 phy0: Hardware restart was requested

rizalwidhi avatar Dec 27 '21 00:12 rizalwidhi

Same issue for me too, on OpenWrt 21.02.1 r16325-88151b8303 (only 5Ghz) for Xiaomi Mi Wifi 3G :

Thu Jan 6 20:11:07 2022 kern.info kernel: [ 6370.319507] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00 Thu Jan 6 20:11:07 2022 kern.info kernel: [ 6370.325017] mt76x2e 0000:02:00.0: Build: 1 Thu Jan 6 20:11:07 2022 kern.info kernel: [ 6370.329199] mt76x2e 0000:02:00.0: Build Time: 201507311614____ Thu Jan 6 20:11:07 2022 kern.info kernel: [ 6370.350322] mt76x2e 0000:02:00.0: Firmware running! Thu Jan 6 20:11:07 2022 kern.info kernel: [ 6370.358439] ieee80211 phy1: Hardware restart was requested Thu Jan 6 20:15:35 2022 kern.info kernel: [ 6638.456983] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00 Thu Jan 6 20:15:35 2022 kern.info kernel: [ 6638.462496] mt76x2e 0000:02:00.0: Build: 1 Thu Jan 6 20:15:35 2022 kern.info kernel: [ 6638.466673] mt76x2e 0000:02:00.0: Build Time: 201507311614____ Thu Jan 6 20:15:35 2022 kern.info kernel: [ 6638.487764] mt76x2e 0000:02:00.0: Firmware running! Thu Jan 6 20:15:35 2022 kern.info kernel: [ 6638.496018] ieee80211 phy1: Hardware restart was requested Thu Jan 6 20:16:20 2022 kern.info kernel: [ 6683.581268] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00 Thu Jan 6 20:16:20 2022 kern.info kernel: [ 6683.586785] mt76x2e 0000:02:00.0: Build: 1 Thu Jan 6 20:16:20 2022 kern.info kernel: [ 6683.590923] mt76x2e 0000:02:00.0: Build Time: 201507311614____ Thu Jan 6 20:16:20 2022 kern.info kernel: [ 6683.611988] mt76x2e 0000:02:00.0: Firmware running! Thu Jan 6 20:16:20 2022 kern.info kernel: [ 6683.620232] ieee80211 phy1: Hardware restart was requested

opkg list-installed | grep mt76 kmod-mt76-core - 5.4.154+2021-06-06-22b69033-4 kmod-mt7603 - 5.4.154+2021-06-06-22b69033-4 kmod-mt76x02-common - 5.4.154+2021-06-06-22b69033-4 kmod-mt76x2 - 5.4.154+2021-06-06-22b69033-4 kmod-mt76x2-common - 5.4.154+2021-06-06-22b69033-4

Additional statistics : If I look for the string ieee80211 phy1: Hardware restart was requested in my logs, the string appeared 21 times in 2021, and already 102 times in 2022 .. (Most of occurrences are from Dec 2021 and Jan 2022)

weimdall avatar Jan 07 '22 01:01 weimdall

The mt76 uses the version below and no more firmware reset issues. PKG_SOURCE_DATE:=2018-11-09 PKG_SOURCE_VERSION:=ffccb48c5082b2c6f43a0235b77b62ca388810f0 PKG_MIRROR_HASH:=bff0063db1a1b1353f59aad16abad4dd93ceeb4c672811ad864cebe0e39c7d8d

jxph1123 avatar Jan 10 '22 04:01 jxph1123

The mt76 uses the version below and no more firmware reset issues. PKG_SOURCE_DATE:=2018-11-09 PKG_SOURCE_VERSION:=ffccb48c5082b2c6f43a0235b77b62ca388810f0 PKG_MIRROR_HASH:=bff0063db1a1b1353f59aad16abad4dd93ceeb4c672811ad864cebe0e39c7d8d

Well, currently I have the version : PKG_SOURCE_DATE:=2021-12-03 PKG_SOURCE_VERSION:=678071ef70297b7264661c356ddb3c8cf7f3c87b PKG_MIRROR_HASH:=b1f8613f7c65ca6a893f83ed9efc3f7ce72b9b4904fd11b89264f57f4f2a3b5e

But going back to a version from 2018 sound like a bad idea to me, therefore I'd have to compile it against Linux 5.4.154 mips .. not sure it will be compatible ?

weimdall avatar Jan 10 '22 06:01 weimdall

The mt76 uses the version below and no more firmware reset issues. PKG_SOURCE_DATE:=2018-11-09 PKG_SOURCE_VERSION:=ffccb48c5082b2c6f43a0235b77b62ca388810f0 PKG_MIRROR_HASH:=bff0063db1a1b1353f59aad16abad4dd93ceeb4c672811ad864cebe0e39c7d8d

Well, currently I have the version : PKG_SOURCE_DATE:=2021-12-03 PKG_SOURCE_VERSION:=678071ef70297b7264661c356ddb3c8cf7f3c87b PKG_MIRROR_HASH:=b1f8613f7c65ca6a893f83ed9efc3f7ce72b9b4904fd11b89264f57f4f2a3b5e

But going back to a version from 2018 sound like a bad idea to me, therefore I'd have to compile it against Linux 5.4.154 mips .. not sure it will be compatible ?

I compiled open-19.07, Linux 4.14.236, no problem, Linux 5.4.154 not tested.

jxph1123 avatar Jan 10 '22 07:01 jxph1123

https://forum.openwrt.org/t/resolved-d-link-dir-860l-mt7621-5ghz-wifi-issues-openwrt-19-07-5/84641/4 Based on this discussion, I rolled back the version, and there was no firmware restart.

jxph1123 avatar Jan 10 '22 07:01 jxph1123

Hi all Please upgrade the new version of firmware bin and test it

  1. download the firmware https://raw.githubusercontent.com/ptpt52/mt76/master/firmware/mt7662_firmware_e3_v1.9.bin
  2. rename it to mt7662.bin and replace file /lib/firmware/mt7662.bin
  3. reboot

ptpt52 avatar Jan 11 '22 09:01 ptpt52

new version fw boot log:

dmesg | grep mt76x2e
[   28.218503] mt76x2e 0000:02:00.0: enabling device (0000 -> 0002)
[   28.230735] mt76x2e 0000:02:00.0: ASIC revision: 76120044
[   29.071944] mt76x2e 0000:02:00.0: ROM patch build: 20141115060606a
[   29.192558] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[   29.203585] mt76x2e 0000:02:00.0: Build: 1
[   29.211846] mt76x2e 0000:02:00.0: Build Time: 201706151016____
[   29.237211] mt76x2e 0000:02:00.0: Firmware running!

ptpt52 avatar Jan 11 '22 09:01 ptpt52

Hi all Please upgrade the new version of firmware bin and test it

  1. download the firmware https://raw.githubusercontent.com/ptpt52/mt76/master/firmware/mt7662_firmware_e3_v1.9.bin
  2. rename it to mt7662.bin and replace file /lib/firmware/mt7662.bin
  3. reboot

Can you provide the source code and compile it yourself, thank you.

jxph1123 avatar Jan 11 '22 09:01 jxph1123

for clarity Wifi Firmware bin is come from mtk SDK and no source code is possible for us

the old version in mt76 (https://raw.githubusercontent.com/openwrt/mt76/master/firmware/mt7662_firmware_e3_v1.9.bin) also no source

ptpt52 avatar Jan 11 '22 09:01 ptpt52

@jxph1123 hi you may do more test to get the result there is no likely reason the old version of mt76 fix this issue

some guys reported to me.

ptpt52 avatar Jan 11 '22 09:01 ptpt52

Can you provide the source code and compile it yourself, thank you.

Firmware blobs are always binary. Even if manufacturers would be willing to provide you source code for it, that would violate FCC regulations and whatnot.

Borromini avatar Jan 11 '22 10:01 Borromini