I see this in my kernel logs as well. I’ll compile 5.4 and 4.19 to see if they work… Probably will get back to this thread tomorrow, as it is almost my bedtime…
Well, neither brand wants to compile for me. Need to repull the repo (again) and try compiling again… My vacation starts tomorrow after I finish with work, so I’ll be able to devote some more time (unlike today)…
EDIT: Either branch, not brand…
You mean bpi-repo? This is 4.4 and requires gcc 4.6 max. 4.14 and 4.19 are in my repo and should be compilable with at least gcc8
Nope, I mean your repo using
git clone https://github.com/frank-w/BPI-R2-4.14/
which host-OS do you have? how do you try to compile? which branch of my repo?
I have Debian 10.11 on my R2. I’m compiling the kernel on my regular PC (AMD 4.7GHz 8-core processor, 32GB of RAM). Tried both 4.19-main and 5.4-main…
5.10-main/5.15-main were working? which errors do you get? do you use my build.sh or any own command?
I finally went to the repo and learned how to import the default configuration… I’m an idiot. Just finished compiling 4.19-main now… Installed on my R2 now. Will test.
have you changed uEnv.txt to match your kernel-binary?
Yup, changed uEnv.txt. On 4.19-main, everytime I check hciconfig -a, the machine locks up frequently in SSH. I see this using dmesg:
root@bpiwrt:~# dmesg | grep -i hci0
[ 146.755429] Bluetooth: hci0: command 0x0c14 tx timeout
[ 243.478234] Bluetooth: hci0: command 0x0c14 tx timeout
I don’t have time this morning to check 5.4-main. Need to get ready for work… (Yay, last day b4 vacation!)
Okay, compiled 5.4-main on my computer and transferred it to my R2. No freeze-ups like on 4.19-main. I’m still seeing the same “command 0x0c14 tx timeout” message, plus some added lines while running journalctl:
Jan 04 14:36:14 bpiwrt kernel: [STP] _mtk_wcn_stp_send_data:[E] WMT lats close,should not have tx request!
Jan 04 14:36:16 bpiwrt kernel: Bluetooth: hci0: command 0x0c14 tx timeout
Jan 04 14:37:08 bpiwrt smbd[1430]: pam_unix(samba:session): session opened for user pi by (uid=0)
Jan 04 14:37:10 bpiwrt kernel: [STP] _mtk_wcn_stp_send_data:[E] WMT lats close,should not have tx request!
Jan 04 14:37:12 bpiwrt kernel: Bluetooth: hci0: command 0x0c24 tx timeout
Jan 04 14:37:47 bpiwrt kernel: mtk_bt_hci_flush: todo
Jan 04 14:37:47 bpiwrt kernel: [STP] _mtk_wcn_stp_send_data:[E] WMT lats close,should not have tx request!
Jan 04 14:38:07 bpiwrt kernel: [WMT-DEV][E]wmt_dev_rx_timeout(1430):gRxCount != 0 (-1), reset it!
Jan 04 14:38:07 bpiwrt kernel: [WMT-CTRL][E]wmt_ctrl_rx(263):wmt_dev_rx_timeout: timeout,jiffies(896),timeoutvalue(20000)
Jan 04 14:38:07 bpiwrt kernel: [WMT-CORE][E]wmt_core_rx(346):WMT-CORE: wmt_core_ctrl failed: WMT_CTRL_RX, iRet:-1
Jan 04 14:38:07 bpiwrt kernel: 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x52 0x0c 0xf1 0x00 0x0b 0x09 0x42 0x6c 0x75 0x65 0x5a 0x20 0x35 0x2e 0x35 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x52 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x13 0x0c 0xf8 0x62 0x70 0x69 0x77 0x72 0x74 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x13 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x52 0x0c 0xf1 0x00 0x07 0x09 0x62 0x70 0x69 0x77 0x72 0x74 0x02 0x0a 0x0a 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x52 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03
Jan 04 14:38:07 bpiwrt kernel: drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.c, 348, (0)
Jan 04 14:38:07 bpiwrt kernel: [WMT-CORE][E]wmt_core_func_ctrl_cmd(410):WMT-CORE: wmt_func_ctrl_cmd kal_stp_rx failed
Jan 04 14:38:07 bpiwrt kernel: [WMT-CORE][E]wmt_core_func_ctrl_cmd(447):WMT-CORE: wmt_func_ctrl_cmd 0x0 FAIL
Jan 04 14:38:07 bpiwrt kernel: [WMT-FUNC][E]wmt_func_bt_off(317):wmt-func: wmt_core_func_ctrl_cmd(bt_off) failed(-3)
Jan 04 14:38:07 bpiwrt kernel: MTK-BTIF[E]mtk_btif_rxd_be_blocked_by_data(2245):there is no sync pkt in BTIF buffer
Jan 04 14:38:17 bpiwrt kernel: [STP] mtk_wcn_stp_wmt_evt_err_trg_assert:[E] evt err trigger assert fail,do chip reset to recovery
Jan 04 14:38:17 bpiwrt kernel: [WMT-CORE][E]opfunc_func_off(1127):WMT-CORE: type(0x0) function off failed, ret(-1)
Jan 04 14:38:17 bpiwrt kernel: mtk_bt_hci_close func off failed with 0
Jan 04 14:38:17 bpiwrt kernel: drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.c, 1128, (0)
Jan 04 14:38:17 bpiwrt kernel: vcn18: mode operation not allowed
Jan 04 14:38:17 bpiwrt kernel: vcn18: mode operation not allowed
Jan 04 14:38:17 bpiwrt kernel: [WMT-CONSYS-HW][E]mtk_wcn_consys_hw_reg_ctrl(291):Read CONSYS chipId(0xfffff093)
Jan 04 14:38:17 bpiwrt kernel: [STP-PSM] [W]_stp_psm_put_op: RB_FULL, RB_COUNT=16 , RB_SIZE=16
Jan 04 14:38:17 bpiwrt kernel: [STP-PSM] [W]_stp_psm_proc: +++++++++++ Put op to FreeOpQ fail, maybe disable/enable psm
Jan 04 14:38:17 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6620.defAnt'.
Jan 04 14:38:17 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6628.defAnt'.
Jan 04 14:38:17 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6630.defAnt'.
Jan 04 14:38:17 bpiwrt kernel: [STP] _mtk_wcn_stp_send_data:[E] WMT lats close,should not have tx request!
Jan 04 14:38:37 bpiwrt kernel: [WMT-DEV][E]wmt_dev_rx_timeout(1430):gRxCount != 0 (-1), reset it!
Jan 04 14:38:37 bpiwrt kernel: [WMT-CTRL][E]wmt_ctrl_rx(263):wmt_dev_rx_timeout: timeout,jiffies(3904),timeoutvalue(20000)
Jan 04 14:38:37 bpiwrt kernel: [WMT-CORE][E]wmt_core_rx(346):WMT-CORE: wmt_core_ctrl failed: WMT_CTRL_RX, iRet:-1
Jan 04 14:38:37 bpiwrt kernel: 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x52 0x0c 0xf1 0x00 0x0b 0x09 0x42 0x6c 0x75 0x65 0x5a 0x20 0x35 0x2e 0x35 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x52 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x13 0x0c 0xf8 0x62 0x70 0x69 0x77 0x72 0x74 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x13 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x52 0x0c 0xf1 0x00 0x07 0x09 0x62 0x70 0x69 0x77 0x72 0x74 0x02 0x0a 0x0a 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x52 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03
Jan 04 14:38:37 bpiwrt kernel: drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.c, 348, (0)
Jan 04 14:38:37 bpiwrt kernel: [WMT-CORE][E]wmt_core_reg_rw_raw(566):Rx REG_EVT fail!(-1) len(0, 16)
Jan 04 14:38:37 bpiwrt kernel: [WMT-CORE][E]wmt_core_hw_check(792):get hwcode (chip id) fail (-3)
Jan 04 14:38:37 bpiwrt kernel: [WMT-CORE][E]wmt_core_stp_init(686):hw_check fail:-2
Jan 04 14:38:37 bpiwrt kernel: [WMT-LIB][E]wmt_lib_cmb_rst(1681):[whole chip reset] fail at wmt_lib_sw_rst!
Jan 04 14:38:37 bpiwrt kernel: vcn18: mode operation not allowed
Jan 04 14:38:37 bpiwrt kernel: vcn18: mode operation not allowed
Jan 04 14:38:38 bpiwrt kernel: [WMT-CONSYS-HW][E]mtk_wcn_consys_hw_reg_ctrl(291):Read CONSYS chipId(0xfffff093)
Jan 04 14:38:38 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6620.defAnt'.
Jan 04 14:38:38 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6628.defAnt'.
Jan 04 14:38:38 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6630.defAnt'.
Jan 04 14:38:38 bpiwrt kernel: [STP] _mtk_wcn_stp_send_data:[E] WMT lats close,should not have tx request!
Jan 04 14:38:58 bpiwrt kernel: [WMT-DEV][E]wmt_dev_rx_timeout(1430):gRxCount != 0 (-1), reset it!
Jan 04 14:38:58 bpiwrt kernel: [WMT-CTRL][E]wmt_ctrl_rx(263):wmt_dev_rx_timeout: timeout,jiffies(5953),timeoutvalue(20000)
Jan 04 14:38:58 bpiwrt kernel: [WMT-CORE][E]wmt_core_rx(346):WMT-CORE: wmt_core_ctrl failed: WMT_CTRL_RX, iRet:-1
Jan 04 14:38:58 bpiwrt kernel: 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x52 0x0c 0xf1 0x00 0x0b 0x09 0x42 0x6c 0x75 0x65 0x5a 0x20 0x35 0x2e 0x35 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x52 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x13 0x0c 0xf8 0x62 0x70 0x69 0x77 0x72 0x74 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x13 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x52 0x0c 0xf1 0x00 0x07 0x09 0x62 0x70 0x69 0x77 0x72 0x74 0x02 0x0a 0x0a 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x52 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03
Jan 04 14:38:58 bpiwrt kernel: drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.c, 348, (0)
Jan 04 14:38:58 bpiwrt kernel: [WMT-CORE][E]wmt_core_reg_rw_raw(566):Rx REG_EVT fail!(-1) len(0, 16)
Jan 04 14:38:58 bpiwrt kernel: [WMT-CORE][E]wmt_core_hw_check(792):get hwcode (chip id) fail (-3)
Jan 04 14:38:58 bpiwrt kernel: [WMT-CORE][E]wmt_core_stp_init(686):hw_check fail:-2
Jan 04 14:38:58 bpiwrt kernel: [WMT-LIB][E]wmt_lib_cmb_rst(1681):[whole chip reset] fail at wmt_lib_sw_rst!
Jan 04 14:38:58 bpiwrt kernel: vcn18: mode operation not allowed
Jan 04 14:38:58 bpiwrt kernel: vcn18: mode operation not allowed
Jan 04 14:38:58 bpiwrt kernel: [WMT-CONSYS-HW][E]mtk_wcn_consys_hw_reg_ctrl(291):Read CONSYS chipId(0xfffff093)
Jan 04 14:38:58 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6620.defAnt'.
Jan 04 14:38:58 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6628.defAnt'.
Jan 04 14:38:58 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6630.defAnt'.
Jan 04 14:38:58 bpiwrt kernel: [STP] _mtk_wcn_stp_send_data:[E] WMT lats close,should not have tx request!
Jan 04 14:39:01 bpiwrt CRON[1461]: pam_unix(cron:session): session opened for user root by (uid=0)
Jan 04 14:39:01 bpiwrt CRON[1465]: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Jan 04 14:39:01 bpiwrt CRON[1461]: pam_unix(cron:session): session closed for user root
Jan 04 14:39:06 bpiwrt systemd[1]: Starting Clean php session files...
Jan 04 14:39:07 bpiwrt systemd[1]: phpsessionclean.service: Succeeded.
Jan 04 14:39:07 bpiwrt systemd[1]: Started Clean php session files.
Jan 04 14:39:18 bpiwrt kernel: [WMT-DEV][E]wmt_dev_rx_timeout(1430):gRxCount != 0 (-1), reset it!
Jan 04 14:39:18 bpiwrt kernel: [WMT-CTRL][E]wmt_ctrl_rx(263):wmt_dev_rx_timeout: timeout,jiffies(8001),timeoutvalue(20000)
Jan 04 14:39:18 bpiwrt kernel: [WMT-CORE][E]wmt_core_rx(346):WMT-CORE: wmt_core_ctrl failed: WMT_CTRL_RX, iRet:-1
Jan 04 14:39:18 bpiwrt kernel: 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x52 0x0c 0xf1 0x00 0x0b 0x09 0x42 0x6c 0x75 0x65 0x5a 0x20 0x35 0x2e 0x35 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x52 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x13 0x0c 0xf8 0x62 0x70 0x69 0x77 0x72 0x74 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x13 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x52 0x0c 0xf1 0x00 0x07 0x09 0x62 0x70 0x69 0x77 0x72 0x74 0x02 0x0a 0x0a 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x52 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03
Jan 04 14:39:18 bpiwrt kernel: drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.c, 348, (0)
Jan 04 14:39:18 bpiwrt kernel: [WMT-CORE][E]wmt_core_reg_rw_raw(566):Rx REG_EVT fail!(-1) len(0, 16)
Jan 04 14:39:18 bpiwrt kernel: [WMT-CORE][E]wmt_core_hw_check(792):get hwcode (chip id) fail (-3)
Jan 04 14:39:18 bpiwrt kernel: [WMT-CORE][E]wmt_core_stp_init(686):hw_check fail:-2
Jan 04 14:39:19 bpiwrt kernel: [WMT-LIB][E]wmt_lib_cmb_rst(1681):[whole chip reset] fail at wmt_lib_sw_rst!
Jan 04 14:39:19 bpiwrt kernel: vcn18: mode operation not allowed
Jan 04 14:39:19 bpiwrt kernel: vcn18: mode operation not allowed
Jan 04 14:39:19 bpiwrt kernel: [WMT-CONSYS-HW][E]mtk_wcn_consys_hw_reg_ctrl(291):Read CONSYS chipId(0xfffff093)
Jan 04 14:39:19 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6620.defAnt'.
Jan 04 14:39:19 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6628.defAnt'.
Jan 04 14:39:19 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6630.defAnt'.
Jan 04 14:39:19 bpiwrt kernel: [STP] _mtk_wcn_stp_send_data:[E] WMT lats close,should not have tx request!
Jan 04 14:39:20 bpiwrt kernel: [MTK-BT] BT_exit: mtk_stp_BT_chrdev driver removed
Jan 04 14:39:39 bpiwrt kernel: [WMT-DEV][E]wmt_dev_rx_timeout(1430):gRxCount != 0 (-1), reset it!
Jan 04 14:39:39 bpiwrt kernel: [WMT-CTRL][E]wmt_ctrl_rx(263):wmt_dev_rx_timeout: timeout,jiffies(10049),timeoutvalue(20000)
Jan 04 14:39:39 bpiwrt kernel: [WMT-CORE][E]wmt_core_rx(346):WMT-CORE: wmt_core_ctrl failed: WMT_CTRL_RX, iRet:-1
Jan 04 14:39:39 bpiwrt kernel: 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x52 0x0c 0xf1 0x00 0x0b 0x09 0x42 0x6c 0x75 0x65 0x5a 0x20 0x35 0x2e 0x35 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x52 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x13 0x0c 0xf8 0x62 0x70 0x69 0x77 0x72 0x74 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x13 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x52 0x0c 0xf1 0x00 0x07 0x09 0x62 0x70 0x69 0x77 0x72 0x74 0x02 0x0a 0x0a 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x52 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03
Jan 04 14:39:39 bpiwrt kernel: drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.c, 348, (0)
Jan 04 14:39:39 bpiwrt kernel: [WMT-CORE][E]wmt_core_reg_rw_raw(566):Rx REG_EVT fail!(-1) len(0, 16)
Jan 04 14:39:39 bpiwrt kernel: [WMT-CORE][E]wmt_core_hw_check(792):get hwcode (chip id) fail (-3)
Jan 04 14:39:39 bpiwrt kernel: [WMT-CORE][E]wmt_core_stp_init(686):hw_check fail:-2
Jan 04 14:39:39 bpiwrt kernel: [WMT-LIB][E]wmt_lib_cmb_rst(1681):[whole chip reset] fail at wmt_lib_sw_rst!
Jan 04 14:39:39 bpiwrt kernel: vcn18: mode operation not allowed
Jan 04 14:39:39 bpiwrt kernel: vcn18: mode operation not allowed
Jan 04 14:39:39 bpiwrt kernel: [WMT-CONSYS-HW][E]mtk_wcn_consys_hw_reg_ctrl(291):Read CONSYS chipId(0xfffff093)
Jan 04 14:39:39 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6620.defAnt'.
Jan 04 14:39:39 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6628.defAnt'.
Jan 04 14:39:39 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6630.defAnt'.
Jan 04 14:39:39 bpiwrt kernel: [STP] _mtk_wcn_stp_send_data:[E] WMT lats close,should not have tx request!
Jan 04 14:39:41 bpiwrt kernel: 8<--- cut here ---
Jan 04 14:39:41 bpiwrt kernel: Unable to handle kernel paging request at virtual address bf0d6204
Jan 04 14:39:41 bpiwrt kernel: pgd = 65033b41
Jan 04 14:39:41 bpiwrt kernel: [bf0d6204] *pgd=9b16a811, *pte=00000000, *ppte=00000000
Jan 04 14:39:41 bpiwrt kernel: Internal error: Oops: 80000007 [#1] SMP ARM
Jan 04 14:39:42 bpiwrt kernel: Modules linked in: nf_conntrack_netlink nfnetlink xt_addrtype br_netfilter xt_MASQUERADE xt_nat bnep xt_recent xt_limit xt_state xt_tcpudp xt_conntrack iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle iptable_filter mt7615e mt76 lima gpu_sched mtk_thermal spi_mt65xx pwm_mediatek nvmem_mtk_efuse mt6577_auxadc i2c_dev ip_tables x_tables [last unloaded: stp_chrdev_bt]
Jan 04 14:39:42 bpiwrt kernel: CPU: 2 PID: 1538 Comm: hciconfig Not tainted 5.4.150-bpi-r2-main #2
Jan 04 14:39:42 bpiwrt kernel: Hardware name: Mediatek Cortex-A7 (Device Tree)
Jan 04 14:39:42 bpiwrt kernel: PC is at 0xbf0d6204
Jan 04 14:39:42 bpiwrt kernel: LR is at hci_dev_do_open+0x80/0x768
Jan 04 14:39:42 bpiwrt kernel: pc : [<bf0d6204>] lr : [<c0b54700>] psr: 600f0013
Jan 04 14:39:42 bpiwrt kernel: sp : de993dd0 ip : dd92202c fp : de993e34
Jan 04 14:39:42 bpiwrt kernel: r10: d8cc4080 r9 : dd922810 r8 : c1401e00
Jan 04 14:39:42 bpiwrt kernel: r7 : 00000002 r6 : c1304e48 r5 : dd922b44 r4 : dd922000
Jan 04 14:39:42 bpiwrt kernel: r3 : bf0d6204 r2 : 00000006 r1 : de993de0 r0 : dd922000
Jan 04 14:39:42 bpiwrt kernel: Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
Jan 04 14:39:42 bpiwrt kernel: Control: 10c5387d Table: 97cb006a DAC: 00000051
Jan 04 14:39:42 bpiwrt kernel: Process hciconfig (pid: 1538, stack limit = 0x575c3e81)
Jan 04 14:39:42 bpiwrt kernel: Stack: (0xde993dd0 to 0xde994000)
Jan 04 14:39:42 bpiwrt kernel: 3dc0: c0521c84 c0521bd0 de993e04 de993de8
Jan 04 14:39:42 bpiwrt kernel: 3de0: 00000000 c0520000 de993de8 de993de8 00000000 00000001 00010001 de993dfc
Jan 04 14:39:42 bpiwrt kernel: 3e00: de993dfc e9b075ec de993e34 dd922000 dd922b44 400448c9 00000002 00000000
Jan 04 14:39:42 bpiwrt kernel: 3e20: 00000000 d8cc4080 de993e4c de993e38 c0b55ad0 c0b5468c d977bc00 c1304e48
Jan 04 14:39:42 bpiwrt kernel: 3e40: de993e84 de993e50 c0b79c38 c0b55a30 c02dea68 da47d5a4 00000024 e9b075ec
Jan 04 14:39:42 bpiwrt kernel: 3e60: 400448c9 c1304e48 00000003 00000000 c13b1600 00000000 de993edc de993e88
Jan 04 14:39:42 bpiwrt kernel: 3e80: c09aa2f4 c0b79a58 de993eb4 c02b4308 de993f1c de993ea0 c02b4308 c011f730
Jan 04 14:39:42 bpiwrt kernel: 3ea0: de993ed4 de993eb0 c02f71d8 c053d6c8 00000020 e9b075ec d7a93480 d7a93480
Jan 04 14:39:42 bpiwrt kernel: 3ec0: 00000003 400448c9 c1304e48 00000000 de993f6c de993ee0 c030b1b8 c09a9f9c
Jan 04 14:39:42 bpiwrt kernel: 3ee0: 00000000 e0734b1c 00000000 e9b075ec de993f1c de993fb0 d7bab200 d7b9b000
Jan 04 14:39:42 bpiwrt kernel: 3f00: 00473494 00000017 d7a99ea0 c0118898 de993f74 de993f20 c0118898 c0182500
Jan 04 14:39:42 bpiwrt kernel: 3f20: d8cc4000 00000000 00000003 c0318f4c de993f5c 00000000 00000000 e9b075ec
Jan 04 14:39:42 bpiwrt kernel: 3f40: 00000100 d7a93480 d7a93480 00000003 400448c9 00000000 de992000 00000036
Jan 04 14:39:42 bpiwrt kernel: 3f60: de993f94 de993f70 c030ba58 c030b104 00000000 004590a9 00000000 00000036
Jan 04 14:39:42 bpiwrt kernel: 3f80: c0101204 de992000 de993fa4 de993f98 c030ba94 c030ba20 00000000 de993fa8
Jan 04 14:39:42 bpiwrt kernel: 3fa0: c0101000 c030ba88 00000000 004590a9 00000003 400448c9 00000000 0048bc48
Jan 04 14:39:42 bpiwrt kernel: 3fc0: 00000000 004590a9 00000000 00000036 0048aee8 00473494 00000001 beca07ee
Jan 04 14:39:42 bpiwrt kernel: 3fe0: 0048af40 beca0514 004590bd b6e9ff08 600f0030 00000003 00000000 00000000
Jan 04 14:39:42 bpiwrt kernel: Backtrace:
Jan 04 14:39:42 bpiwrt kernel: [<c0b54680>] (hci_dev_do_open) from [<c0b55ad0>] (hci_dev_open+0xac/0x104)
Jan 04 14:39:42 bpiwrt kernel: r10:d8cc4080 r9:00000000 r8:00000000 r7:00000002 r6:400448c9 r5:dd922b44
Jan 04 14:39:42 bpiwrt kernel: r4:dd922000
Jan 04 14:39:42 bpiwrt kernel: [<c0b55a24>] (hci_dev_open) from [<c0b79c38>] (hci_sock_ioctl+0x1ec/0x540)
Jan 04 14:39:42 bpiwrt kernel: r5:c1304e48 r4:d977bc00
Jan 04 14:39:42 bpiwrt kernel: [<c0b79a4c>] (hci_sock_ioctl) from [<c09aa2f4>] (sock_ioctl+0x364/0x5a0)
Jan 04 14:39:42 bpiwrt kernel: r9:00000000 r8:c13b1600 r7:00000000 r6:00000003 r5:c1304e48 r4:400448c9
Jan 04 14:39:42 bpiwrt kernel: [<c09a9f90>] (sock_ioctl) from [<c030b1b8>] (do_vfs_ioctl+0xc0/0x91c)
Jan 04 14:39:42 bpiwrt kernel: r9:00000000 r8:c1304e48 r7:400448c9 r6:00000003 r5:d7a93480 r4:d7a93480
Jan 04 14:39:42 bpiwrt kernel: [<c030b0f8>] (do_vfs_ioctl) from [<c030ba58>] (ksys_ioctl+0x44/0x68)
Jan 04 14:39:42 bpiwrt kernel: r10:00000036 r9:de992000 r8:00000000 r7:400448c9 r6:00000003 r5:d7a93480
Jan 04 14:39:42 bpiwrt kernel: r4:d7a93480
Jan 04 14:39:42 bpiwrt kernel: [<c030ba14>] (ksys_ioctl) from [<c030ba94>] (sys_ioctl+0x18/0x1c)
Jan 04 14:39:42 bpiwrt kernel: r9:de992000 r8:c0101204 r7:00000036 r6:00000000 r5:004590a9 r4:00000000
Jan 04 14:39:42 bpiwrt kernel: [<c030ba7c>] (sys_ioctl) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
Jan 04 14:39:42 bpiwrt kernel: Exception stack(0xde993fa8 to 0xde993ff0)
Jan 04 14:39:42 bpiwrt kernel: 3fa0: 00000000 004590a9 00000003 400448c9 00000000 0048bc48
Jan 04 14:39:42 bpiwrt kernel: 3fc0: 00000000 004590a9 00000000 00000036 0048aee8 00473494 00000001 beca07ee
Jan 04 14:39:42 bpiwrt kernel: 3fe0: 0048af40 beca0514 004590bd b6e9ff08
Jan 04 14:39:42 bpiwrt kernel: Code: bad PC value
Jan 04 14:39:42 bpiwrt kernel: ---[ end trace f9852e326c527266 ]---
Jan 04 14:39:59 bpiwrt kernel: [WMT-DEV][E]wmt_dev_rx_timeout(1430):gRxCount != 0 (-1), reset it!
Jan 04 14:39:59 bpiwrt kernel: [WMT-CTRL][E]wmt_ctrl_rx(263):wmt_dev_rx_timeout: timeout,jiffies(12097),timeoutvalue(20000)
Jan 04 14:39:59 bpiwrt kernel: [WMT-CORE][E]wmt_core_rx(346):WMT-CORE: wmt_core_ctrl failed: WMT_CTRL_RX, iRet:-1
Jan 04 14:39:59 bpiwrt kernel: 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x52 0x0c 0xf1 0x00 0x0b 0x09 0x42 0x6c 0x75 0x65 0x5a 0x20 0x35 0x2e 0x35 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x52 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x13 0x0c 0xf8 0x62 0x70 0x69 0x77 0x72 0x74 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x13 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x52 0x0c 0xf1 0x00 0x07 0x09 0x62 0x70 0x69 0x77 0x72 0x74 0x02 0x0a 0x0a 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x52 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03
Jan 04 14:39:59 bpiwrt kernel: drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.c, 348, (0)
Jan 04 14:39:59 bpiwrt kernel: [WMT-CORE][E]wmt_core_reg_rw_raw(566):Rx REG_EVT fail!(-1) len(0, 16)
Jan 04 14:39:59 bpiwrt kernel: [WMT-CORE][E]wmt_core_hw_check(792):get hwcode (chip id) fail (-3)
Jan 04 14:39:59 bpiwrt kernel: [WMT-CORE][E]wmt_core_stp_init(686):hw_check fail:-2
Jan 04 14:39:59 bpiwrt kernel: [WMT-LIB][E]wmt_lib_cmb_rst(1681):[whole chip reset] fail at wmt_lib_sw_rst!
Jan 04 14:39:59 bpiwrt kernel: vcn18: mode operation not allowed
Jan 04 14:40:00 bpiwrt kernel: vcn18: mode operation not allowed
Jan 04 14:40:00 bpiwrt kernel: [WMT-CONSYS-HW][E]mtk_wcn_consys_hw_reg_ctrl(291):Read CONSYS chipId(0xfffff093)
Jan 04 14:40:00 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6620.defAnt'.
Jan 04 14:40:00 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6628.defAnt'.
Jan 04 14:40:00 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6630.defAnt'.
Jan 04 14:40:00 bpiwrt kernel: [STP] _mtk_wcn_stp_send_data:[E] WMT lats close,should not have tx request!
Jan 04 14:40:01 bpiwrt CRON[1547]: pam_unix(cron:session): session opened for user root by (uid=0)
Jan 04 14:40:01 bpiwrt CRON[1551]: (root) CMD ( PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updatechecker local)
Jan 04 14:40:02 bpiwrt CRON[1547]: pam_unix(cron:session): session closed for user root
Jan 04 14:40:20 bpiwrt kernel: [WMT-DEV][E]wmt_dev_rx_timeout(1430):gRxCount != 0 (-1), reset it!
Jan 04 14:40:20 bpiwrt kernel: [WMT-CTRL][E]wmt_ctrl_rx(263):wmt_dev_rx_timeout: timeout,jiffies(14145),timeoutvalue(20000)
Jan 04 14:40:20 bpiwrt kernel: [WMT-CORE][E]wmt_core_rx(346):WMT-CORE: wmt_core_ctrl failed: WMT_CTRL_RX, iRet:-1
Jan 04 14:40:20 bpiwrt kernel: 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x52 0x0c 0xf1 0x00 0x0b 0x09 0x42 0x6c 0x75 0x65 0x5a 0x20 0x35 0x2e 0x35 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x52 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x13 0x0c 0xf8 0x62 0x70 0x69 0x77 0x72 0x74 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x13 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x52 0x0c 0xf1 0x00 0x07 0x09 0x62 0x70 0x69 0x77 0x72 0x74 0x02 0x0a 0x0a 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x04 0x0e 0x04 0x01 0x52 0x0c 0x00 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03
Jan 04 14:40:20 bpiwrt kernel: drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.c, 348, (0)
Jan 04 14:40:20 bpiwrt kernel: [WMT-CORE][E]wmt_core_reg_rw_raw(566):Rx REG_EVT fail!(-1) len(0, 16)
Jan 04 14:40:20 bpiwrt kernel: [WMT-CORE][E]wmt_core_hw_check(792):get hwcode (chip id) fail (-3)
Jan 04 14:40:20 bpiwrt kernel: [WMT-CORE][E]wmt_core_stp_init(686):hw_check fail:-2
Jan 04 14:40:20 bpiwrt kernel: [WMT-LIB][E]wmt_lib_cmb_rst(1681):[whole chip reset] fail at wmt_lib_sw_rst!
Jan 04 14:40:20 bpiwrt kernel: vcn18: mode operation not allowed
Jan 04 14:40:20 bpiwrt kernel: vcn18: mode operation not allowed
Jan 04 14:40:20 bpiwrt kernel: [WMT-CONSYS-HW][E]mtk_wcn_consys_hw_reg_ctrl(291):Read CONSYS chipId(0xfffff093)
Jan 04 14:40:20 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6620.defAnt'.
Jan 04 14:40:20 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6628.defAnt'.
Jan 04 14:40:20 bpiwrt kernel: [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6630.defAnt'.
Jan 04 14:40:20 bpiwrt kernel: [STP] _mtk_wcn_stp_send_data:[E] WMT lats close,should not have tx request!
Maybe this will help?
EDIT: I’m going to reflash my SD card with your original Debian 10 image and this kernel and see if the same thing happens…
Strange,
I wonder why it is broken now everywhere…
maybe check if all firmware files are present. Or any change in kernel was breaking it
Okay, clean Debian 10 image, installed bluez and kernel 5.4.150. Was able to bring hci0 up and configure it, as specified in your bluetooth wifi.
Went back to kernel 5.4.58 and was able to bring up the hci0 interface, as specified in your bluetooth wifi.
Tried 4.19.20 and was able to bring up the hci0 interface, as specified in your bluetooth wifi. I lost the ability to SSH into the machine, so I had to pull the SD card in order to change to kernel 5.15.
Tried 5.15.11 and was NOT able to bring up the hci0 interface. Here is the result:
root@bpi-r2:~# wifi.sh
wifidev does not exist...create it...
loading wifi driver module
13: ap0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 02:08:22:14:d1:fc brd ff:ff:ff:ff:ff:ff
Done, all good, ready to lauch hostapd
set IP
restart dnsmasq...
root@bpi-r2:~# hciconfig -a
hci0: Type: Primary Bus: SDIO
BD Address: 00:00:46:85:90:01 ACL MTU: 1021:4 SCO MTU: 184:1
DOWN
RX bytes:539 acl:0 sco:0 events:25 errors:0
TX bytes:363 acl:0 sco:0 commands:25 errors:0
Features: 0xbf 0x3e 0x8d 0xfe 0xdb 0xff 0x5b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF
Link mode: SLAVE ACCEPT
root@bpi-r2:~# hciconfig hci0 lm master
root@bpi-r2:~# hciconfig -a
hci0: Type: Primary Bus: SDIO
BD Address: 00:00:46:85:90:01 ACL MTU: 1021:4 SCO MTU: 184:1
DOWN
RX bytes:539 acl:0 sco:0 events:25 errors:0
TX bytes:363 acl:0 sco:0 commands:25 errors:0
Features: 0xbf 0x3e 0x8d 0xfe 0xdb 0xff 0x5b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF
Link mode: MASTER
root@bpi-r2:~# hciconfig hci0 up
Can't init device hci0: Invalid request code (56)
root@bpi-r2:~# dmesg | grep hci0
[ 115.334281] debugfs: File 'dut_mode' in directory 'hci0' already present!
So it appears to be something wrong with my custom image. which is disappointing… I guess (at the very minimum) it’s time to rebuild the damn thing…
I’ll try setting the MTK_BT_DEBUG flag to 1 on kernel 5.15, recompile and see what happens…
EDIT: Finished recompiling 5.15-main and installed it. Does any of this help?
[ 9.457942] Run /sbin/init as init process
[ 10.863577] systemd[1]: Condition check resulted in Arbitrary Executable File Formats File System Automount Point being skipped.
[ 12.857220] lima 13040000.gpu: bus rate = 500500000
[ 18.611757] [WMT-DETECT][I]wmt_detect_open:open major 154 minor 0 (pid 335)
[ 28.551657] [MTK-WIFI] WIFI_write: WIFI_write A
[ 29.757190] DEBUG: Passed wlanNetRegister 2264 devname:mt6625_%d
[ 29.787692] [MTK-WIFI] register_set_p2p_mode_handler: (pid 338) register set p2p mode handler 37657082
[ 32.516657] mtk_bt_hci_notify event(3)=HCI_NOTIFY_VOICE_SETTING
[ 39.570749] vcamaf: disabling
[ 57.704196] debugfs: File 'dut_mode' in directory 'hci0' already present!
[ 57.770053] hci_reassembly: this workaround is applied for mediatek BT
[ 57.795081] mtk_bt_hci_flush: todo
So for lts,only 5.15 is affected. Could you try 5.11-main - 5.14-main?
Debug seems to do no change. Need to add manual debugs later
Compiled 5.10.88 because that is the last version I tried and couldn’t bring bluetooth up before adding to this thread. Tried to bring up hci0. Got this:
root@bpiwrt:~# wifi.sh
wifidev does not exist...create it...
loading wifi driver module
13: ap0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 02:08:22:64:2c:fc brd ff:ff:ff:ff:ff:ff
Done, all good, ready to lauch hostapd
set IP
restart dnsmasq...
Failed to restart dnsmasq.service: Unit dnsmasq.service is masked.
root@bpiwrt:~# hciconfig -a
hci0: Type: Primary Bus: SDIO
BD Address: 00:00:46:85:90:01 ACL MTU: 1021:4 SCO MTU: 184:1
DOWN
RX bytes:539 acl:0 sco:0 events:25 errors:0
TX bytes:363 acl:0 sco:0 commands:25 errors:0
Features: 0xbf 0x3e 0x8d 0xfe 0xdb 0xff 0x5b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF
Link mode: SLAVE ACCEPT
root@bpiwrt:~# hciconfig hci0 lm master
root@bpiwrt:~# hciconfig hci0 up
Can't init device hci0: Invalid request code (56)
root@bpiwrt:~#
Btw, my dnsmasq.service is masked because I’m using pihole…
Going to try 5.9-main next.
So 5.10+ is not working,but 5.4 is ok,right?
Then you could try 5.5-5.9
Correct, branch 5.10-main does not work. Branches 5.9-main, 5.8-main and 5.7-main also fail to bring up interface hci0 with the same message. However, branch 5.6-main works to bring interface hci0 up.
So there is any change between 5.6 and 5.7 which breaks it.
it is not in drivers/misc/mediatek…
$ git diff 5.6-main..5.7-main -- drivers/misc/mediatek
is empty, so no change there, so anything else breaks it
diff --git a/arch/arm/configs/mt7623n_evb_fwu_defconfig b/arch/arm/configs/mt7623n_evb_fwu_defconfig
index b512869a9ba0..0f2bdd3d6376 100644
--- a/arch/arm/configs/mt7623n_evb_fwu_defconfig
+++ b/arch/arm/configs/mt7623n_evb_fwu_defconfig
@@ -430,7 +430,7 @@ CONFIG_CFG80211=y
#internal wlan (not working yet)
# CONFIG_MTK_CONN_LTE_IDC_SUPPORT is not set
-CONFIG_MTK_COMBO=y
+#CONFIG_MTK_COMBO=y
could you try reenabling it? but without i wifi should also not work and it does…comparing with 5.10-main this change is not there…i’m not sure why this is in 5.7-main but later i made a change to automaticly set the MTK_PLATFORM (this should lead to compile-errors if i made a mistake), maybe this breaks BT
-CONFIG_MTK_PLATFORM="mt7623"
+#CONFIG_MTK_PLATFORM="mt7623"
Okay, in .config,I tried commenting out:
CONFIG_MTK_PLATFORM="mt7623"
and the repo refused to build until I ran ./build.sh config, then exited. Then during compilation, it produced compile-errors.
Next attempt was after commenting out CONFIG_MTK_COMBO=y and recompiling. Compile was successful, however, after installing the kernel and rebooting, running wifi.sh just hangs. CTRL-C’ed, then checked /var/log/wmtloader.log. I saw these line:
init combo device
Can't open device node(/dev/wmtdetect) count(1)
Can't open device node(/dev/wmtdetect) count(2)
Can't open device node(/dev/wmtdetect) count(3)
...(counts between 3 and 329 happen here)...
Can't open device node(/dev/wmtdetect) count(329)
Can't open device node(
Hope this helps…
Try removing # in arch/arm/configs/mt7623n_evb_fwu_defconfig
,save and build.sh importconfig again