Hi All,
I have ported android on DM3730 and I want to enable Bluetooth and WIFI on Android 2.3.4 (Gingerbread).
kernel : rowboat-kernel-2.6.37-variscite
File system : AM37X
I performed necessary changes as per TI's document :
http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1_PortingGuides
1) In WIFI, All other configuration are already there, I am bit confused about "corresponding patch Added emulation of Android private ioctls for generic WiFi drivers"
How to apply above patch ??
2) In Bluetooth, I already performed changes in Boardconfig.mk , init.rc files in android filesystem and kernel configuration as per above document. but when i starts bluetooth from settings , at that time i get the state change event (in my logcat) but could not get the enable bluetooth.
Error Logcat :
--------------------------------------------------------------------------------------------------------------------------------------------------------
D/BluetoothService( 1148): Bluetooth state 10 -> 11
V/BluetoothEventRedirector( 2067): Received android.bluetooth.adapter.action.STATE_CHANGED
D/dalvikvm( 1500): GC_EXPLICIT freed 478K, 52% free 2765K/5703K, external 716K/1038K, paused 60ms
I/bluedroid( 1148): Starting hciattach daemon
E/bluedroid( 1148): bt_enable: Timeout waiting for HCI device to come up
D/BluetoothService( 1148): Bluetooth state 11 -> 10
V/BluetoothEventRedirector( 2067): Received android.bluetooth.adapter.action.STATE_CHANGED
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
D/wpa_supplicant( 3190): Initializing interface 'wlan0' conf '/data/misc/wifi/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
D/wpa_supplicant( 3190): Configuration file '/data/misc/wifi/wpa_supplicant.conf' -> '/data/misc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 3190): Reading configuration file '/data/misc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 3190): update_config=1
D/wpa_supplicant( 3190): ctrl_interface='wlan0'
D/wpa_supplicant( 3190): eapol_version=1
D/wpa_supplicant( 3190): ap_scan=1
D/wpa_supplicant( 3190): fast_reauth=1
D/wpa_supplicant( 3190): Initializing interface (2) 'wlan0'
E/wpa_supplicant( 3190): ioctl[SIOCGIFFLAGS]
E/wpa_supplicant( 3190): ioctl[SIOCSIWPMKSA]
E/wpa_supplicant( 3190): ioctl[SIOCSIWMODE]
E/wpa_supplicant( 3190): ioctl[SIOCGIRANGE]
E/wpa_supplicant( 3190): ioctl[SIOCGIWMODE]
E/wpa_supplicant( 3190): ioctl[SIOCSIWAP]
D/wpa_supplicant( 3190): WEXT: Operstate: linkmode=1, operstate=5
D/wpa_supplicant( 3190): Failed to add interface wlan0
D/wpa_supplicant( 3190): wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
E/wpa_supplicant( 3190): ioctl[SIOCSIWENCODEEXT]
D/wpa_supplicant( 3190): Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
E/wpa_supplicant( 3190): ioctl[SIOCSIWENCODE]
D/wpa_supplicant( 3190): wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
E/wpa_supplicant( 3190): ioctl[SIOCSIWENCODEEXT]
D/wpa_supplicant( 3190): Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
E/wpa_supplicant( 3190): ioctl[SIOCSIWENCODE]
D/wpa_supplicant( 3190): wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
E/wpa_supplicant( 3190): ioctl[SIOCSIWENCODEEXT]
D/wpa_supplicant( 3190): Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
E/wpa_supplicant( 3190): ioctl[SIOCSIWENCODE]
D/wpa_supplicant( 3190): wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
E/wpa_supplicant( 3190): ioctl[SIOCSIWENCODEEXT]
D/wpa_supplicant( 3190): Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
E/wpa_supplicant( 3190): ioctl[SIOCSIWENCODE]
D/wpa_supplicant( 3190): State: DISCONNECTED -> DISCONNECTED
I/wpa_supplicant( 3190): CTRL-EVENT-STATE-CHANGE id=-1 state=0 BSSID=00:00:00:00:00:00
D/wpa_supplicant( 3190): wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
D/wpa_supplicant( 3190): WEXT: Operstate: linkmode=-1, operstate=5
D/wpa_supplicant( 3190): wpa_driver_wext_set_wpa
D/wpa_supplicant( 3190): WEXT: SIOCSIWAUTH(param 7 value 0x0) failed: No such device)
E/wpa_supplicant( 3190): Failed to disable WPA in the driver.
D/wpa_supplicant( 3190): wpa_driver_wext_set_drop_unencrypted
D/wpa_supplicant( 3190): WEXT: SIOCSIWAUTH(param 5 value 0x0) failed: No such device)
D/wpa_supplicant( 3190): wpa_driver_wext_set_countermeasures
D/wpa_supplicant( 3190): WEXT: SIOCSIWAUTH(param 4 value 0x0) failed: No such device)
D/wpa_supplicant( 3190): No keys have been configured - skip key clearing
D/wpa_supplicant( 3190): Cancelling scan request
D/wpa_supplicant( 3190): Cancelling authentication timeout
E/wpa_supplicant( 3190): ioctl[SIOCGIWMODE]
E/wpa_supplicant( 3190): ioctl[SIOCSIWAP]
D/wpa_supplicant( 3190): WEXT: Operstate: linkmode=0, operstate=6
E/wpa_supplicant( 3190): ioctl[SIOCGIFFLAGS]
--------------------------------------------------------------------------------------------------------------------------------------------------
Thanks.
Nimit