Page 1 of 1

Android TV CM-12.1 for ODROID-XU

Posted: Sun Aug 09, 2015 1:50 am
by voodik
magic_-free_AndroidTV.jpg
(20.39 KiB) Downloaded 2358 times
Known issues:
In some situations you need mouse connected (e.g. after Setup Wizard you need select default launcher)
If you are using Ethernet instead of WiFi at first boot disconnect Ethernet cable and connect it after Setup Wizard appears.
If Setup Wizard stuck on "Connecting Google" hit back key and click "Don't Change" for continue.
Pair Bluetooth Devices via Non-TV Settings (App Drawer > Settings > Bluetooth)

"Format userdata" is required

Recommendations:
Bluetooth Module
HDMI-CEC capable TV

Tips:
To set proper HDMI port for CEC enter in terminal

The last number in example (3) is HDMI source number on your TV
e.g HDMI1 = 1, HDMI2 = 2 etc

Code: Select all

setprop persist.hdmi.cec_port 3
To get Bluetooth work comment out this line in build.prop

Code: Select all

config.disable_bluetooth=true
Changes:

Code: Select all

first build

URL for updater:

Code: Select all

http://oph.mdrjr.net/voodik/ODROID-XU/CM-12.1-ATV/Alpha-0.1_08.08.15/update.zip

Re: Android TV CM-12.1 for ODROID-XU

Posted: Sun Aug 09, 2015 5:03 am
by Andycar
Wow... Eagerly waiting!

Re: Android TV CM-12.1 for ODROID-XU

Posted: Sun Aug 09, 2015 3:05 pm
by memeka
Hi voodik,

Thank you for the Android TV releases, they are awesome!
I have a few questions:

1) how to use wifi module 4?
2) can i post here some kernel patches to enable SPI in android (XU)?
3) can you included boblight daemon too? not sure how to compile for android - https://code.google.com/p/boblight/
4) can you provide build instructions?

Thanks!

Re: Android TV CM-12.1 for ODROID-XU

Posted: Sun Aug 09, 2015 8:24 pm
by voodik
memeka wrote:Hi voodik,

Thank you for the Android TV releases, they are awesome!
I have a few questions:

1) how to use wifi module 4?
2) can i post here some kernel patches to enable SPI in android (XU)?
3) can you included boblight daemon too? not sure how to compile for android - https://code.google.com/p/boblight/
4) can you provide build instructions?

Thanks!
Hi memeka,

1) You can't, i tried to backport this driver many times, but it doesn't work.
2) Yes
3) I will try to port boblight, but i have a some questions. We need only lib or i need to port daemons and other exec binaries ?
4) You can build it after i push changes to my git.

Re: Android TV CM-12.1 for ODROID-XU

Posted: Sun Aug 09, 2015 9:26 pm
by memeka
1) how about Ralink RT3572? i think you made this work in your previous CM.... its the rt2800usb driver (i have https://wikidevi.com/wiki/Tenda_W522U)
3) boblight runs as a daemon... but i think there are not many deps.
i will do a ldd and post the result.

Re: Android TV CM-12.1 for ODROID-XU

Posted: Mon Aug 10, 2015 3:11 pm
by Andycar
Hi voodik,

Installed this release with 'fastboot erase userdata', and successfully booted on my XU. Thanks!

After XU boots, Google Setup Wizard correctly registers my google l/p (I see the text "your account is registered" or smth lke this.)
However, after this screen, if I click continue, there is only black screen with mouse pointer on it. Moving and clicking the mouse does nothing. :(

I can press "Alt-tab" on my keyboard to see CM wallpaper with empty task list... I wonder, how to get out of black screen? :)

Re: Android TV CM-12.1 for ODROID-XU

Posted: Mon Aug 10, 2015 6:51 pm
by voodik
Andycar wrote:Hi voodik,

Installed this release with 'fastboot erase userdata', and successfully booted on my XU. Thanks!

