ralink 2870 usb wifi, how get it working in android?

2,155 views
Skip to first unread message

Vlad Smolovik

unread,
Jun 2, 2013, 11:06:57 PM6/2/13
to cubie...@googlegroups.com
Guys,
is there any way to get working ralikn 2870 isb wifi dongle in android with cubieboard?

thx, Vlad.

Michal Suchanek

unread,
Jun 3, 2013, 3:42:41 AM6/3/13
to cubie...@googlegroups.com
Seems there are at least two drivers for that chipset in current staging kernel.

You probably want an android build with rt2x00 or rtxx7x enabled.

HTH

Michal

in...@liatoss.com

unread,
Jun 3, 2013, 5:41:29 AM6/3/13
to cubie...@googlegroups.com
I guess rt2x00, but correct me if I am wrong.

Thank you, Vlad.

in...@liatoss.com

unread,
Jun 3, 2013, 6:57:56 AM6/3/13
to cubie...@googlegroups.com
If anybody can build it for my, with portrait orientation enabled, I appreciate this.

cubie...@gmail.com

unread,
Dec 9, 2013, 1:50:11 PM12/9/13
to cubie...@googlegroups.com

Build kernel and android from SDK 1.05.
wi-fi chipset Rt3072. usb2x00usb

It start from GUI settings, but it on/off all time.

logcat
E/wpa_supplicant( 2318): wpa_driver_nl80211_driver_cmd: failed to issue private commands

dmesg
<6>[  185.245418] ADDRCONF(NETDEV_UP): wlan0: link is not ready
build.prop
BoardConfig.mk
sys_config.fex
logcat.txt
wifi-wpa.txt

cubie...@gmail.com

unread,
Dec 9, 2013, 1:53:26 PM12/9/13
to cubie...@googlegroups.com
.config for kernel
config.zip

Andrey Danin

unread,
Dec 10, 2013, 4:26:23 AM12/10/13
to cubie...@googlegroups.com
Hi
Maybe you forget to add a firmware for your card. Check http://www.mediatek.com/_en/07_downloads/01_windows.php?sn=501 or search in google (there is a lot of places with firmware for rt2870).

cubie...@gmail.com

unread,
Dec 10, 2013, 6:59:27 AM12/10/13
to cubie...@googlegroups.com
I have not forgotten about the firmware. Without firmware did not work at all.
LED on the lights up and blinks wifi.

вторник, 10 декабря 2013 г., 13:26:23 UTC+4 пользователь Andrey Danin написал:

cubie...@gmail.com

unread,
Dec 11, 2013, 12:16:50 AM12/11/13
to cubie...@googlegroups.com

<6>[   18.612039] phy0 -> rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'.
<6>[   18.624145] phy0 -> rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29.
<6>[   18.733502] acc_open
<6>[   18.733536] acc_release
<6>[   19.019134] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 3, CWmax: 4, Aifs: 2, TXop: 102.
<6>[   19.020496] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 4, CWmax: 5, Aifs: 2, TXop: 188.
<6>[   19.022228] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 2 - CWmin: 5, CWmax: 10, Aifs: 3, TXop: 0.
<6>[   19.023861] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 3 - CWmin: 5, CWmax: 10, Aifs: 7, TXop: 0.
<6>[   19.056158] ADDRCONF(NETDEV_UP): wlan0: link is not ready

then

<5>[  182.340067] init: process 'wpa_supplicant', pid 2307 exited
<5>[  182.622804] init: starting 'wpa_supplicant'
<6>[  182.626100] init: Created socket '/dev/socket/wpa_wlan0' with mode '660', user '1010', group '1010'
<6>[  183.051284] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 3, CWmax: 4, Aifs: 2, TXop: 102.
<6>[  183.052854] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 4, CWmax: 5, Aifs: 2, TXop: 188.
<6>[  183.055515] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 2 - CWmin: 5, CWmax: 10, Aifs: 3, TXop: 0.
<6>[  183.057731] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 3 - CWmin: 5, CWmax: 10, Aifs: 7, TXop: 0.
<6>[  183.085010] ADDRCONF(NETDEV_UP): wlan0: link is not ready
<5>[  183.413160] init: service 'wpa_supplicant' is being killed
<6>[  183.416136] init: waitpid returned pid 8953, status = 00000009
<5>[  183.416188] init: process 'wpa_supplicant', pid 8953 exited
<5>[  183.664443] init: starting 'wpa_supplicant'
<6>[  183.667413] init: Created socket '/dev/socket/wpa_wlan0' with mode '660', user '1010', group '1010'
<6>[  184.068099] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 3, CWmax: 4, Aifs: 2, TXop: 102.
<6>[  184.069459] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 4, CWmax: 5, Aifs: 2, TXop: 188.
<6>[  184.070705] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 2 - CWmin: 5, CWmax: 10, Aifs: 3, TXop: 0.
<6>[  184.071955] phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 3 - CWmin: 5, CWmax: 10, Aifs: 7, TXop: 0.
<6>[  184.109502] ADDRCONF(NETDEV_UP): wlan0: link is not ready
<5>[  184.516590] init: service 'wpa_supplicant' is being killed


cubie...@gmail.com

unread,
Dec 19, 2013, 6:28:11 AM12/19/13
to cubie...@googlegroups.com
It work for me

Source http://docs.cubieboard.org/tutorials/cb2/development/building_your_own_android_image

sys_config.fex http://pastebin.com/CsunFFZU
[wifi_para]
wifi_mod_sel = 0


init.sun7i.usb.rc http://pastebin.com/nkMra5uC
section realtek wifi service 
-Dnl80211change to -Dwext


BoardConfig.mk http://pastebin.com/1uaY5ZnX
# 1.1 realtek wifi support
ifeq ($(BOARD_WIFI_VENDOR), realtek)
    WPA_SUPPLICANT_VERSION := VER_0_8_X
    #BOARD_WPA_SUPPLICANT_DRIVER := NL80211
    BOARD_WPA_SUPPLICANT_DRIVER := WEXT
    BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_rtl
    #BOARD_HOSTAPD_DRIVER        := NL80211
    BOARD_HOSTAPD_DRIVER        := WEXT
    BOARD_HOSTAPD_PRIVATE_LIB   := lib_driver_cmd_rtl
 
    #SW_BOARD_USR_WIFI := rtl8188eu
    #BOARD_WLAN_DEVICE := rtl8188eu
 
    SW_BOARD_USR_WIFI := rt2800usb
    BOARD_WLAN_DEVICE := rt2800usb


sugar_cubieboard2.mk http://pastebin.com/F1BFSaTi
# rt3072
PRODUCT_COPY_FILES += \
        hardware/realtek/wifi/firmware/rt2870.bin:system/etc/firmware/rt2870.bin

copy
rt2870.bin to the hardware/realtek/wifi/firmware/


cubie...@gmail.com

unread,
Sep 14, 2014, 1:13:25 AM9/14/14
to cubie...@googlegroups.com
Now I try repeat the same with 1.09 SDK
without success
dmesg and logcat http://paste.ubuntu.com/8327726/


Reply all
Reply to author
Forward
0 new messages