How to port rtl8189es to Android JB4.2.2?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to port rtl8189es to Android JB4.2.2?

1,815件の閲覧回数
jiangshao
Contributor V

Dear FAE

I have a imx6dl sabre-sd board with sdio I/F Wi-Fi (rtl8189es, connect to SD2).

How to port rtl8189es to Android JB4.2.2?

BTW, I got these from board maker.

pastedImage_1.png

ラベル(4)
0 件の賞賛
返信
3 返答(返信)

1,193件の閲覧回数
jiangshao
Contributor V

现在,想办法去掉了上述错误,Android已经可以正常编译。

我首先选择了把8189es编译为模块,但是在setting中试图打开wifi时,logcat有如下输出:

哪位知道是为什么吗?是kernel的driver仍旧有问题?

RTL871X: module init start version:v4.1.8_9499.20131104

RTL871X: rtl8189es driver version=v4.1.8_9499.20131104

RTL871X: build time: Oct  8 2016 21:56:17

RTL871X: module init ret=0

D/WifiHW  ( 2509): check_wifi_ifname_from_proc: find lo

D/WifiHW  ( 2509): check_wifi_ifname_from_proc: find eth0

D/WifiHW  ( 2509): check_wifi_ifname_from_proc: find tunl0

D/WifiHW  ( 2509): check_wifi_ifname_from_proc: find sit0

D/WifiHW  ( 2509): check_wifi_ifname_from_proc: find ip6tnl0

D/WifiHW  ( 2509): check_wifi_ifname_from_proc: find eth1

《重复信息》

: 

过几秒钟,wifi的开关自己变为关闭,logcat可见如下信息:

 

D/WifiHW  ( 2509): check_wifi_ifnRTL871X: module exit start

ame_from_proc: find lo

D/WifiHW RTL871X: module exit success

 ( 2509): check_wifi_ifname_from_proc: find eth0

D/WifiHW  ( 2509): check_wifi_ifname_from_proc: find tunl0

D/WifiHW  ( 2509): check_wifi_ifname_from_proc: find sit0

D/WifiHW  ( 2509): check_wifi_ifname_from_proc: find ip6tnl0

D/WifiHW  ( 2509): check_wifi_ifname_from_proc: find eth1

D/WifiHW  ( 2509): check_wifi_ifname_from_proc: find lo

D/WifiHW  ( 2509): check_wifi_ifname_from_proc: find eth0

D/WifiHW  ( 2509): check_wifi_ifname_from_proc: find tunl0

D/WifiHW  ( 2509): check_wifi_ifname_from_proc: find sit0

D/WifiHW  ( 2509): check_wifi_ifname_from_proc: find ip6tnl0

D/WifiHW  ( 2509): check_wifi_ifname_from_proc: find eth1

E/WifiHW  ( 2509): load_driver: get wifi_ifname(PRIMARY) fail

E/WifiStateMachine( 2509): Failed to load driver!

E/WifiStateMachine( 2509): DriverFailedState

D/BluetoothAdapter( 2786): 1097829264: getState() :  mService = null. Returning STATE_OFF

0 件の賞賛
返信

1,193件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi jiang 

please apply to rtl8189es vendor for kernel drivers and

android porting guidelines for this model.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,193件の閲覧回数
jiangshao
Contributor V

Thank you for your reply.

I got RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104 from vendor.

But when I choose "Integrating Driver Source into Linux Kernel Tree", I got the following error msgs.

And when I choose "Compiling Driver in Driver Source Folder", these errors will become Warning...

Anybody knows why?

BTW, my host is ubuntu 12.

Target is Android4.2.2

-------------------------------

drivers/built-in.o: In function `ro_ch_handler':

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/core/rtw_p2p.c:3593: undefined reference to `cfg80211_remain_on_channel_expired'

