Android image for 6 Realtek WLAN-Sticks and switch the default Audio output

107 15987
liab  
Here you can find my image compiled for the Realtek WLAN-Sticks
8188eu
8189es
8192cu.
8192eu
8723as
8723au
Default WLAN chip is the Realtek 8192cu. How to switch to another Realtek chip you can read in the readme-image. The 8192cu and 8192eu  are tested from me, they work fine.

You also can switch between default audio output, in this image AUDIO_CODEC is default, but it is easy to change by a command.

The input device can handle a mouse with five buttons. Left button ok/forward,
middle button menu, right button back, side left 1 home and side left 2 mute.
Tested with the Medion wireless keyboard / 5 button mouse and with the Logilink
wireless keyboard / 5 button mouse. The Logitech K400 I can't test, but the driver LOGITECH_DJ
is compiled within the kernel.

There are some additional commands like

audio switch default audio output
auto starts and restarts kodi automatically
sdx makes the sytem partition writable
wlan switch to the wanted WLAn driver

More you can read in the readme-image  file
https://www.dropbox.com/s/46fd78 ... -050315.tar.gz?dl=0

Another good Android image.

works good for me but can you make one without the fireair app?

thanks

liab  
ranthan2002 replied at Thu Mar 5, 2015 09:16
works good for me but can you make one without the fireair app?

thanks

Here you will find the version without fireair. Have fun.
https://www.dropbox.com/s/ts14mz ... .050315.tar.gz?dl=0

sweet thanks, the fireair seemed to like to fire up when I plugged in a network cable for testing and use the Wi-Fi as hotspot even though I told it not to.... on a side note maybe you know.. Is there a way to auto fire up kodi then auto fire up a favorite video app...  for example.. the cbsn app live stream?

liab  
Edited by liab at Thu Mar 5, 2015 19:47

@ranthan2002
Basically all is automatically startable with the Autostart app or with my script in /system/xbin/auto. It must be activate in the mkshrc.

@all
Here I give you a tool to make in two minutes a sd-card with a complete android incl. kodi v15 incl. a working PVR-Client to receive german TV programs.

You can download the tool and the example backup here:
https://www.dropbox.com/s/ae33fv ... sd-card.tar.gz?dl=0
Please read the readme.

cool read but only have a windows pc... I might have to resurrect one of my old pcs to put Ubuntu or something on it..    also is it just me or is anyone else in kodi the yahoo weather add-on not saving the location?

Tomu  
Hi Liab, Can I kindly please you for help with implementation of 8187L in to Image. We are trying to implement drivers since last weekend, I readed all the topics you wrote on this forum and I can't get it working. Please help us to get it up and running.

liab  
ranthan2002 replied at Thu Mar 5, 2015 21:26
cool read but only have a windows pc... I might have to resurrect one of my old pcs to put Ubuntu or ...

You have right, to set the location in yahoo weather seems a little bit buggy. With some loacations more tries are necessary.
I don't test it with Kodi 15.

You will find the weather settings in:
/mnt/sdcard/Android/data/org.xbmc.kodi/files/.kodi/userdata/settings.xml

Open it with SambaDroid and insert what you want.
And so you can find your Location ID:
https://weather.yahoo.com/
and search your town. At the end of the https address is the wanted Location ID.

liab  
Edited by liab at Fri Mar 6, 2015 19:17
Tomu replied at Fri Mar 6, 2015 13:55
Hi Liab, Can I kindly please you for help with implementation of 8187L in to Image. We are trying to ...


#####Kernel#####

1. Insert the 8187L sources in
/ANDROID/lichee/linux-3.4/drivers/net/wireless/ with the folder name rtl8187l

2. in the folder rtl8187L open the Makefile, at
CONFIG_PLATFORM_I386_PC = y change to CONFIG_PLATFORM_I386_PC = n
search the arm platform and insert y

It could be
CONFIG_PLATFORM_AML = y
or
CONFIG_PLATFORM_ARM_SUNxI     =   y

3. In /ANDROID/lichee/linux-3.4/drivers/net/wireless/ open Kconfig and insert under
source "drivers/net/wireless/rtl8723au/Kconfig"
source "drivers/net/wireless/rtl8187l/Kconfig"