After XU boots, Google Setup Wizard correctly registers my google l/p (I see the text "your account is registered" or smth lke this.)
However, after this screen, if I click continue, there is only black screen with mouse pointer on it. Moving and clicking the mouse does nothing. :(

I can press "Alt-tab" on my keyboard to see CM wallpaper with empty task list... I wonder, how to get out of black screen? :)
Are connected via Ethernet ? Try to finish SetupWizzard with Wifi connected. If you don't have a wifi, restart your odroid when you get black screen and try to finish Setupwizard after restart (repeat this procedure untill you get "finish" message and launcher selection appears.)
I know about black screen issue with Ethernet.

Re: Android TV CM-12.1 for ODROID-XU

Posted: Mon Aug 10, 2015 8:16 pm
by Andycar
Yes, I'm on Ethernet.

Okay, I will try to restart, or will just connect wifi adapter. Thanks.

EDIT: Yes, got it working!

Re: Android TV CM-12.1 for ODROID-XU

Posted: Tue Aug 11, 2015 3:51 am
by voodik
Andycar wrote:Yes, I'm on Ethernet.

Okay, I will try to restart, or will just connect wifi adapter. Thanks.

EDIT: Yes, got it working!
Found a solution for Ethernet.
At first boot disconnect Ethernet cable and connect it after Setup Wizard appears.

Re: Android TV CM-12.1 for ODROID-XU

Posted: Tue Aug 11, 2015 4:00 am
by voodik
memeka wrote:1) how about Ralink RT3572? i think you made this work in your previous CM.... its the rt2800usb driver (i have https://wikidevi.com/wiki/Tenda_W522U)
3) boblight runs as a daemon... but i think there are not many deps.
i will do a ldd and post the result.
edit build.prop
change

Code: Select all

wlan.modname=8192cu
to

Code: Select all

wlan.modname=rt2800usb

Re: Android TV CM-12.1 for ODROID-XU

Posted: Sat Aug 29, 2015 7:01 pm
by memeka
Hi voodik,

can you include this patch in all your XU kernels:

Code: Select all

commit ffb198e2f6eed4ca8b2668d3d8e244af0c61eda2
Author: memeka <mihailescu2m@gmail.com>
Date:   Sun Aug 31 09:01:52 2014 +0930

    enabled spi pins on spidev

