Hi, I'm trying to port wl1271 bluetooth from Android Gingerbread 2.3 to Android ICS, on Blaze similar platform. I have followed the suggested steps in http://processors.wiki.ti.com/index.php/TI-Android-ICS-PortingGuide#Bluetooth but yet I cannot turn on Bluetooth on the Settings menu. It is always force to OFF whenever I try to turn ON bluetooth. Here's the logcat message when I try to turn on bluetooth:
D/BluetoothAdapterStateMachine( 163): PowerOff process message: 1D/BluetoothAdapterStateMachine( 163): Bluetooth state 10 -> 11E/BluetoothAdapterStateMachine( 163): failed to prepare bluetooth, abort turning onD/BluetoothAdapterStateMachine( 163): Bluetooth state 11 -> 10V/BluetoothEventManager( 574): Received android.bluetooth.adapter.action.STATE_CHANGEDD/DockEventReceiver( 574): finishStartingService: stopping service
When debug, I found out that bt_enable() in mydroid/system/bluetooth/bluedroid/bluetooth.c returns false. Am I missing something in the HAL/ framework configurations? Appreciate any comments or replies. Thank you!
Hi Tan,
Have you try the patches kernelpanda5.patch and devicepanda4.patch from http://omappedia.org/wiki/4AI.1.4_OMAP4_Icecream_Sandwich_Panda_Notes. Those seems to make work bluetooth. The drivers have change from GB to ICS, those patches would be a good example on how to update your config and machine files in kernel and also changes in android filesystem.
Regards!
ICe