how to enable bluetooth drivers on imx8m NANO custom board

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

how to enable bluetooth drivers on imx8m NANO custom board

1,696 Views
anurag16doshi
Contributor II

HI ,

I am working on imx8m NANO custom board running on Android 10 OS.i am able to enable the wifi drivers and connect to hotspot using adb commands.now i wan to enable Bluetooth drivers and connect to random device.as per my knowledge,,BT drivers are already enabled and inserted.my final product will not have any display to operate the modules.when i connect display for testing purpose and enable bluetooth,it automatically gets turned off when i try to pair to a device. when i use "svc bluetooth enable" command it shows following prints-

"svc bluetooth enable"
evk_8mn:/ # [ 4591.744475] rfkill: BT RF going to : off
[ 4591.748629] rfkill: BT RF going to : on
[ 4591.752481] mxc_bt_rfkill_reset
[ 4592.650814] init: Untracked pid 2915 exited with status 0
[ 4592.671040] init: Untracked pid 2913 exited with status 0
[ 4592.752336] binder: release 2872:2908 transaction 89192 in, still active
[ 4592.759101] binder: release 2872:2908 transaction 89189 out, still active
[ 4592.770373] binder: send failed reply for transaction 89192 to 2853:2853
[ 4592.777503] binder: 2853:2853 transaction failed 29189/0, size 4-0 line 3074
[ 4592.784898] binder: send failed reply for transaction 89189, target dead
[ 4592.903751] init: Untracked pid 2925 exited with status 0
[ 4592.915425] binder: undelivered death notification, 0000fbc16281c280
[ 4592.926831] init: Service 'vendor.bluetooth-1-0' (pid 2853) received signal 11
[ 4592.940119] init: Sending signal 9 to service 'vendor.bluetooth-1-0' (pid 2853) process group...
[ 4592.950814] libprocessgroup: Successfully killed process cgroup uid 1002 pid 2853 in 0ms
[ 4592.974974] init: Untracked pid 2927 exited with status 0
[ 4592.985818] init: starting service 'vendor.bluetooth-1-0'...
[ 4594.066779] rfkill: BT RF going to : off
[ 4594.070901] rfkill: BT RF going to : on
[ 4594.074757] mxc_bt_rfkill_reset
[ 4594.955779] init: Untracked pid 2978 exited with status 0
[ 4594.969052] init: Untracked pid 2976 exited with status 0
[ 4595.022388] binder: release 2935:2971 transaction 89620 in, still active
[ 4595.029152] binder: release 2935:2971 transaction 89617 out, still active
[ 4595.037452] binder: send failed reply for transaction 89620 to 2933:2933
[ 4595.044322] binder: 2933:2933 transaction failed 29189/0, size 4-0 line 3074
[ 4595.051727] binder: send failed reply for transaction 89617, target dead
[ 4595.156177] binder: undelivered death notification, 0000eabb96e1c280
[ 4598.003775] init: starting service 'vendor.bluetooth-1-0'...

 

i dont  see my device name if scanned from mobile-

when i use "adb shell dumpsys bluetooth_manager"-

Bluetooth Status
enabled: false
state: OFF
address: null
name: iMX8

Enable log:
02-12 13:45:42 Disabled due to CRASH by android
02-12 13:47:24 Disabled due to APPLICATION_REQUEST by null
02-12 13:47:51 Enabled due to APPLICATION_REQUEST by null
02-12 13:47:53 Disabled due to CRASH by android
02-12 13:47:55 Disabled due to CRASH by android
02-12 13:51:45 Disabled due to APPLICATION_REQUEST by null
02-12 13:52:00 Enabled due to APPLICATION_REQUEST by null
02-12 13:52:01 Disabled due to CRASH by android
02-12 13:52:04 Disabled due to CRASH by android
02-12 13:54:55 Disabled due to APPLICATION_REQUEST by null
02-12 13:55:30 Disabled due to APPLICATION_REQUEST by null
02-12 13:56:58 Enabled due to APPLICATION_REQUEST by null
02-12 13:56:59 Disabled due to CRASH by android
02-12 13:57:02 Disabled due to CRASH by android
02-12 13:57:51 Enabled due to APPLICATION_REQUEST by null
02-12 13:57:52 Disabled due to CRASH by android
02-12 13:57:55 Disabled due to CRASH by android
02-12 13:58:56 Disabled due to APPLICATION_REQUEST by null
02-12 13:59:01 Enabled due to APPLICATION_REQUEST by null
02-12 13:59:02 Disabled due to CRASH by android
02-12 13:59:05 Disabled due to CRASH by android