drivers/built-in.o: In function `rtw_handle_tkip_mic_err':

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/recv_linux.c:190: undefined reference to `cfg80211_michael_mic_failure'

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/recv_linux.c:190: undefined reference to `cfg80211_michael_mic_failure'

drivers/built-in.o: In function `cfg80211_rtw_mgmt_tx':

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:4962: undefined reference to `ieee80211_frequency_to_channel'

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:4991: undefined reference to `cfg80211_mgmt_tx_status'

drivers/built-in.o: In function `cfg80211_rtw_remain_on_channel':

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:4575: undefined reference to `ieee80211_frequency_to_channel'

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:4709: undefined reference to `cfg80211_ready_on_channel'

drivers/built-in.o: In function `ieee80211_get_channel':

/media/myandroid/myandroid/kernel_imx/include/net/cfg80211.h:2193: undefined reference to `__ieee80211_get_channel'

drivers/built-in.o: In function `rtw_cfg80211_inform_bss':

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:521: undefined reference to `cfg80211_inform_bss_frame'

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:570: undefined reference to `cfg80211_put_bss'

drivers/built-in.o: In function `ieee80211_get_channel':

/media/myandroid/myandroid/kernel_imx/include/net/cfg80211.h:2193: undefined reference to `__ieee80211_get_channel'

drivers/built-in.o: In function `rtw_cfg80211_check_bss':

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:600: undefined reference to `cfg80211_get_bss'

drivers/built-in.o: In function `rtw_cfg80211_ibss_indicate_connect':

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:665: undefined reference to `cfg80211_ibss_joined'

drivers/built-in.o: In function `ieee80211_get_channel':

/media/myandroid/myandroid/kernel_imx/include/net/cfg80211.h:2193: undefined reference to `__ieee80211_get_channel'

drivers/built-in.o: In function `rtw_cfg80211_indicate_connect':

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:752: undefined reference to `cfg80211_roamed'

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:767: undefined reference to `cfg80211_connect_result'

drivers/built-in.o: In function `rtw_cfg80211_indicate_disconnect':

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:815: undefined reference to `cfg80211_connect_result'

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:818: undefined reference to `cfg80211_disconnected'

drivers/built-in.o: In function `rtw_cfg80211_indicate_scan_done':

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:1989: undefined reference to `cfg80211_scan_done'

drivers/built-in.o: In function `rtw_cfg80211_indicate_sta_assoc':

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:3395: undefined reference to `cfg80211_new_sta'

drivers/built-in.o: In function `rtw_cfg80211_indicate_sta_disassoc':

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:3441: undefined reference to `cfg80211_del_sta'

drivers/built-in.o: In function `rtw_cfg80211_rx_action_p2p':

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:4254: undefined reference to `cfg80211_rx_mgmt'

drivers/built-in.o: In function `rtw_cfg80211_rx_p2p_action_public':

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:4294: undefined reference to `cfg80211_rx_mgmt'

drivers/built-in.o: In function `rtw_cfg80211_rx_action':

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:4324: undefined reference to `cfg80211_rx_mgmt'

 

drivers/built-in.o: In function `rtw_wdev_alloc':

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:5668: undefined reference to `wiphy_new'

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:5677: undefined reference to `wiphy_register'

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:5727: undefined reference to `wiphy_unregister'

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:5729: undefined reference to `wiphy_free'

drivers/built-in.o: In function `rtw_wdev_free':

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:5749: undefined reference to `wiphy_free'

drivers/built-in.o: In function `rtw_wdev_unregister':

/media/myandroid/myandroid/kernel_imx/drivers/net/wireless/rtl8189es/os_dep/linux/ioctl_cfg80211.c:5772: undefined reference to `wiphy_unregister'

make[1]: *** [.tmp_vmlinux1] 错误 1

make[1]:正在离开目录 `/media/myandroid/myandroid/kernel_imx'

make: *** [out/target/product/sabresd_6dq/kernel] 错误 2

0 件の賞賛
返信