diff --git a/arch/arm/mach-exynos/board-odroidxu-ioboard.c b/arch/arm/mach-exynos/board-odroidxu-ioboard.c
index 6157e07..f643003 100644
--- a/arch/arm/mach-exynos/board-odroidxu-ioboard.c
+++ b/arch/arm/mach-exynos/board-odroidxu-ioboard.c
@@ -84,24 +84,24 @@ static struct   platform_device     odroidxu_ioboard_adc = {
 
 static struct s3c64xx_spi_csinfo spi1_csi[] = {
        [0] = {
+               .fb_delay = 0x2,
                .line       = EXYNOS5410_GPA2(5),
                .set_level  = gpio_set_value,
        },
 };
 static struct spi_board_info spi1_board_info[] __initdata = {
        {
-               .modalias                       = "ioboard-spi",
-               .platform_data          = NULL,
-               .max_speed_hz           = 20 * 1000 * 1000,     // 20 Mhz
+               .modalias                       = "spidev",
+               .max_speed_hz           = 40 * 1000 * 1000,     // 20 Mhz
                .bus_num                        = 1,
                .chip_select            = 0,
-               .mode                           = SPI_MODE_0,
+               .mode                           = SPI_MODE_3,
                .controller_data    = &spi1_csi[0],
        }
 };
 
 static struct platform_device odroidxu_ioboard_spi = {
-       .name                   = "ioboard-spi",
+       .name                   = "spidev",
        .id                     = -1,
 };
thanks!

Re: Android TV CM-12.1 for ODROID-XU

Posted: Sun Sep 27, 2015 5:42 pm
by usee
Thanks for this image.
Hardware (cec, wifi, ethernet, keyborad mouse) works fine with this image.
I also installed Kodi Isengrad and also it works fine.

If someone can get also Netflix to work with this Android TV, it would be welcome information.

Re: Android TV CM-12.1 for ODROID-XU

Posted: Wed Sep 30, 2015 1:29 am
by usee
As information; I got the a Netflix apk working.
The version is Netflix 3.14.3 build 5200. The exact apk version that i am using is
com.netflix.mediaclient-3-14-3-build-5200-APK4Fun.com.apk-

This version is meant for mobiles (or tablets) but not for Android TV.
Therefore using can not be made alone with CEC. I am using mouse, keyboard and CEC, whichever works best.
The biggest clitch is that playing of a movies stops after some 20 sec or so; to avoid that one must himself pause
the play prior stop, then playing can be continues from the pause position.

Re: Android TV CM-12.1 for ODROID-XU

Posted: Sat Nov 07, 2015 10:37 am
by Necrum
Thank you Voodik for this!

I've been playing around for a while with your Android TV implementation for the XU and i've used some apk's from this LINK to make some menus to work (i.e. Leanback launcher config, google cast, etc)
  • -It is possible to generate a serial number for my device? (perhaps using board serial number or ANDROID_ID? or doing THIS) I think this is one of the reasons that keeps Google Cast from working.
    -NTFS-3G seems to have problems accessing file attributes and making certain places readable, (perhaps it's just my disk, IDK), is there a way to update NTFS-3G to the 2015 version? (the one included is from 1.15.2012).
    -What is the recommended folder sharing service on android? I'm having some weird issues with the DLNA service included with Kodi, , i'm not sure if most of miy video files has flaws but i certainly didn't had these problems with xbmc on linux or playing the same files on VLC on windows.
here is some smal log of the third question/issue, maybe has something to do with the hdmi audio going to sleep after being idle... just assumptions.

Code: Select all

W/libexynosv4l2( 1865): failed to ioctl: VIDIOC_DQBUF (22 - Invalid argument)
W/libexynosv4l2( 1865): failed to ioctl: VIDIOC_DQBUF (22 - Invalid argument)
E/AudioTrack( 4969): AudioTrack::set : Exit
W/art     ( 4969): Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[23,tid=21769,Native,Thread*=0x9b1a6c00,peer=0
x12e8cbe0,"Thread-4116"]
V/XBMC    ( 4969): detaching thread
I/MediaFocusControl( 2265):  AudioFocus  abandonAudioFocus() from android.media.AudioManager@35c40edcorg.xbmc.kodi.XBMCOnAudioFocusChangeListener@3b298be5
W/art     ( 4969): Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[21,tid=21761,Native,Thread*=0x955f9400,peer=0
x12da43a0,"Thread-4114"]
V/XBMC    ( 4969): detaching thread
[/color]
FIXED - Put a # symbol in front of each item on the USB section of fstab.odroidxu and used the OTG Helper app instead and worked like a charm! Google cast problems remained though

I'm not a programmer but I have some basic "linux skills", android is a whole different (but similar) world to me, the only changes on the buid.prop file are

Code: Select all

ro.config.hw_quickpoweron=true
dev.bootcomplete=0
debug.sf.no_hw_vsync=0
, not sure if they work on lollypop but at least some vsync glitches seems to have been reduced. (although some weird errors about 1080p and 720p resolutions at the same time appears on logcat).

thanks for your time and help.....and sorry for my awkward english and poor writing :)

Re: Android TV CM-12.1 for ODROID-XU

Posted: Sun Dec 17, 2017 9:42 pm
by trojanc
Hi,

anyone with some steps on how to install this?
Do I first need to prep a SD with what on? And then apply the update to get the Android TV version?

Any help appreciated, thank you