The source I have is built for the Samsung S5P6818 and on one board there 
is an AP6212 connected via an emmc SDIO connection. This provides Wifi via 
SDIO and BT view UART. 

The board I am working with has no built-in WiFi and I have tried a number 
of modules using the RTL8192CU, RTL8188EU, BCM43438 but none of them get 
detected as a wifi device. Dmesg shows they are detected as a USB device.

I have tried to add the RTL8192CU as this is included in the Linux 3.4 
kernel and I have built this as a module and included this in the build. 
This is copied to the /system/lib/modules/ directory. 

I have found a number of references to doing this with the RTL8192CU and 
included the following in my BoardConfig.mk 

# wifi
BOARD_WIFI_VENDOR := realtek

ifeq ($(BOARD_WIFI_VENDOR),realtek)
WPA_SUPPLICANT_VERSION      := VER_0_8_X
BOARD_WLAN_DEVICE           := rtl
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
BOARD_HOSTAPD_DRIVER        := NL80211
BOARD_HOSTAPD_PRIVATE_LIB   := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
WIFI_DRIVER_MODULE_NAME     := "rtl8192cu"
WIFI_DRIVER_MODULE_PATH     := "/system/lib/modules/rtl8192cu.ko"
endif

I have been unable to find lib_driver_cmd_rtl so I created this as a copy 
from the bcmdhd directory that was present in the source for the original 
BCM43438 AP6212 driver. This might be why it fails but I see no references 
to interface type in that code. ???

Realtek references the wpa_supplicant source but I can't locate this online.

When the board boots, dmesg shows the USB device was detected but I see the 
following in the debug output when I try to enable the WiFi in settings.

[ 9393.896000] dw_mmc dw_mmc.1: Hardware locked write error
[ 9393.912000] dw_mmc dw_mmc.1: Hardware locked write error
[ 9394.932000] dw_mmc dw_mmc.1: Data0: Never released by cmd52
[ 9395.936000] dw_mmc dw_mmc.1: Data0: Never released by cmd52
[ 9395.936000] dw_mmc dw_mmc.1: Hardware locked write error
[ 9396.940000] dw_mmc dw_mmc.1: Data0: Never released by cmd0
[ 9396.940000] dw_mmc dw_mmc.1: Hardware locked write error
[ 9397.948000] dw_mmc dw_mmc.1: Data0: Never released by cmd8
[ 9398.952000] dw_mmc dw_mmc.1: Data0: Never released by cmd5

This I think is the issue but I am unable to figure out where the reference 
to the mmc port is in the source code. My modules is on USB, not mmc.

I have tried to get Android 5.1 drivers from Realtek but have so far failed 
to get any response from them.

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-porting/fd57c6e1-8b84-411c-bf0d-ffb6560e6746%40googlegroups.com.

Reply via email to