you can enable debugging with loglevel-boot-param
bootopts=vmalloc=496M initcall_debug=0 loglevel=7
in the /boot/bananapi/bpi-r2/linux/uEnv.txt
and now start wifi.sh and running dmesg…you will see that there are 4 modules and the failed are the gps-module and the fm-module
root@bpi-r2-e:~# echo 8 > /proc/sys/kernel/printk
root@bpi-r2-e:~# cat /proc/sys/kernel/printk
8 4 1 7
root@bpi-r2-e:~# ./wifi.sh
wifidev does not exist...create it...
[ 409.731509] [WMT-DETECT][I]wmt_detect_open:open major 154 minor 0 (pid 4191)
[ 409.738612] [WMT-DETECT][I]wmt_detect_unlocked_ioctl:cmd (-2147191037),arg(0)
[ 409.745746] [WMT-DETECT][I]wmt_detect_unlocked_ioctl:cmd (1074034433),arg(302
43)
[ 409.753136] [WMT-DETECT][I]wmt_detect_unlocked_ioctl:cmd (-2147191036),arg(30
243)
[ 409.760594] [WMT-MOD-INIT][I]do_common_drv_init:start to do common driver ini
t, chipid:0x00007623
[ 409.772803] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6620.defAn
t'.
[ 409.780231] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6628.defAn
t'.
[ 409.787579] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6630.defAn
t'.
[ 409.798168] [WMT-CONSYS-HW][E]mtk_wmt_probe(122):Wmt Cannot find pinctrl defa
ult!
[ 409.806733] [WMT-MOD-INIT][I]do_common_drv_init:finish common driver init
[ 409.813556] [BT-MOD-INIT][I]do_bluetooth_drv_init:start to do bluetooth drive
r init
[ 409.822379] [BT-MOD-INIT][I]do_bluetooth_drv_init:finish bluetooth driver ini
t, i_ret:0
[ 409.822634] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 234
[ 409.822648] vcn18: mode operation not allowed
[ 409.822651] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 238
[ 409.822654] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 241
[ 409.822660] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 243
[ 409.823187] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 250
[ 409.823535] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 277
[ 409.824137] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 279
[ 409.824140] DEBUG: Passed mtk_wcn_consys_power_on 193
[ 409.824170] DEBUG: Passed mtk_wcn_consys_power_on 195
[ 409.824223] DEBUG: Passed mtk_wcn_consys_power_on 202
[ 409.824226] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 281
[ 409.824247] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 286
[ 409.824254] [WMT-CONSYS-HW][E]mtk_wcn_consys_hw_reg_ctrl(301):Read CONSYS chi
pId(0xfffff093)
[ 409.898699] [GPS-MOD-INIT][I]do_gps_drv_init:CONFIG_MTK_COMBO_GPS is not defi
ned <<<<<<<<<<<<<<<<
[ 409.914446] [WCN-MOD-INIT][E]do_connectivity_driver_init(62):do common driver
init failed, ret:-1 <<<<<<<<<<<<<<<<<<<<<<<
[ 409.923291] [FM-MOD-INIT][I]do_fm_drv_init:start to do fm module init <<<<<<<<<<<<<
[ 409.928854] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6620.defAn
t'.
[ 409.928861] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6628.defAn
t'.
[ 409.928867] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6630.defAn
t'.
[ 409.929061] [WMT-CORE][E]wmt_core_stp_init(648):WMT-CORE: no hif info!
[ 409.929066] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 649, (0)
[ 409.929071] [WMT-CORE][E]opfunc_pwr_on(918):WMT-CORE: wmt_core_stp_init fail
(-1) <<<<<<<<<<<<<<<<<
[ 409.929075] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 919, (0)
[ 409.929083] [WMT-CORE][E]wmt_core_ctrl(500):WMT-CORE: wmt_core_ctrl failed: i
d(5), type(1), value(0) iRet:(-1)
[ 409.929087] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 501, (0)
[ 409.929093] [WMT-CORE][E]wmt_core_ctrl(500):WMT-CORE: wmt_core_ctrl failed: i
d(5), type(0), value(0) iRet:(-1)
[ 409.929097] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 501, (0)
[ 409.929105] [WMT-CORE][E]wmt_core_ctrl(500):WMT-CORE: wmt_core_ctrl failed: i
d(3), type(0), value(0) iRet:(-2)
[ 409.929109] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 501, (0)
[ 409.929281] vcn18: mode operation not allowed
[ 409.929310] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 234
[ 409.929316] vcn18: mode operation not allowed
[ 409.929319] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 238
[ 409.929322] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 241
[ 409.929326] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 243
[ 409.929828] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 250
[ 409.930152] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 277
[ 409.930768] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 279
[ 409.930771] DEBUG: Passed mtk_wcn_consys_power_on 193
[ 409.930796] DEBUG: Passed mtk_wcn_consys_power_on 195
[ 409.930844] DEBUG: Passed mtk_wcn_consys_power_on 202
[ 409.930847] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 281
[ 409.930866] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 286
[ 409.930872] [WMT-CONSYS-HW][E]mtk_wcn_consys_hw_reg_ctrl(301):Read CONSYS chi
pId(0xfffff093)
[ 410.038731] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6620.defAn
t'.
[ 410.038738] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6628.defAn
t'.
[ 410.038744] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6630.defAn
t'.
[ 410.038940] [WMT-CORE][E]wmt_core_stp_init(648):WMT-CORE: no hif info!
[ 410.038945] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 649, (0)
[ 410.038950] [WMT-CORE][E]opfunc_pwr_on(918):WMT-CORE: wmt_core_stp_init fail
(-1)
[ 410.038953] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 919, (0)
[ 410.038962] [WMT-CORE][E]wmt_core_ctrl(500):WMT-CORE: wmt_core_ctrl failed: i
d(5), type(1), value(0) iRet:(-1)
[ 410.038965] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 501, (0)
[ 410.038971] [WMT-CORE][E]wmt_core_ctrl(500):WMT-CORE: wmt_core_ctrl failed: i
d(5), type(0), value(0) iRet:(-1)
[ 410.038975] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 501, (0)
[ 410.038983] [WMT-CORE][E]wmt_core_ctrl(500):WMT-CORE: wmt_core_ctrl failed: i
d(3), type(0), value(0) iRet:(-2)
[ 410.038986] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 501, (0)
[ 410.039129] vcn18: mode operation not allowed
[ 410.039153] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 234
[ 410.039159] vcn18: mode operation not allowed
[ 410.039161] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 238
[ 410.039164] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 241
[ 410.039168] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 243
[ 410.039668] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 250
[ 410.039980] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 277
[ 410.040571] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 279
[ 410.040574] DEBUG: Passed mtk_wcn_consys_power_on 193
[ 410.040592] DEBUG: Passed mtk_wcn_consys_power_on 195
[ 410.040632] DEBUG: Passed mtk_wcn_consys_power_on 202
[ 410.040635] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 281
[ 410.040651] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 286
[ 410.040656] [WMT-CONSYS-HW][E]mtk_wcn_consys_hw_reg_ctrl(301):Read CONSYS chi
pId(0xfffff093)
[ 410.138672] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6620.defAn
t'.
[ 410.138678] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6628.defAn
t'.
[ 410.138684] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6630.defAn
t'.
[ 410.138861] [WMT-CORE][E]wmt_core_stp_init(648):WMT-CORE: no hif info!
[ 410.138866] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 649, (0)
[ 410.138870] [WMT-CORE][E]opfunc_pwr_on(918):WMT-CORE: wmt_core_stp_init fail
(-1)
[ 410.138874] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 919, (0)
[ 410.138880] [WMT-CORE][E]wmt_core_ctrl(500):WMT-CORE: wmt_core_ctrl failed: i
d(5), type(1), value(0) iRet:(-1)
[ 410.138884] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 501, (0)
[ 410.138890] [WMT-CORE][E]wmt_core_ctrl(500):WMT-CORE: wmt_core_ctrl failed: i
d(5), type(0), value(0) iRet:(-1)
[ 410.138893] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 501, (0)
[ 410.138900] [WMT-CORE][E]wmt_core_ctrl(500):WMT-CORE: wmt_core_ctrl failed: i
d(3), type(0), value(0) iRet:(-2)
[ 410.138904] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 501, (0)
[ 410.139016] vcn18: mode operation not allowed
[ 410.139036] [WMT-CORE][E]opfunc_func_on(1025):func(0) pwr_on fail(-2)
[ 410.139040] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 1026, (0)
[ 410.139082] mtk_bt_hci_open func on failed with 0
[ 410.433276] [FM-MOD-INIT][I]do_fm_drv_init:finish fm module init
[ 410.439267] [WLAN-MOD-INIT][I]do_wlan_drv_init:start to do wlan module init 0
x7623
[ 410.447085] [WLAN-MOD-INIT][I]do_wlan_drv_init:WMT-WIFI char dev init, ret:0
[ 410.455172] [WLAN-MOD-INIT][I]do_wlan_drv_init:WLAN-GEN2 driver init, ret:0
[ 410.462179] [WLAN-MOD-INIT][I]do_wlan_drv_init:finish wlan module init
[ 410.469633] [WMT-DETECT][I]wmt_detect_close:close major 154 minor 0 (pid 4191
)
[ 413.490436] [WMT-CORE][E]opfunc_hif_conf(874):WMT-CORE: WMT HIF info added
[ 413.497534] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 234
[ 413.502960] vcn18: mode operation not allowed
[ 413.507301] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 238
[ 413.512690] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 241
[ 413.518054] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 243
[ 413.523934] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 250
[ 413.529653] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 277
[ 413.535625] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 279
[ 413.541019] DEBUG: Passed mtk_wcn_consys_power_on 193
[ 413.546145] DEBUG: Passed mtk_wcn_consys_power_on 195
[ 413.551325] DEBUG: Passed mtk_wcn_consys_power_on 202
[ 413.556429] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 281
[ 413.561825] DEBUG: Passed mtk_wcn_consys_hw_reg_ctrl 286
[ 413.618869] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6620.defAn
t'.
[ 413.626228] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6628.defAn
t'.
[ 413.633619] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6630.defAn
t'.
[ 418.551886] kalFirmwareImageMapping firmware size 225840
11: ap0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen
1000
link/ether 02:08:22:1c:d3:01 brd ff:ff:ff:ff:ff:ff
Done, all good, ready to lauch hostapd
set IP
restart dnsmasq...
but this may be related to BT-Issue:
[ 410.138866] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 649, (0)
[ 410.138870] [WMT-CORE][E]opfunc_pwr_on(918):WMT-CORE: wmt_core_stp_init fail
(-1)
[ 410.138874] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 919, (0)
[ 410.138880] [WMT-CORE][E]wmt_core_ctrl(500):WMT-CORE: wmt_core_ctrl failed: i
d(5), type(1), value(0) iRet:(-1)
[ 410.138884] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 501, (0)
[ 410.138890] [WMT-CORE][E]wmt_core_ctrl(500):WMT-CORE: wmt_core_ctrl failed: i
d(5), type(0), value(0) iRet:(-1)
[ 410.138893] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 501, (0)
[ 410.138900] [WMT-CORE][E]wmt_core_ctrl(500):WMT-CORE: wmt_core_ctrl failed: i
d(3), type(0), value(0) iRet:(-2)
[ 410.138904] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 501, (0)
[ 410.139016] vcn18: mode operation not allowed
[ 410.139036] [WMT-CORE][E]opfunc_func_on(1025):func(0) pwr_on fail(-2)
[ 410.139040] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.
c, 1026, (0)
[ 410.139082] mtk_bt_hci_open func on failed with 0