I bought cx919ii android tv stick and set my personal goal to make it working correctly with picuntu distribution. I couldn't find one place on net explaining how to do this and as I succeeded I decided to share this on this forum. Some points might not be straight forward therefore if you spend some time challenging them probably you will succeed as I did

1) Download Ubuntu VirtualBox image targeted to AMD64 processor
2) Compile the kernel doing below commands
apt-get install git mc
mkdir /cx919ii
cd /cx919ii
[ Put here *.patch files from cx919ii.zip attachment ]
git clone https://github.com/phjanderson/marvin.git
git clone https://github.com/phjanderson/Linux3188
git clone https://github.com/phjanderson/Kernel-3188.git
git clone https://github.com/Galland/rk30_linux_initramfs
mv rk30_linux_initramfs initramfs
cd marvin
git apply --stat ../marvin_j22.patch
git apply --check ../marvin_j22.patch
git am --signoff ../marvin_j22.patch
cd ../Kernel-3188
git apply --stat ../kernel3188_j22.patch
git apply --check ../kernel3188_j22.patch
git am --signoff ../kernel3188_j22.patch
cd ../Linux3188
git apply --stat ../Linux3188_j22.patch
git apply --check ../Linux3188_j22.patch
git am --signoff ../Linux3188_j22.patch
cd ../marvin
./marvin install_builddep
./marvin platform picuntu3188
./marvin config J22 1080p ddr667
mcedit ../Linux3188/.config
[ find CPU Frequency Scaling section and make sure it looks like presented below ]
#
# CPU Frequency Scaling
#
CONFIG_RK_CPU_312=n
CONFIG_RK_CPU_312_VOLT=900
CONFIG_RK_CPU_504=n
CONFIG_RK_CPU_504_VOLT=925
CONFIG_RK_CPU_816=n
CONFIG_RK_CPU_816_VOLT=1000
CONFIG_RK_CPU_1008=n
CONFIG_RK_CPU_1008_VOLT=1075
CONFIG_RK_CPU_1200=n
CONFIG_RK_CPU_1200_VOLT=1150
CONFIG_RK_CPU_1416=n
CONFIG_RK_CPU_1416_VOLT=1250
CONFIG_RK_CPU_1608=n
CONFIG_RK_CPU_1608_VOLT=1350
CONFIG_RK_CPU_1704=n
CONFIG_RK_CPU_1704_VOLT=1375
CONFIG_RK_CPU_1800=y
CONFIG_RK_CPU_1800_VOLT=1375
# CONFIG_RK_CPU_1896 is not set
# CONFIG_RK_CPU_1920 is not set
# CONFIG_RK_CPU_2016 is not set
[ find GPU Frequency Scaling section and make sure it looks like presented below ]
#
# GPU Frequency Scaling
#
CONFIG_RK_GPU_133=n
CONFIG_RK_GPU_133_VOLT=975
CONFIG_RK_GPU_200=n
CONFIG_RK_GPU_200_VOLT=1000
CONFIG_RK_GPU_266=n
CONFIG_RK_GPU_266_VOLT=1025
CONFIG_RK_GPU_300=n
CONFIG_RK_GPU_300_VOLT=1050
CONFIG_RK_GPU_400=y
CONFIG_RK_GPU_400_VOLT=1100
CONFIG_RK_GPU_600=n
CONFIG_RK_GPU_600_VOLT=1250
# CONFIG_RK_GPU_798 is not set
./marvin build
[ You should see below message ]
Your kernel is ready in:
/root/cx919ii/marvin/platform/picuntu3188/output/kernel_marvin_J22
3) Download Picuntu 4.5 http://www.g8.net/download/4.5/picun...sicgui-nand.7z
4) Replace kernel.img from extracted package by the one we just compiled
5) Install picuntu on cx919ii android tv stick

PS1. The Kernel-3188 is android kernel source. It is not necessary for this picuntu build. I prepared kernel-3188_j22.patch file based on this post entry: http://www.freaktab.com/showthread.p...159#post114159
PS2. I applied the changes then to Linux3188 branch and set-up marvin J22 config file based on various entries found on net. Initially my cx919ii stick was working correctly with wifi therefore every 1-2h it automatically rebooted. I then found CPU & GPU frequency scaling in configuration as well as ddr667 option - after tweaking it the way shown above picuntu started to work perfectly
6) Please boot your picuntu from your tv stick
7) If you wish you may stop now - your stick fully operates with WiFi. Let's try to configure xwindows to support Mali400 GPU coprocessor.
SETTING UP MALI DRIVER
8) Please follow instruction provided here (http://www.freaktab.com/showthread.p...l=1#post157509) being logged on your picuntu and see my notes
a) After putting modules under /lib/modules/3.0.36+/kernel/drivers I edited /etc/rc.local file and added below lines below "modprobe rkwifi":
modprobe ump
modprobe mali
modprobe drm
modprobe mali_drm
b) after going through full procedure I added picuntu user to "video" group:
usermod -a -G video picuntu
[reboot]
c) apt-get install glmark2-es2 mesa-utils-extra
d) run es2_info and es2gears to check if the set-up is working for you
PS3. At the beggining it didn't work for me as I was logged in as picuntu user in xwindows. After checking the rights on top of /dev/mali I noticed that video group has rights to it.
SETTING UP WIFI (FIXED IP)
1) wpa_passphrase WIFI_ID YOURPASSWORD > /etc/wpa_supplicant.conf
2) mcedit /etc/network/interfaces
[ make content look like below ]
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet static
address 10.0.254.253
netmask 255.255.255.0
wireless-essid WIFI_ID
gateway 10.0.254.1
pre-up wpa_supplicant -B -Dnl80211 -iwlan0 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant
[ picuntu IP is set to be fixed -> 10.0.254.253. Gateway 10.0.254.1 (router IP) ]
[ just customize to your needs ]
3) [ reboot ] and enjoy wifi set-up
Take Care

Comment