imx7d murata 1mw Bluetooth crashes after downloading patch file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx7d murata 1mw Bluetooth crashes after downloading patch file

825 Views
asmaa
Contributor V

Hello Everyone,

On our imx7d board, we are using murata 1mw wifi+bluetooth module. I observed that Bluetooth crashes after downloading patch files.   

log is here:

2021-07-09 19:08:42.423 1783-1783/? D/bt_vendor: op for 3
2021-07-09 19:08:42.423 1783-1783/? I/bt_userial_vendor: userial vendor open: opening /dev/ttymxc2
2021-07-09 19:08:42.424 1783-1783/? I/bt_userial_vendor: device fd = 6 open
2021-07-09 19:08:42.425 1783-1783/? D/bt_vendor: op for 1
2021-07-09 19:08:42.425 1783-1783/? I/bt_hwcfg: hw_config_start
2021-07-09 19:08:42.425 1783-1783/? D/bt_vendor: op for 7
2021-07-09 19:08:42.425 1783-1783/? D/bt_vendor: LPM state for 0
2021-07-09 19:08:42.426 1783-1845/? E/android.hardware.bluetooth@1.0-impl: ThreadRoutine unable to set SCHED_FIFO for pid 1783, tid 1845, error Operation not permitted
2021-07-09 19:08:42.472 1783-1845/? E/bt_hwcfg: bt vendor lib:1
2021-07-09 19:08:42.475 1783-1845/? E/bt_hwcfg: bt vendor lib:3
2021-07-09 19:08:42.475 1783-1845/? I/bt_hwcfg: bt vendor lib: set UART baud 3000000
2021-07-09 19:08:42.476 1783-1845/? E/bt_hwcfg: bt vendor lib:4
2021-07-09 19:08:42.476 1783-1845/? D/bt_hwcfg: Chipset BCM4345C0
2021-07-09 19:08:42.476 1783-1845/? D/bt_hwcfg: Target name = [BCM4345C0]
2021-07-09 19:08:42.476 1783-1845/? I/bt_hwcfg: FW patchfile: /vendor/firmware/brcm/BCM4345C0.1MW.hcd
2021-07-09 19:08:42.477 1783-1845/? E/bt_hwcfg: bt vendor lib:5

021-07-09 19:08:42.836 1783-1845/? E/bt_hwcfg: bt vendor lib: set UART baud 115200
2021-07-09 19:08:42.836 1783-1845/? I/bt_hwcfg: Setting fw settlement delay to 200
2021-07-09 19:08:42.951 1783-1845/? A/android.hardware.bluetooth-hci-h4: OnDataReady: Unimplemented packet type 0
2021-07-09 19:08:42.952 1783-1845/? A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 1845 (bluetooth@1.0-s), pid 1783 (bluetooth@1.0-s)
2021-07-09 19:08:42.995 1849-1849/? I/crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
2021-07-09 19:08:42.996 342-342/? I//system/bin/tombstoned: received crash request for pid 1845
2021-07-09 19:08:42.997 1849-1849/? I/crash_dump32: performing dump of process 1783 (target tid = 1845)
2021-07-09 19:08:43.002 1849-1849/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2021-07-09 19:08:43.002 1849-1849/? A/DEBUG: Build fingerprint: 'Android/qt850a_test/qt850a:9/9.9.9/asmas07091736:userdebug/dev-keys'
2021-07-09 19:08:43.002 1849-1849/? A/DEBUG: Revision: '0'
2021-07-09 19:08:43.002 1849-1849/? A/DEBUG: ABI: 'arm'
2021-07-09 19:08:43.002 1849-1849/? A/DEBUG: pid: 1783, tid: 1845, name: bluetooth@1.0-s >>> /vendor/bin/hw/android.hardware.bluetooth@1.0-service <<<
2021-07-09 19:08:43.002 1849-1849/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
2021-07-09 19:08:43.002 1849-1849/? A/DEBUG: Abort message: 'OnDataReady: Unimplemented packet type 0'
2021-07-09 19:08:43.002 1849-1849/? A/DEBUG: r0 00000000 r1 00000735 r2 00000006 r3 b161f5e8
2021-07-09 19:08:43.002 1849-1849/? A/DEBUG: r4 000006f7 r5 00000735 r6 b0cd03c4 r7 0000010c
2021-07-09 19:08:43.002 1849-1849/? A/DEBUG: r8 00000006 r9 b114d024 r10 000003e8 r11 b114d050
2021-07-09 19:08:43.002 1849-1849/? A/DEBUG: ip b0cd0870 sp b0cd03b0 lr b15ab01d pc b15a2da2
2021-07-09 19:08:43.010 1849-1849/? A/DEBUG: backtrace:
2021-07-09 19:08:43.011 1849-1849/? A/DEBUG: #00 pc 0001cda2 /system/lib/libc.so (abort+62)
2021-07-09 19:08:43.011 1849-1849/? A/DEBUG: #01 pc 00006d45 /system/lib/liblog.so (__android_log_assert+156)
2021-07-09 19:08:43.011 1849-1849/? A/DEBUG: #02 pc 000071a1 /vendor/lib/hw/android.hardware.bluetooth@1.0-impl.so (android::hardware::bluetooth::hci::H4Protocol::OnDataReady(int)+208)
2021-07-09 19:08:43.011 1849-1849/? A/DEBUG: #03 pc 00006d15 /vendor/lib/hw/android.hardware.bluetooth@1.0-impl.so (android::hardware::bluetooth::async::AsyncFdWatcher::ThreadRoutine()+472)
2021-07-09 19:08:43.011 1849-1849/? A/DEBUG: #04 pc 00006f87 /vendor/lib/hw/android.hardware.bluetooth@1.0-impl.so (_ZNSt3__114__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEZN7android8hardware9bluetooth5async14AsyncFdWatcher14tryStartThreadEvE3$_0EEEEEPvSE_+22)
2021-07-09 19:08:43.011 1849-1849/? A/DEBUG: #05 pc 00063a05 /system/lib/libc.so (__pthread_start(void*)+22)
2021-07-09 19:08:43.011 1849-1849/? A/DEBUG: #06 pc 0001df95 /system/lib/libc.so (__start_thread+22)

 

 

The highlighted part shows the reason for the crash in the Bluetooth stack, it is getting packet type unknown, which causes it to fail.

If there is no patch file, it works fine. But I need the patch file to work so that I get updated bluetooth firmware.

Can somebody please help, how to resolve this.

 

Thanks,

Asma

Labels (1)
Tags (2)
0 Replies