Bluetooth crashed 20 times
02-12 12:59:05
02-12 12:59:06
02-12 12:59:11
02-12 12:59:15
02-12 12:59:20
02-12 12:59:21
02-12 12:59:26
02-12 12:59:31
02-12 13:45:40
02-12 13:45:42
02-12 13:47:53
02-12 13:47:55
02-12 13:52:01
02-12 13:52:04
02-12 13:56:59
02-12 13:57:02
02-12 13:57:52
02-12 13:57:55
02-12 13:59:02
02-12 13:59:05

0 BLE appsregistered

RemoteException while dumping Bluetooth Service

 

i dont know what i am missing to properly enable the BT module.Please guide me how can i make the BT module UP.

 

Thanks in advance.

0 Kudos
4 Replies

374 Views
amul_patel
Contributor I

Hi ,

Any solution for bluetooth ?

I am also facing same issue on imx8 , Intel card AX210.

Thanks,

Amul Patel

0 Kudos

1,465 Views
shamiullah
Contributor III

Hi @anurag16doshi 

I am working on imx8mm board android 10 . I can able to turn ON and connect to a WiFi but i can't able to ON the bluetooth. I am facing similar issues like what you have faced. If your bluetooth issue get resolved, can you please provide me the information how you solved the issue.

Error Logs:

[ 118.420728] alloc_contig_range: [91400, 917e9) PFNs busy
[ 118.435702] alloc_contig_range: [91400, 917e9) PFNs busy
[ 119.316668] init: Untracked pid 2603 exited with status 0
[ 119.328533] init: Untracked pid 2605 exited with status 0

[ 119.346348] binder: release 2559:2598 transaction 129786 in, still active
[ 119.353206] binder: release 2559:2598 transaction 129782 out, still active

[ 119.360119] binder: send failed reply for transaction 129786 to 2539:2540
[ 119.367087] binder: 2539:2540 transaction failed 29189/0, size 4-0 line 3074
[ 119.374749] binder: send failed reply for transaction 129782, target dead

[ 119.390934] alloc_contig_range: [91600, 9176d) PFNs busy
[ 119.451069] init: Untracked pid 2617 exited with status 0
[ 119.451591] binder: undelivered death notification, 0000e8e826a3e000
[ 119.456794] init: Service 'vendor.bluetooth-1-0' (pid 2539) received signal 11
[ 119.470381] init: Sending signal 9 to service 'vendor.bluetooth-1-0' (pid 2539) process group...
[ 119.479976] libprocessgroup: Successfully killed process cgroup uid 1002 pid 2539 in 0ms
[ 119.488544] init: updatable process 'vendor.bluetooth-1-0' exited 4 times in 4 minutes
[ 119.496803] init: Init cannot set 'ro.init.updatable_crashing_process_name' to 'vendor.bluetooth-1-0': Read-only property was already set
[ 119.509875] init: Init cannot set 'ro.init.updatable_crashing' to '1': Read-only property was already set
[ 119.522913] init: Untracked pid 2619 exited with status 0
[ 121.305431] alloc_contig_range: [91600, 91733) PFNs busy
[ 121.310971] binder: release 2627:2666 transaction 131624 in, still active
[ 121.317836] binder: release 2627:2666 transaction 131617 out, still active
[ 121.324739] binder: send failed reply for transaction 131624 to 2624:2626
[ 121.331656] binder: 2624:2626 transaction failed 29189/0, size 4-0 line 3074
[ 121.338753] binder: send failed reply for transaction 131617, target dead
[ 121.353838] alloc_contig_range: [91600, 91733) PFNs busy
[ 121.379369] alloc_contig_range: [91600, 9176d) PFNs busy
[ 121.430931] binder: undelivered death notification, 0000e6dee543e000

Thanks and Regards

Shamiullah

 

0 Kudos

709 Views
ducho7783
Contributor III

Hi @shamiullah 

I'm also facing same issue in Android 11, same in my case it not getting turn on.

if you got any solution then please provide.

Thanks.

0 Kudos

1,691 Views
igorpadykov
NXP Employee
NXP Employee

Hi anurag16doshi

 

for bluetooth one can refer to Release Notes, to check what chip is supported.

https://www.nxp.com/design/software/embedded-software/i-mx-software/android-os-for-i-mx-applications...

and sect.4.12 Bluetooth  i.MX Linux Reference Manual​ , Chapter 11 Connectivity  i.MX Linux User’s Guide​

 

Best regards
igor

0 Kudos