iMX6ULL wifi and ble realy unstable

Hi i try to use the internal wifi/bluetooth module of iMX6ULL

for wifi i use network-manager i can connect wifi but after a smal time he stop working and disappear form ifconfig and in dmesg i have

 [ 1139.777658] mwifiex_sdio mmc1:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id = 0x107, act = 0x0
    [ 1139.786691] mwifiex_sdio mmc1:0001:1: num_data_h2c_failure = 0
    [ 1139.792589] mwifiex_sdio mmc1:0001:1: num_cmd_h2c_failure = 0
    [ 1139.798390] mwifiex_sdio mmc1:0001:1: is_cmd_timedout = 1
    [ 1139.803842] mwifiex_sdio mmc1:0001:1: num_tx_timeout = 0
    [ 1139.809207] mwifiex_sdio mmc1:0001:1: last_cmd_index = 1
    [ 1139.814577] mwifiex_sdio mmc1:0001:1: last_cmd_id: 07 01 07 01 16 00 07 01 07 01
    [ 1139.822030] mwifiex_sdio mmc1:0001:1: last_cmd_act: 00 00 00 00 00 00 00 00 00 00
    [ 1139.829619] mwifiex_sdio mmc1:0001:1: last_cmd_resp_index = 0
    [ 1139.835423] mwifiex_sdio mmc1:0001:1: last_cmd_resp_id: 07 81 7f 80 16 80 07 81 07 81
    [ 1139.843308] mwifiex_sdio mmc1:0001:1: last_event_index = 1
    [ 1139.848850] mwifiex_sdio mmc1:0001:1: last_event: 58 00 58 00 0b 00 0a 00 58 00
    [ 1139.856218] mwifiex_sdio mmc1:0001:1: data_sent=0 cmd_sent=0
    [ 1139.861933] mwifiex_sdio mmc1:0001:1: ps_mode=1 ps_state=0
    [ 1139.878499] mwifiex_sdio mmc1:0001:1: ===mwifiex driverinfo dump start===
    [ 1139.885329] mwifiex_sdio mmc1:0001:1: info: MWIFIEX VERSION: mwifiex 1.0 (16.68.1.p179) 
    [ 1139.893630] mwifiex_sdio mmc1:0001:1: SDIO register dump start
    [ 1139.918414] mwifiex_sdio mmc1:0001:1: SDIO Func0 (0x0-0x9): 43 03 06 06 07 00 00 02 03 00 
    [ 1139.933641] mwifiex_sdio mmc1:0001:1: SDIO Func1 (0x10-0x17): 00 00 00 00 00 00 00 f0 
    [ 1139.942272] mwifiex_sdio mmc1:0001:1: SDIO Func1: (0x8) c3 (0x58) 00 (0x5c) 88 (0x5d) 00 (0x60) 07 (0x61) 0c (0x62) 00 (0x64) 10 (0x65) 00 (0x66) 00 (0x68) 00 (0x69) 00 (0x6a) 00 
    [ 1139.962678] mwifiex_sdio mmc1:0001:1: SDIO Func1 (0xe8-0xf2): dc fe b3 5a 61 06 07 88 87 01 70 
    [ 1140.074355] mwifiex_sdio mmc1:0001:1: SDIO Func1 (0xe8-0xf2): dc fe b3 5a 61 06 07 88 87 01 70 
    [ 1140.083187] mwifiex_sdio mmc1:0001:1: SDIO register dump end
    [ 1140.092594] mwifiex_sdio mmc1:0001:1: ===mwifiex driverinfo dump end===
    [ 1140.101438] mwifiex_sdio mmc1:0001:1: == mwifiex firmware dump start ==
    [ 1140.135916] mwifiex_sdio mmc1:0001:1: Fail to pull ctrl_data
    [ 1140.141667] mwifiex_sdio mmc1:0001:1: firmware dump failed
    [ 1140.147170] mwifiex_sdio mmc1:0001:1: == mwifiex dump information to /sys/class/devcoredump start
    [ 1140.163436] mwifiex_sdio mmc1:0001:1: == mwifiex dump information to /sys/class/devcoredump end
    [ 1140.172836] mwifiex_sdio mmc1:0001:1: PREP_CMD: FW is in bad state
    [ 1140.180465] mwifiex_sdio mmc1:0001:1: info: shutdown mwifiex...
    [ 1140.186793] mwifiex_sdio mmc1:0001:1: failed to get signal information
    [ 1140.198578] mwifiex_sdio mmc1:0001:1: PREP_CMD: card is removed
    [ 1140.205120] mwifiex_sdio mmc1:0001:1: deleting the crypto keys
    [ 1140.211125] mwifiex_sdio mmc1:0001:1: PREP_CMD: card is removed
    [ 1140.217058] mwifiex_sdio mmc1:0001:1: deleting the crypto keys
    [ 1140.222946] mwifiex_sdio mmc1:0001:1: PREP_CMD: card is removed
    [ 1140.228919] mwifiex_sdio mmc1:0001:1: deleting the crypto keys
    [ 1140.234761] mwifiex_sdio mmc1:0001:1: PREP_CMD: card is removed
    [ 1140.240796] mwifiex_sdio mmc1:0001:1: deleting the crypto keys
    [ 1140.246643] mwifiex_sdio mmc1:0001:1: PREP_CMD: card is removed
    [ 1140.252615] mwifiex_sdio mmc1:0001:1: deleting the crypto keys
    [ 1140.258481] mwifiex_sdio mmc1:0001:1: PREP_CMD: card is removed
    [ 1140.264408] mwifiex_sdio mmc1:0001:1: deleting the crypto keys
    [ 1140.272781] ieee80211 phy1: mwifiex_cfg80211_sched_scan_start : Invalid Sched_scan parameters
    [ 1140.307028] mwifiex_sdio mmc1:0001:1: PREP_CMD: card is removed
    [ 1140.315662] mwifiex_sdio mmc1:0001:1: PREP_CMD: card is removed
    [ 1140.399339] mwifiex_sdio mmc1:0001:1: PREP_CMD: card is removed
    [ 1140.463430] mwifiex_sdio mmc1:0001:1: PREP_CMD: card is removed
    [ 1140.476988] mwifiex_sdio mmc1:0001:1: PREP_CMD: card is removed
    [ 1140.891651] mwifiex_sdio mmc1:0001:1: WLAN FW already running! Skip FW dnld
    [ 1140.898797] mwifiex_sdio mmc1:0001:1: WLAN FW is active
    [ 1151.298416] mwifiex_sdio mmc1:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id = 0xa9, act = 0x0
    [ 1151.307352] mwifiex_sdio mmc1:0001:1: num_data_h2c_failure = 0
    [ 1151.313250] mwifiex_sdio mmc1:0001:1: num_cmd_h2c_failure = 0
    [ 1151.319050] mwifiex_sdio mmc1:0001:1: is_cmd_timedout = 1
    [ 1151.324503] mwifiex_sdio mmc1:0001:1: num_tx_timeout = 0
    [ 1151.329869] mwifiex_sdio mmc1:0001:1: last_cmd_index = 2
    [ 1151.335239] mwifiex_sdio mmc1:0001:1: last_cmd_id: 07 01 07 01 a9 00 07 01 07 01
    [ 1151.342690] mwifiex_sdio mmc1:0001:1: last_cmd_act: 00 00 00 00 00 00 00 00 00 00
    [ 1151.350226] mwifiex_sdio mmc1:0001:1: last_cmd_resp_index = 0
    [ 1151.356027] mwifiex_sdio mmc1:0001:1: last_cmd_resp_id: 07 81 7f 80 16 80 07 81 07 81
    [ 1151.363910] mwifiex_sdio mmc1:0001:1: last_event_index = 1
    [ 1151.369512] mwifiex_sdio mmc1:0001:1: last_event: 58 00 58 00 0b 00 0a 00 58 00
    [ 1151.376882] mwifiex_sdio mmc1:0001:1: data_sent=1 cmd_sent=1
    [ 1151.382598] mwifiex_sdio mmc1:0001:1: ps_mode=0 ps_state=0
    [ 1151.408560] mwifiex_sdio mmc1:0001:1: info: _mwifiex_fw_dpc: unregister device
    [ 1167.939777] INFO: task kworker/0:0:645 blocked for more than 10 seconds.
    [ 1167.946548]       Tainted: G           O    4.9.87-2.8.4+g3bb6e3284a1b #1
    [ 1167.953526] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    [ 1167.961573] kworker/0:0     D    0   645      2 0x00000000
    [ 1167.967266] Workqueue: events mwifiex_sdio_work [mwifiex_sdio]
    [ 1167.973259] Backtrace: 
    [ 1167.975804] [<807aa120>] (__schedule) from [<807aa734>] (schedule+0x44/0xa4)
    [ 1167.983089]  r10:7fffffff r9:00000000 r8:00000000 r7:00000002 r6:9407dd08 r5:ffffe000
    [ 1167.991187]  r4:ffffe000
    [ 1167.993799] [<807aa6f0>] (schedule) from [<807ad6c0>] (schedule_timeout+0x1cc/0x274)
    [ 1168.001673]  r5:ffffe000 r4:7fffffff
    [ 1168.005314] [<807ad4f4>] (schedule_timeout) from [<807ab1e4>] (wait_for_common+0xc8/0x190)
    [ 1168.013747]  r8:00000000 r7:00000002 r6:9407dd08 r5:ffffe000 r4:9407dd04
    [ 1168.020590] [<807ab11c>] (wait_for_common) from [<807ab2c4>] (wait_for_completion+0x18/0x1c)
    [ 1168.029094]  r10:80c02d00 r9:80c0e6b4 r8:00000000 r7:97b97900 r6:97b94600 r5:94492fa0
    [ 1168.037059]  r4:94bb7c00
    [ 1168.039738] [<807ab2ac>] (wait_for_completion) from [<8013ba30>] (flush_work+0x138/0x19c)
    [ 1168.047988] [<8013b8f8>] (flush_work) from [<8013d7e8>] (__cancel_work_timer+0x94/0x1ac)
    [ 1168.056204]  r7:9407c000 r6:00000000 r5:94492fa0 r4:00000011
    [ 1168.062034] [<8013d754>] (__cancel_work_timer) from [<8013d914>] (cancel_work_sync+0x14/0x18)
    [ 1168.070699]  r9:00000001 r8:7f2cee80 r7:94492f18 r6:94716000 r5:00000001 r4:94492f10
    [ 1168.078563] [<8013d900>] (cancel_work_sync) from [<7f36571c>] (mwifiex_cleanup_sdio+0x18/0x44 [mwifiex_sdio])
    [ 1168.089178] [<7f365704>] (mwifiex_cleanup_sdio [mwifiex_sdio]) from [<7f29b344>] (mwifiex_unregister+0x20/0xcc [mwifiex])
    [ 1168.100394]  r5:00000001 r4:94716000
    [ 1168.104811] [<7f29b324>] (mwifiex_unregister [mwifiex]) from [<7f29c1d4>] (_mwifiex_fw_dpc+0x100/0x45c [mwifiex])
    [ 1168.115295]  r7:94492f18 r6:94717000 r5:00000001 r4:94716000
    [ 1168.121859] [<7f29c0d4>] (_mwifiex_fw_dpc [mwifiex]) from [<7f29c68c>] (mwifiex_reinit_sw+0x148/0x29c [mwifiex])
    [ 1168.132206]  r8:7f368fa4 r7:ffffffe0 r6:94717000 r5:00000000 r4:94716000
    [ 1168.139401] [<7f29c544>] (mwifiex_reinit_sw [mwifiex]) from [<7f3657e0>] (mwifiex_sdio_work+0x98/0x788 [mwifiex_sdio])
    [ 1168.150304]  r7:94492f10 r6:94716000 r5:943e8a00 r4:94492fb0
    [ 1168.156093] [<7f365748>] (mwifiex_sdio_work [mwifiex_sdio]) from [<8013cbc8>] (process_one_work+0x1f0/0x418)
    [ 1168.166073]  r10:80c02d00 r9:00000000 r8:00000000 r7:97b97900 r6:97b94600 r5:94bb7c00
    [ 1168.174045]  r4:94492fa0
    [ 1168.176654] [<8013c9d8>] (process_one_work) from [<8013db7c>] (worker_thread+0x68/0x5fc)
    [ 1168.184900]  r10:80c02d00 r9:00000008 r8:ffffe000 r7:97b94618 r6:94bb7c18 r5:97b94600
    [ 1168.192838]  r4:94bb7c00
    [ 1168.195441] [<8013db14>] (worker_thread) from [<80142dd4>] (kthread+0x110/0x118)
    [ 1168.203061]  r10:00000000 r9:00000000 r8:8013db14 r7:94bb7c00 r6:9407c000 r5:94b88400
    [ 1168.211005]  r4:00000000
    [ 1168.213609] [<80142cc4>] (kthread) from [<80107db0>] (ret_from_fork+0x14/0x24)
    [ 1168.220960]  r8:00000000 r7:00000000 r6:00000000 r5:80142cc4 r4:94b88400
    [ 1178.820480] INFO: task kworker/0:0:645 blocked for more than 10 seconds.
    [ 1178.827252]       Tainted: G           O    4.9.87-2.8.4+g3bb6e3284a1b #1
    [ 1178.834233] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    [ 1178.842280] kworker/0:0     D    0   645      2 0x00000000
    [ 1178.848106] Workqueue: events mwifiex_sdio_work [mwifiex_sdio]
    [ 1178.854118] Backtrace: 
    [ 1178.856663] [<807aa120>] (__schedule) from [<807aa734>] (schedule+0x44/0xa4)
    [ 1178.863907]  r10:7fffffff r9:00000000 r8:00000000 r7:00000002 r6:9407dd08 r5:ffffe000
    [ 1178.871862]  r4:ffffe000
    [ 1178.874467] [<807aa6f0>] (schedule) from [<807ad6c0>] (schedule_timeout+0x1cc/0x274)
    [ 1178.882334]  r5:ffffe000 r4:7fffffff
    [ 1178.885976] [<807ad4f4>] (schedule_timeout) from [<807ab1e4>] (wait_for_common+0xc8/0x190)
    [ 1178.894409]  r8:00000000 r7:00000002 r6:9407dd08 r5:ffffe000 r4:9407dd04
    [ 1178.901255] [<807ab11c>] (wait_for_common) from [<807ab2c4>] (wait_for_completion+0x18/0x1c)
    [ 1178.909758]  r10:80c02d00 r9:80c0e6b4 r8:00000000 r7:97b97900 r6:97b94600 r5:94492fa0
    [ 1178.917742]  r4:94bb7c00
    [ 1178.920485] [<807ab2ac>] (wait_for_completion) from [<8013ba30>] (flush_work+0x138/0x19c)
    [ 1178.928739] [<8013b8f8>] (flush_work) from [<8013d7e8>] (__cancel_work_timer+0x94/0x1ac)
    [ 1178.937093]  r7:9407c000 r6:00000000 r5:94492fa0 r4:00000011
    [ 1178.942951] [<8013d754>] (__cancel_work_timer) from [<8013d914>] (cancel_work_sync+0x14/0x18)
    [ 1178.951663]  r9:00000001 r8:7f2cee80 r7:94492f18 r6:94716000 r5:00000001 r4:94492f10
    [ 1178.959533] [<8013d900>] (cancel_work_sync) from [<7f36571c>] (mwifiex_cleanup_sdio+0x18/0x44 [mwifiex_sdio])
    [ 1178.970173] [<7f365704>] (mwifiex_cleanup_sdio [mwifiex_sdio]) from [<7f29b344>] (mwifiex_unregister+0x20/0xcc [mwifiex])
    [ 1178.981355]  r5:00000001 r4:94716000
    [ 1178.985754] [<7f29b324>] (mwifiex_unregister [mwifiex]) from [<7f29c1d4>] (_mwifiex_fw_dpc+0x100/0x45c [mwifiex])
    [ 1178.996230]  r7:94492f18 r6:94717000 r5:00000001 r4:94716000
    [ 1179.002796] [<7f29c0d4>] (_mwifiex_fw_dpc [mwifiex]) from [<7f29c68c>] (mwifiex_reinit_sw+0x148/0x29c [mwifiex])
    [ 1179.013138]  r8:7f368fa4 r7:ffffffe0 r6:94717000 r5:00000000 r4:94716000
    [ 1179.020334] [<7f29c544>] (mwifiex_reinit_sw [mwifiex]) from [<7f3657e0>] (mwifiex_sdio_work+0x98/0x788 [mwifiex_sdio])
    [ 1179.031292]  r7:94492f10 r6:94716000 r5:943e8a00 r4:94492fb0
    [ 1179.037078] [<7f365748>] (mwifiex_sdio_work [mwifiex_sdio]) from [<8013cbc8>] (process_one_work+0x1f0/0x418)
    [ 1179.047080]  r10:80c02d00 r9:00000000 r8:00000000 r7:97b97900 r6:97b94600 r5:94bb7c00
    [ 1179.055086]  r4:94492fa0
    [ 1179.057698] [<8013c9d8>] (process_one_work) from [<8013db7c>] (worker_thread+0x68/0x5fc)
    [ 1179.065932]  r10:80c02d00 r9:00000008 r8:ffffe000 r7:97b94618 r6:94bb7c18 r5:97b94600
    [ 1179.073897]  r4:94bb7c00
    [ 1179.076501] [<8013db14>] (worker_thread) from [<80142dd4>] (kthread+0x110/0x118)
    [ 1179.084036]  r10:00000000 r9:00000000 r8:8013db14 r7:94bb7c00 r6:9407c000 r5:94b88400
    [ 1179.091968]  r4:00000000
    [ 1179.094571] [<80142cc4>] (kthread) from [<80107db0>] (ret_from_fork+0x14/0x24)
    [ 1179.101953]  r8:00000000 r7:00000000 r6:00000000 r5:80142cc4 r4:94b88400
    [ 1189.701183] INFO: task kworker/0:0:645 blocked for more than 10 seconds.
    [ 1189.707954]       Tainted: G           O    4.9.87-2.8.4+g3bb6e3284a1b #1
    [ 1189.714937] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    [ 1189.723022] kworker/0:0     D    0   645      2 0x00000000
    [ 1189.728676] Workqueue: events mwifiex_sdio_work [mwifiex_sdio]
    [ 1189.734678] Backtrace: 
    [ 1189.737222] [<807aa120>] (__schedule) from [<807aa734>] (schedule+0x44/0xa4)
    [ 1189.744459]  r10:7fffffff r9:00000000 r8:00000000 r7:00000002 r6:9407dd08 r5:ffffe000
    [ 1189.752411]  r4:ffffe000
    [ 1189.755017] [<807aa6f0>] (schedule) from [<807ad6c0>] (schedule_timeout+0x1cc/0x274)
    [ 1189.762880]  r5:ffffe000 r4:7fffffff
    [ 1189.766522] [<807ad4f4>] (schedule_timeout) from [<807ab1e4>] (wait_for_common+0xc8/0x190)
    [ 1189.774955]  r8:00000000 r7:00000002 r6:9407dd08 r5:ffffe000 r4:9407dd04
    [ 1189.781802] [<807ab11c>] (wait_for_common) from [<807ab2c4>] (wait_for_completion+0x18/0x1c)
    [ 1189.790305]  r10:80c02d00 r9:80c0e6b4 r8:00000000 r7:97b97900 r6:97b94600 r5:94492fa0
    [ 1189.798274]  r4:94bb7c00
    [ 1189.800877] [<807ab2ac>] (wait_for_completion) from [<8013ba30>] (flush_work+0x138/0x19c)
    [ 1189.809354] [<8013b8f8>] (flush_work) from [<8013d7e8>] (__cancel_work_timer+0x94/0x1ac)
    [ 1189.817608]  r7:9407c000 r6:00000000 r5:94492fa0 r4:00000011
    [ 1189.823475] [<8013d754>] (__cancel_work_timer) from [<8013d914>] (cancel_work_sync+0x14/0x18)
    [ 1189.832153]  r9:00000001 r8:7f2cee80 r7:94492f18 r6:94716000 r5:00000001 r4:94492f10
    [ 1189.840019] [<8013d900>] (cancel_work_sync) from [<7f36571c>] (mwifiex_cleanup_sdio+0x18/0x44 [mwifiex_sdio])
    [ 1189.850651] [<7f365704>] (mwifiex_cleanup_sdio [mwifiex_sdio]) from [<7f29b344>] (mwifiex_unregister+0x20/0xcc [mwifiex])
    [ 1189.861789]  r5:00000001 r4:94716000
    [ 1189.866186] [<7f29b324>] (mwifiex_unregister [mwifiex]) from [<7f29c1d4>] (_mwifiex_fw_dpc+0x100/0x45c [mwifiex])
    [ 1189.876671]  r7:94492f18 r6:94717000 r5:00000001 r4:94716000
    [ 1189.883244] [<7f29c0d4>] (_mwifiex_fw_dpc [mwifiex]) from [<7f29c68c>] (mwifiex_reinit_sw+0x148/0x29c [mwifiex])
    [ 1189.893598]  r8:7f368fa4 r7:ffffffe0 r6:94717000 r5:00000000 r4:94716000
    [ 1189.900792] [<7f29c544>] (mwifiex_reinit_sw [mwifiex]) from [<7f3657e0>] (mwifiex_sdio_work+0x98/0x788 [mwifiex_sdio])
    [ 1189.911814]  r7:94492f10 r6:94716000 r5:943e8a00 r4:94492fb0
    [ 1189.917611] [<7f365748>] (mwifiex_sdio_work [mwifiex_sdio]) from [<8013cbc8>] (process_one_work+0x1f0/0x418)
    [ 1189.927606]  r10:80c02d00 r9:00000000 r8:00000000 r7:97b97900 r6:97b94600 r5:94bb7c00
    [ 1189.935580]  r4:94492fa0
    [ 1189.938190] [<8013c9d8>] (process_one_work) from [<8013db7c>] (worker_thread+0x68/0x5fc)
    [ 1189.946420]  r10:80c02d00 r9:00000008 r8:ffffe000 r7:97b94618 r6:94bb7c18 r5:97b94600
    [ 1189.954356]  r4:94bb7c00
    [ 1189.956960] [<8013db14>] (worker_thread) from [<80142dd4>] (kthread+0x110/0x118)
    [ 1189.964515]  r10:00000000 r9:00000000 r8:8013db14 r7:94bb7c00 r6:9407c000 r5:94b88400
    [ 1189.972453]  r4:00000000
    [ 1189.975056] [<80142cc4>] (kthread) from [<80107db0>] (ret_from_fork+0x14/0x24)
    [ 1189.982407]  r8:00000000 r7:00000000 r6:00000000 r5:80142cc4 r4:94b88400

using a other wifi in usb work fine

and for bluetooth
hcitool -i hci1 lescann --duplicate
return nothing
or
Set scan parameters failed: Connection timed out

hcitool -i hci0 lescann --duplicate work fine (usb bluetooth)

I know iMX6ULL are for développer are not for final use but i do not can try anything if ble and wifi do not work.

Is possible tu use wifi/ble module?

hi @sifourquier

Welcome to the Toradex Community!!!

Recently there is a new release with some bugfixes for Wifi. Could you update to the 2.8b5 and check if the error is still there?

Thanks and best regards, Jaski