4. Open in the same folder the Makefile and insert under
obj-$(CONFIG_RTL8723AU)                += rtl8723au/
obj-$(CONFIG_RTL8187L)                += rtl8187l/

5. Open /ANDROID/lichee/linux-3.4/.config
insert under
CONFIG_RTL8723AS=m
CONFIG_RTL8723AU=m
CONFIG_RTL8187L=m

6. Build the kernel, if there is a question to a new 8187 driver answer with "m"

After build you must have one driver more in the folder
/ANDROID/lichee/out/android/common/lib/modules/3.4/
I expect with the name 8187l.ko

Build the image ready and test, whether the driver is startable!

cd /vendor/modules
insmod 8187l.ko
then
lsmod

you must see something like this, but with the 8187l chip

root@android:/vendor/modules # lsmod
8192eu 736057 0 - Live 0x00000000
8192cu 626046 0 - Live 0x00000000
rtl8150 8159 0 - Live 0x00000000
uvcvideo 54674 0 - Live 0x00000000
videobuf_dma_contig 3801 0 - Live 0x00000000
videobuf_core 15272 1 videobuf_dma_contig, Live 0x00000000
mali 116342 18 - Live 0x00000000 (O)
ump 30074 11 mali, Live 0x00000000 (O)
sunxi_ts 17582 0 - Live 0x00000000
gpio_sunxi 7002 0 - Live 0x00000000
sun7i_ir 5965 0 - Live 0x00000000
nand 193610 0 - Live 0x00000000 (O)
root@android:/vendor/modules #

If not there are an error in the kernel, perhaps step 2 with the wrong platform.

#####Android#####
I shall write the steps later!

Continuation:

1. Open the folder
/ANDROID/android/device/softwinner/sugar-bpi/ or your used device folder
and open the file
BoardConfig.mk and insert

    #SW_BOARD_USR_WIFI := rtl8723au
    #BOARD_WLAN_DEVICE := rtl8723au

    SW_BOARD_USR_WIFI := rtl8171l
    BOARD_WLAN_DEVICE := rtl8171l
endif

Activate only one chip, deaktivate the others with "#"!

2. Open the folder
/ANDROID/android/hardware/libhardware_legacy/wifi/

and open the file Android.mk and insert under

# realtek usb wifi module-8192eu
ifeq ($(SW_BOARD_USR_WIFI), rtl8192eu)
LOCAL_CFLAGS += -DRTL_8192EU_WIFI_USED
LOCAL_CFLAGS += -DRTL_WIFI_VENDOR
endif

this

# realtek usb wifi module-8171l
ifeq ($(SW_BOARD_USR_WIFI), rtl8171l)
LOCAL_CFLAGS += -DRTL_8171L_WIFI_USED
LOCAL_CFLAGS += -DRTL_WIFI_VENDOR
endif

Open the file wifi.c and insert under

#elif defined RTL_8192EU_WIFI_USED
    /* rtl8192eu usb wifi */
    #ifndef WIFI_DRIVER_MODULE_PATH
    #define WIFI_DRIVER_MODULE_PATH         "/system/vendor/modules/8192eu.ko"
    #endif
    #ifndef WIFI_DRIVER_MODULE_NAME
    #define WIFI_DRIVER_MODULE_NAME         "8192eu"
    #endif
    #ifndef WIFI_DRIVER_MODULE_ARG
    #define WIFI_DRIVER_MODULE_ARG         "ifname=wlan0 if2name=p2p0"
    #endif

this

#elif defined RTL_8171L_WIFI_USED
    /* rtl8171l usb wifi */
    #ifndef WIFI_DRIVER_MODULE_PATH
    #define WIFI_DRIVER_MODULE_PATH         "/system/vendor/modules/8192eu.ko"
    #endif
    #ifndef WIFI_DRIVER_MODULE_NAME
    #define WIFI_DRIVER_MODULE_NAME         "8171l"
    #endif
    #ifndef WIFI_DRIVER_MODULE_ARG
    #define WIFI_DRIVER_MODULE_ARG         "ifname=wlan0 if2name=p2p0"
    #endif

3. make clean very important! And compile android.

And now you only can hope that the driver knows the parameter if2name!! That is the reason to have no chance with non Realtek sticks.

May be in your scripts are no 8192eu (only in my sources), than insert the changes under 8192cu.

Good luck!

You have to log in before you can reply Login | Sign Up

Points Rules