LineageOS-14.1 Android TV for ODROID-XU3/XU4

Moderators: odroid, mdrjr

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby sub263 » Fri Mar 17, 2017 1:01 am

I tried to install Super su and after installation i restarted. The device seems to be stuck in booting.Here is the UART debug dump. What could be going wrong?

http://pastebin.com/hfX9ze0H
Last edited by sub263 on Fri Mar 17, 2017 3:55 am, edited 1 time in total.
Odroid-U3
Raspberry-Pi
Panda Board
10.1" chungwa LCD
HDMI to LVDS board
USB2UART
sub263
 
Posts: 46
Joined: Fri Mar 21, 2014 7:07 pm
languages_spoken: english
ODROIDs: ODROID U3

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby voodik » Fri Mar 17, 2017 1:41 am

First edit your post, delete your log, upload your log to pastebin.com and post link here.
I don't know CM/LineageOS support for supersu because we have a integrated su.
Clean install OS from scratch then enable Developer options from Normal Settings (Non TV version settings can be opened from App Drwawer), also enable root access from same NON TV Settings.

Thanks.
You can always buy me a beer Here ;)
User avatar
voodik
 
Posts: 983
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby bmentink » Fri Mar 17, 2017 11:49 am

@voodik
Many Thanks. I must admit that seems just a bit weird, to have two "Settings" with the same icon doing different things ...
I do have Ethernet working now, so that is great.

By the way, how do you exit programs and for that matter how do you do a nice shutdown, I can see no shutdown icons.

When I type exit in a terminal, it just sits there, I have to ALT-Tab to some other app to be able to get back home. Likewise, the web browser has no way to exit.
bmentink
 
Posts: 386
Joined: Sat Dec 13, 2014 1:47 pm
languages_spoken: english
ODROIDs: XU3, XU4

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby thefearless639 » Sat Mar 18, 2017 4:20 am

Wow, this image, and the other 7.1 standard android are some of the best on single board computers.

One issue i am running into though is audio crackling and popping, especially on netflix.

Has anyone else had this issue or know of a fix?
thefearless639
 
Posts: 1
Joined: Sat Mar 18, 2017 4:17 am
languages_spoken: english
ODROIDs: XU4

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby sub263 » Tue Mar 21, 2017 6:13 am

voodik wrote:
sub263 wrote:
voodik wrote:
sub263 wrote:I screwed my media_codecs.xml file :mrgreen: . can some one post their file here?

Allready edited.
media_codecs.xml


p.s.
Can you ask which apps doesn't play videos without HW codecs ?

Voodik,
Even YouTube, VLC and other streaming sitea sling player etc



Sent from my ONEPLUS A3000 using Tapatalk


I make update at the end of this week where HW codecs zooming issue is fixed.

Hi Voodik,
Did you get a chance to make a build ? :roll:
Odroid-U3
Raspberry-Pi
Panda Board
10.1" chungwa LCD
HDMI to LVDS board
USB2UART
sub263
 
Posts: 46
Joined: Fri Mar 21, 2014 7:07 pm
languages_spoken: english
ODROIDs: ODROID U3

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby voodik » Tue Mar 21, 2017 11:43 am

Update :ugeek:
Code: Select all
20170321
Android: fixed HW AVC Decoder
Android: added MuMuDVB - DVB IPTV free streaming software port.
Kernel: Backport media subtree from 4.9 kernel to support more DTV devices.
Kernel: Added some DTV modules (others by request).
You can always buy me a beer Here ;)
User avatar
voodik
 
Posts: 983
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby rooted » Tue Mar 21, 2017 2:37 pm

voodik wrote:Update :ugeek:
Code: Select all
20170321
Android: fixed HW AVC Decoder
Android: added MuMuDVB - DVB IPTV free streaming software port.
Kernel: Backport media subtree from 4.9 kernel to support more DTV devices.
Kernel: Added some DTV modules (others by request).

Nice update, I bet that media subtree backport took a good bit of work.
User avatar
rooted
 
Posts: 3485
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1
C1+
C2
XU3 Lite
XU4
VU7+
HiFi Shield 2
Smart Power (original)

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby odroid » Tue Mar 21, 2017 8:12 pm

@rooted,
Do you have any USB ATSC DTV receiver to test the new features?
User avatar
odroid
Site Admin
 
Posts: 22259
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby memeka » Tue Mar 21, 2017 8:28 pm

odroid wrote:@rooted,
Do you have any USB ATSC DTV receiver to test the new features?

I will be testing them when I get some time, I think @voodik added the drivers for my tuner.
User avatar
memeka
 
Posts: 3435
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby voodik » Tue Mar 21, 2017 10:09 pm

I will prepare special version of ATV image which includes Live Channels/TV app with ATSC support.
But i need USB ATSC receiver model/vid-pid, to port/fix drivers and include it in build.
You can always buy me a beer Here ;)
User avatar
voodik
 
Posts: 983
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby zaphodb » Thu Mar 23, 2017 8:56 am

Hi @voodik

I like the latest update, but have a problem with the virtual keyboard. It doesnt seem to respond when used in settings and I have to revert to plugging in an external keyboard. It works fine from inside kodi, but no good on play store, settings etc.

regards
zaphodb
 
Posts: 3
Joined: Mon Feb 20, 2017 5:10 am
languages_spoken: english
ODROIDs: ux4

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby KJM » Thu Mar 23, 2017 1:04 pm

voodik wrote:I will prepare special version of ATV image which includes Live Channels/TV app with ATSC support.
But i need USB ATSC receiver model/vid-pid, to port/fix drivers and include it in build.


Hi voodik - I've only just joined, so I can't send these directly via a PM!
I have 2 of these: idVendor=1f4d, idProduct=a115 (recognised on the laptop as Geniatech). These are very generic: no manufacturer branding on the tiny little things. They have micro USB so you can plug them directly into a phone.

Cheers
/Kevin
KJM
 
Posts: 1
Joined: Sat Mar 18, 2017 4:38 pm
languages_spoken: english
ODROIDs: xu4

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby rooted » Thu Mar 23, 2017 2:50 pm

odroid wrote:@rooted,
Do you have any USB ATSC DTV receiver to test the new features?

I have a Hauppauge ATSC dongle I can test, it's supported in the kernel just needs enabled in the config it if isn't already.

HVR-950Q is the model.
User avatar
rooted
 
Posts: 3485
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1
C1+
C2
XU3 Lite
XU4
VU7+
HiFi Shield 2
Smart Power (original)

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby voodik » Thu Mar 23, 2017 8:29 pm

rooted wrote:
odroid wrote:@rooted,
Do you have any USB ATSC DTV receiver to test the new features?

I have a Hauppauge ATSC dongle I can test, it's supported in the kernel just needs enabled in the config it if isn't already.

HVR-950Q is the model.

I will port this drivers, and make special build for you, and if you have a time we will test LiveTV support together.
You can always buy me a beer Here ;)
User avatar
voodik
 
Posts: 983
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby voodik » Fri Mar 24, 2017 1:50 am

zaphodb wrote:Hi @voodik

I like the latest update, but have a problem with the virtual keyboard. It doesnt seem to respond when used in settings and I have to revert to plugging in an external keyboard. It works fine from inside kodi, but no good on play store, settings etc.

regards

Are you talking about ATV version of Android ?
You can always buy me a beer Here ;)
User avatar
voodik
 
Posts: 983
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby rooted » Fri Mar 24, 2017 6:30 am

voodik wrote:
rooted wrote:
odroid wrote:@rooted,
Do you have any USB ATSC DTV receiver to test the new features?

I have a Hauppauge ATSC dongle I can test, it's supported in the kernel just needs enabled in the config it if isn't already.

HVR-950Q is the model.

I will port this drivers, and make special build for you, and if you have a time we will test LiveTV support together.

No problem, you build it I will test.
User avatar
rooted
 
Posts: 3485
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1
C1+
C2
XU3 Lite
XU4
VU7+
HiFi Shield 2
Smart Power (original)

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby evgeny » Sat Mar 25, 2017 10:59 pm

After update to Alpha-0.2_21.03.17 wifi does not work any more. Any ideas? :?
evgeny
 
Posts: 9
Joined: Fri Dec 26, 2014 3:13 am
languages_spoken: english, german, russian
ODROIDs: XU3

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby voodik » Sat Mar 25, 2017 11:08 pm

evgeny wrote:After update to Alpha-0.2_21.03.17 wifi does not work any more. Any ideas? :?

If your Ethernet also doesn't work, please clean install via selfinstall images and try to update to latest version.
You can always buy me a beer Here ;)
User avatar
voodik
 
Posts: 983
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby evgeny » Sat Mar 25, 2017 11:44 pm

voodik wrote:
evgeny wrote:After update to Alpha-0.2_21.03.17 wifi does not work any more. Any ideas? :?

If your Ethernet also doesn't work, please clean install via selfinstall images and try to update to latest version.


Ethernet does not work as well.
So that means, I should reflash my SD-card with android-LineageOS-ATV-14.1-alpha-0.1-sd_installer-odroidxu3-20170211.img and update after that.
Is it possible to keep my user data? Or go back to Alpha-0.1_11.02.17?
For instance my build.prop was not updated after update, should it?
evgeny
 
Posts: 9
Joined: Fri Dec 26, 2014 3:13 am
languages_spoken: english, german, russian
ODROIDs: XU3

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby voodik » Sun Mar 26, 2017 12:34 am

evgeny wrote:
voodik wrote:
evgeny wrote:After update to Alpha-0.2_21.03.17 wifi does not work any more. Any ideas? :?

If your Ethernet also doesn't work, please clean install via selfinstall images and try to update to latest version.


Ethernet does not work as well.
So that means, I should reflash my SD-card with android-LineageOS-ATV-14.1-alpha-0.1-sd_installer-odroidxu3-20170211.img and update after that.
Is it possible to keep my user data? Or go back to Alpha-0.1_11.02.17?
For instance my build.prop was not updated after update, should it?

No, something wrong happens, your build.prop will be updated/replaced after each update.
Because of XU4 is missing adb port and you loss connectivity i can suggest you try clean isntall/update only.
You can always buy me a beer Here ;)
User avatar
voodik
 
Posts: 983
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby zaphodb » Sun Mar 26, 2017 1:02 am

voodik wrote:Are you talking about ATV version of Android ?

Hi,
Im using the latest ATV version (2017-03-20). I installed the update and formatted everything so its a fresh install.
If I use terminal, the virtual keyboard appears but the mouse cursor fails to select the key on click. It seems to happen on most of the apps, including settings. A regular usb keyboard works fine.
Strangely with Kodi, it works fine. I guess it maybe has its own bundled virtual keyboard or it could be that apps downloaded from playstore work fine.

I also have a question with regards the playstore. I assume that the limited selection offered by playstore on the ATV version is because of the model number detailed in the build.prop file. Is it safe to change this to the same model number for your non ATV version of your rom, and hopefully expanding the playstore apps available?
zaphodb
 
Posts: 3
Joined: Mon Feb 20, 2017 5:10 am
languages_spoken: english
ODROIDs: ux4

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby voodik » Sun Mar 26, 2017 1:13 am

zaphodb wrote:
voodik wrote:Are you talking about ATV version of Android ?

Hi,
Im using the latest ATV version (2017-03-20). I installed the update and formatted everything so its a fresh install.
If I use terminal, the virtual keyboard appears but the mouse cursor fails to select the key on click. It seems to happen on most of the apps, including settings. A regular usb keyboard works fine.
Strangely with Kodi, it works fine. I guess it maybe has its own bundled virtual keyboard or it could be that apps downloaded from playstore work fine.

I also have a question with regards the playstore. I assume that the limited selection offered by playstore on the ATV version is because of the model number detailed in the build.prop file. Is it safe to change this to the same model number for your non ATV version of your rom, and hopefully expanding the playstore apps available?


1. Virtual keyboard of ATV version is not designed for mouse clicks, it designed to use it via TV remote or joystick.
2. No, we are spoofing Sony Bravia ATV device to our build.prop otherwise Play Store is not working. if you want install NON ATV apps or apps which missing in PlayStore you can always download them from sites like appmirror,com.
You can always buy me a beer Here ;)
User avatar
voodik
 
Posts: 983
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby rooted » Sun Mar 26, 2017 5:21 am

1.) It's indeed standard behavior on Android TV keyboard.

Use a third party keyboard.
User avatar
rooted
 
Posts: 3485
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1
C1+
C2
XU3 Lite
XU4
VU7+
HiFi Shield 2
Smart Power (original)

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby voodik » Tue Mar 28, 2017 2:09 am

norx wrote:
norx wrote:Hi, i'm not able to get the SD version working on a XU4.
The problem is that it starts but the HDMI connected screen remains black with no signal.
I know that on the first run the screen become active only after some (long) time (as for other distros) but i've waited for an hour and a half with no signal, so I reflashed it again and now it's another hour that i'm waiting with no success.

The HDMI cable and the monitor are fine (i've also tried another cable), they work perfectly with all the other distro i tried: android 4/5/6 and a lot of linux distros even with the mainline kernel.

How i can get it working?
Thanks


Ok sorry, it finnaly starts: after 2 hours of waiting I simply restarted the device and it just worked.
Now another question: there's a decent browser to use in Android TV? the lineage browser is unusable with the remote, a mouse is needed and there is no history/address bar

https://play.google.com/store/apps/deta ... webbrowser
You can always buy me a beer Here ;)
User avatar
voodik
 
Posts: 983
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby Puritan007 » Wed Mar 29, 2017 8:17 am

Hello. I'm new to xu4, and all of this.. First I want to thank you for your work voodik very nicely done, much appreciated.
I've gotten most stuff set up and working. My question is retroarch. When I load a game it crashes everyone no matter what game or emulator.
I wanted the xu4 for kodi and retrogame games. I found gamestation to complex and I'm a little more used to android. But I've no idea why retroarch crashes. I've tried a bunch of "fixes" on YouTube and nothings working at the moment. Just curious if anyone had any tips. Thank you.
Puritan007
 
Posts: 2
Joined: Wed Mar 29, 2017 8:12 am
languages_spoken: english
ODROIDs: Xu4

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby memeka » Wed Mar 29, 2017 8:55 am

I got the TV tuner recognized by the Android TV framework with latest build.
Channels and TV apps appeared, and see the USB tuner as input.
But scanning fails or crashes at the moment. I will be testing the tuner in ubuntu too, I'm using a indoor small antenna so maybe it really is not picking anything up.
After I make the tuner work in ubuntu, i will try again ATV.
User avatar
memeka
 
Posts: 3435
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby odroid » Wed Mar 29, 2017 9:19 am

I've ordered USB ATSC tuner and I will get it in a week.
Please check the availability of the driver.
VID:PID = 2040:b123
Model : Hauppauge 955Q
User avatar
odroid
Site Admin
 
Posts: 22259
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby voodik » Wed Mar 29, 2017 9:35 am

Puritan007 wrote:Hello. I'm new to xu4, and all of this.. First I want to thank you for your work voodik very nicely done, much appreciated.
I've gotten most stuff set up and working. My question is retroarch. When I load a game it crashes everyone no matter what game or emulator.
I wanted the xu4 for kodi and retrogame games. I found gamestation to complex and I'm a little more used to android. But I've no idea why retroarch crashes. I've tried a bunch of "fixes" on YouTube and nothings working at the moment. Just curious if anyone had any tips. Thank you.

I will check for it.
You can always buy me a beer Here ;)
User avatar
voodik
 
Posts: 983
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby voodik » Wed Mar 29, 2017 9:40 am

memeka wrote:I got the TV tuner recognized by the Android TV framework with latest build.
Channels and TV apps appeared, and see the USB tuner as input.
But scanning fails or crashes at the moment. I will be testing the tuner in ubuntu too, I'm using a indoor small antenna so maybe it really is not picking anything up.
After I make the tuner work in ubuntu, i will try again ATV.

Dear memeka, thank you for helping us to bring up DTV support.
Unfortunately TV or LiveTV apps at this moment only support ATSC standard.
For DVB-T/T2/C you need to use mumudvb.
You can always buy me a beer Here ;)
User avatar
voodik
 
Posts: 983
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby memeka » Wed Mar 29, 2017 10:02 am

voodik wrote:
memeka wrote:I got the TV tuner recognized by the Android TV framework with latest build.
Channels and TV apps appeared, and see the USB tuner as input.
But scanning fails or crashes at the moment. I will be testing the tuner in ubuntu too, I'm using a indoor small antenna so maybe it really is not picking anything up.
After I make the tuner work in ubuntu, i will try again ATV.

Dear memeka, thank you for helping us to bring up DTV support.
Unfortunately TV or LiveTV apps at this moment only support ATSC standard.
For DVB-T/T2/C you need to use mumudvb.


@voodik I see. thank you, i am trying to get DVB-T.
In this case, maybe then i can use TVHeadend, because they have an Android TV client which is exposed as a source for Channels app: https://github.com/kiall/android-tvheadend
I will try first with TVHeadend server on some other machine (linux), and if that works, maybe you can add the server to your build.

In this thread here, someone already built tvheadend server a long time ago for odroid U3 :) https://tvheadend.org/boards/5/topics/10286 so it has the compile flags, hope it will make it easier for you!
PS: TVHeadend server can also be configured via http interface, so for a final build it might be best solution, don't need to configure from terminal as long as the server is configured as a service and started at boot.
User avatar
memeka
 
Posts: 3435
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby Puritan007 » Wed Mar 29, 2017 7:08 pm

voodik wrote:
Puritan007 wrote:Hello. I'm new to xu4, and all of this.. First I want to thank you for your work voodik very nicely done, much appreciated.
I've gotten most stuff set up and working. My question is retroarch. When I load a game it crashes everyone no matter what game or emulator.
I wanted the xu4 for kodi and retrogame games. I found gamestation to complex and I'm a little more used to android. But I've no idea why retroarch crashes. I've tried a bunch of "fixes" on YouTube and nothings working at the moment. Just curious if anyone had any tips. Thank you.

I will check for it.


Never mind I figured it out, all is working great thank you!
Puritan007
 
Posts: 2
Joined: Wed Mar 29, 2017 8:12 am
languages_spoken: english
ODROIDs: Xu4

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby memeka » Thu Mar 30, 2017 7:05 pm

@voodik

As I suspected, using TVHeadend works very nicely. The app is still beta and sometimes video is unavailable, but the experience is great! Here's a video:



I hope you remove mumudvb and install tvheadhead server instead in the next build.

PS: you can see Live Channels app has also Google Movies as source, it's the first one :) Also TVHeadend does EPG very nicely...
User avatar
memeka
 
Posts: 3435
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby voodik » Thu Mar 30, 2017 11:42 pm

memeka wrote:@voodik

As I suspected, using TVHeadend works very nicely. The app is still beta and sometimes video is unavailable, but the experience is great! Here's a video:



I hope you remove mumudvb and install tvheadhead server instead in the next build.

PS: you can see Live Channels app has also Google Movies as source, it's the first one :) Also TVHeadend does EPG very nicely...

Dear memeka can you post TVHeadend link which you used ? Are you running TVHeadend backend on Android ?
You can always buy me a beer Here ;)
User avatar
voodik
 
Posts: 983
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby memeka » Fri Mar 31, 2017 2:55 am

I am using tvheadend for android tv from https://tvheadend.org/boards/5/topics/21407

Backend is running on another Linux computer so this is why I asked maybe next build you can install backend in android instead of mumudvb so that client will stream over loopback and eliminate network delay. I sent you PM with a link with configure options for tvheadend backend to compile for android.
User avatar
memeka
 
Posts: 3435
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby rooted » Fri Mar 31, 2017 11:51 am

I haven't seen pip in action, it's cool. Especially if you have dual tuners.

Far as network delay personally I have faster tuning when using tvheadend backend on a different device, it works okay when ran locally but for ATSC it is definitely faster on a separate backend server.

This was using Kodi and not the TV Headend Live Channels app, I have only tried it on my TV.
User avatar
rooted
 
Posts: 3485
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1
C1+
C2
XU3 Lite
XU4
VU7+
HiFi Shield 2
Smart Power (original)

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby memeka » Fri Mar 31, 2017 11:57 am

rooted wrote:I haven't seen pip in action, it's cool. Especially if you have dual tuners.

Far as network delay personally I have faster tuning when using tvheadend backend on a different device, it works okay when ran locally but for ATSC it is definitely faster on a separate backend server.


if you have ATSC then you can select the USB tuner connected locally, so you get the stream directly from tuner pass-thru. this is ideal.
apparently it's not working for DVB-T - it can see the tuner, but scanning fails. so i need to use backend server streaming + atv app.
in any case, i don't see why it's faster for you when u have different device. there's always delay with network, less so when using loopback. in my case, there's no ethernet where i have the tv, and wifi reception is poor, i get maybe ~20mbps connection over wifi g. so streaming is difficult for sd channels, and all i got from hd channels was 1 frame/s :)
User avatar
memeka
 
Posts: 3435
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby voodik » Fri Mar 31, 2017 12:09 pm

Started tvheadend backend porting :?
You can always buy me a beer Here ;)
User avatar
voodik
 
Posts: 983
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby voodik » Fri Mar 31, 2017 12:11 pm

memeka wrote:
rooted wrote:I haven't seen pip in action, it's cool. Especially if you have dual tuners.

Far as network delay personally I have faster tuning when using tvheadend backend on a different device, it works okay when ran locally but for ATSC it is definitely faster on a separate backend server.


if you have ATSC then you can select the USB tuner connected locally, so you get the stream directly from tuner pass-thru. this is ideal.
apparently it's not working for DVB-T - it can see the tuner, but scanning fails. so i need to use backend server streaming + atv app.
in any case, i don't see why it's faster for you when u have different device. there's always delay with network, less so when using loopback. in my case, there's no ethernet where i have the tv, and wifi reception is poor, i get maybe ~20mbps connection over wifi g. so streaming is difficult for sd channels, and all i got from hd channels was 1 frame/s :)

Dear memeka if it possible please test your tuner with mumudvb, because i want to understand is the ported drivers for your tuner are working.
Thenks
You can always buy me a beer Here ;)
User avatar
voodik
 
Posts: 983
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby memeka » Fri Mar 31, 2017 12:37 pm

voodik wrote:
memeka wrote:
rooted wrote:I haven't seen pip in action, it's cool. Especially if you have dual tuners.

Far as network delay personally I have faster tuning when using tvheadend backend on a different device, it works okay when ran locally but for ATSC it is definitely faster on a separate backend server.


if you have ATSC then you can select the USB tuner connected locally, so you get the stream directly from tuner pass-thru. this is ideal.
apparently it's not working for DVB-T - it can see the tuner, but scanning fails. so i need to use backend server streaming + atv app.
in any case, i don't see why it's faster for you when u have different device. there's always delay with network, less so when using loopback. in my case, there's no ethernet where i have the tv, and wifi reception is poor, i get maybe ~20mbps connection over wifi g. so streaming is difficult for sd channels, and all i got from hd channels was 1 frame/s :)

Dear memeka if it possible please test your tuner with mumudvb, because i want to understand is the ported drivers for your tuner are working.
Thenks


Hi voodik,

thanks for starting this. I tested mumudvb and there was no errors, but scanning all resulted in nothing because i did not know the frequencies.
The commands you gave me in pm to load drivers were a bit wrong, i had to insmod first dibxxx_common, then dib7000m, then dib7000p, and last dvb-usb-dib0700. But like this all the drivers loaded fine, and firmware too, i checked dmesg and lsmod and all was good. So i am very confident the drivers you added in last build are good! android tv also immediately recognized usb tuner.

==========

i am thinking if live channels integration is possible directly with dvb tuner. i've seen conflicting posts that dvb tuners work for nvidia shield: http://www.cnx-software.com/2017/03/09/ ... b-support/
do you think there's something different they do to enable dvb?
but i've seen there however that dvb-t users have issues too: https://forums.geforce.com/default/topi ... ?offset=86 and they also discuss adding tvheadend :)

according to this: https://forums.geforce.com/default/topi ... ?offset=47 If you look in googles AOSP source there is a hidden package that allows UsbTuner support: Package name: UsbTunerTvInput
https://android.googlesource.com/platfo ... Android.mk
Is this what you did to enable it?
(later message: Support is actually built into the new 7.0 OTA so no need for the UsbTuner app at all. https://forums.geforce.com/default/topi ... -nougat/5/ so i guess not)

i will try this:
Code: Select all
Try and adb root and adb remount in and symlink /dev/dvb/adapter0/frontend0 to /dev/dvb.frontend0

ln -s /dev/dvb/adapter0/frontend0 /dev/dvb0.frontend0
ln -s /dev/dvb/adapter0/demux0 /dev/dvb0.demux0
ln -s /dev/dvb/adapter0/dvr0 /dev/dvb0.dvr0
ln -s /dev/dvb/adapter0/dvr0.ts /dev/dvb0.dvr0
ln -s /dev/dvb/adapter0/net0 /dev/dvb0.net0
see if that works ....

according to the poster:
In the USB Tuner source code there looks to be support for DVB-T and DVB-C. You will have to test a supported device with a new boot.img and see if the USB Tuner source comes up.
User avatar
memeka
 
Posts: 3435
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby voodik » Fri Mar 31, 2017 1:08 pm

I allready make this tests. And also i checked Live Channels source code and can confirm its only support ATSC. I will try later modify it to support DVB-T. Can you ask me your location? I will try to find your freqs.

Live Channels app scans TS stream for TVCT table which is available only on ATSC streams. Then app add channels to own database depending TVCT.
You can always buy me a beer Here ;)
User avatar
voodik
 
Posts: 983
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby memeka » Fri Mar 31, 2017 1:11 pm

voodik wrote:I allready make this tests. And also i checked Live Channels source code and can confirm its only support ATSC. I will try later modify it to support DVB-T. Can you ask me your location? I will try to find your freqs.

Live Channels app scans TS stream for TVCT table which is available only on ATSC streams. Then app add channels to own database depending TVCT.


I see, thank you for confirming.
I'll check next time the freq in tvheadend and try mumudvb. I'll post the result but i am 99% sure tuner is working.

EDIT: i checked again, I get correct /dev/dvb/ entries, mumudvb -l shows my tuner, but scanning fails to find anything.... dmesg shows mostly good stuff, firmware is found, dvb is registered successfully, tuner IR keymap is registered, interfaces are registered, all good except this:
DVB: unable to find symbol dib0070_attach()
User avatar
memeka
 
Posts: 3435
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby rooted » Sat Apr 01, 2017 4:29 am

@memeka

My stuff is all wired gigabit, that's why it's so fast. Over wireless or 10/100 it's a definitely a bit slower than loopback.
User avatar
rooted
 
Posts: 3485
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1
C1+
C2
XU3 Lite
XU4
VU7+
HiFi Shield 2
Smart Power (original)

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby voodik » Sat Apr 01, 2017 4:37 am

memeka wrote:
voodik wrote:I allready make this tests. And also i checked Live Channels source code and can confirm its only support ATSC. I will try later modify it to support DVB-T. Can you ask me your location? I will try to find your freqs.

Live Channels app scans TS stream for TVCT table which is available only on ATSC streams. Then app add channels to own database depending TVCT.


I see, thank you for confirming.
I'll check next time the freq in tvheadend and try mumudvb. I'll post the result but i am 99% sure tuner is working.

EDIT: i checked again, I get correct /dev/dvb/ entries, mumudvb -l shows my tuner, but scanning fails to find anything.... dmesg shows mostly good stuff, firmware is found, dvb is registered successfully, tuner IR keymap is registered, interfaces are registered, all good except this:
DVB: unable to find symbol dib0070_attach()

When this message appears ? On module load ? Or when tuning ? Can you post part of dmesg when you load modules then starting mumudvb ?
You can always buy me a beer Here ;)
User avatar
voodik
 
Posts: 983
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby odroid » Sat Apr 01, 2017 7:51 am

I ordered another ATSC tuner.
Please check the driver availability.
USB ID 0fe9:d620
Model DVico FusionHDTV7 USB
User avatar
odroid
Site Admin
 
Posts: 22259
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby crossover » Sat Apr 01, 2017 5:38 pm

How can i shutdown the system safely?
I can't find a power button on the ATV GUI.
crossover
 
Posts: 101
Joined: Wed Jul 22, 2015 2:23 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, USB-IO, Tinkering kits

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby voodik » Sun Apr 02, 2017 9:29 am

Latest Tvheadend backend ported and running on XU3/XU4 :ugeek:
livetv.png
(79.92 KiB) Downloaded 329 times
You can always buy me a beer Here ;)
User avatar
voodik
 
Posts: 983
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby memeka » Sun Apr 02, 2017 10:51 am

voodik wrote:Latest Tvheadend backend ported and running on XU3/XU4 :ugeek:
livetv.png


Update??
User avatar
memeka
 
Posts: 3435
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby rooted » Sun Apr 02, 2017 12:35 pm

Very nice.

Sent from my SM-G900T using Tapatalk
User avatar
rooted
 
Posts: 3485
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1
C1+
C2
XU3 Lite
XU4
VU7+
HiFi Shield 2
Smart Power (original)

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby voodik » Sun Apr 02, 2017 7:39 pm

memeka wrote:
voodik wrote:Latest Tvheadend backend ported and running on XU3/XU4 :ugeek:
livetv.png


Update??

Can you answer to my previous question ?
You can always buy me a beer Here ;)
User avatar
voodik
 
Posts: 983
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian

Re: LineageOS-14.1 Android TV for ODROID-XU3/XU4

Unread postby memeka » Sun Apr 02, 2017 9:35 pm

voodik wrote:
memeka wrote:
voodik wrote:Latest Tvheadend backend ported and running on XU3/XU4 :ugeek:
livetv.png


Update??

Can you answer to my previous question ?


* Kernel 4.9 linux (working)
Code: Select all
[   16.766152] dvb-usb: found a 'Hauppauge Nova-TD Stick (52009)' in cold state, will try to load a firmware
[   16.786358] dvb-usb: downloading firmware from file 'dvb-usb-dib0700-1.20.fw'
[   17.484340] dvb-usb: found a 'Hauppauge Nova-TD Stick (52009)' in warm state.
[   17.493416] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[   17.503682] DVB: registering new adapter (Hauppauge Nova-TD Stick (52009))
[   17.520552] dvb_create_media_entity: media entity 'dvb-demux' registered.
[   17.801308] usb 3-1.2: DVB: registering adapter 0 frontend 0 (DiBcom 7000PC)...
[   17.810169] dvb_create_media_entity: media entity 'DiBcom 7000PC' registered.
[   18.067710] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[   18.078117] DVB: registering new adapter (Hauppauge Nova-TD Stick (52009))
[   18.093803] dvb_create_media_entity: media entity 'dvb-demux' registered.
[   18.271891] usb 3-1.2: DVB: registering adapter 1 frontend 0 (DiBcom 7000PC)...
[   18.280879] dvb_create_media_entity: media entity 'DiBcom 7000PC' registered.
[   18.544662] input: IR-receiver inside an USB DVB receiver as /devices/platform/soc:/soc:usb3-0:/12000000.dwc3:/xhci-hcd.2.auto/usb3/3-1/3-1.2/rc/rc0/input5
[   18.561098] rc rc0: IR-receiver inside an USB DVB receiver as /devices/platform/soc:/soc:usb3-0:/12000000.dwc3:/xhci-hcd.2.auto/usb3/3-1/3-1.2/rc/rc0
[   18.576762] dvb-usb: schedule remote query interval to 50 msecs.
[   18.584976] dvb-usb: Hauppauge Nova-TD Stick (52009) successfully initialized and connected.
[   18.595869] usbcore: registered new interface driver dvb_usb_dib0700

odroid@odroid:~$ lsmod
Module                  Size  Used by
dib7000p               26015  2
dvb_usb_dib0700        92575  1
dib0070                 7275  3 dvb_usb_dib0700
dib7000m               13244  1 dvb_usb_dib0700
dib0090                23336  1 dvb_usb_dib0700
dvb_usb                15259  1 dvb_usb_dib0700
dib3000mc               9728  1 dvb_usb_dib0700
dibx000_common          6190  4 dib7000p,dvb_usb_dib0700,dib7000m,dib3000mc


* Android TV

Code: Select all
[ 1588.646375] [c4] dvb-usb: downloading firmware from file 'dvb-usb-dib0700-1.20.fw'
[ 1588.735553] [c7] dib0700: firmware started successfully.
[ 1589.241258] [c1] dvb-usb: found a 'Hauppauge Nova-TD Stick (52009)' in warm state.
[ 1589.249422] [c1] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[ 1589.256977] [c1] dvbdev: DVB: registering new adapter (Hauppauge Nova-TD Stick (52009))
[ 1589.264776] [c1] usb 3-1.2: media controller created
[ 1589.272226] [c1] dvbdev: dvb_create_media_entity: media entity 'dvb-demux' registered.
[ 1589.279369] [c1] type=1400 audit(1491138211.529:25): avc: denied { create } for pid=48 comm="kdevtmpfs" name="dvb" scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=dir permissive=1
[ 1589.498175] [c0] usb 3-1.2: DVB: registering adapter 0 frontend 0 (DiBcom 7000PC)...
[ 1589.504525] [c0] dvbdev: dvb_create_media_entity: media entity 'DiBcom 7000PC' registered.
[ 1589.514410] [c0] DVB: Unable to find symbol dib0070_attach()
[ 1589.521152] [c0] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[ 1589.528677] [c0] dvbdev: DVB: registering new adapter (Hauppauge Nova-TD Stick (52009))
[ 1589.537752] [c0] usb 3-1.2: media controller created
[ 1589.543890] [c0] dvbdev: dvb_create_media_entity: media entity 'dvb-demux' registered.
[ 1589.708863] [c0] usb 3-1.2: DVB: registering adapter 1 frontend 0 (DiBcom 7000PC)...
[ 1589.715221] [c0] dvbdev: dvb_create_media_entity: media entity 'DiBcom 7000PC' registered.
[ 1589.724913] [c0] DVB: Unable to find symbol dib0070_attach()
[ 1589.731747] [c0] Registered IR keymap rc-dib0700-rc5
[ 1589.737518] [c0] input: IR-receiver inside an USB DVB receiver as /devices/usb.1/12000000.dwc3/xhci-hcd.2.auto/usb3/3-1/3-1.2/rc/rc0/input6
[ 1589.750680] [c0] rc0: IR-receiver inside an USB DVB receiver as /devices/usb.1/12000000.dwc3/xhci-hcd.2.auto/usb3/3-1/3-1.2/rc/rc0
[ 1589.763861] [c0] dvb-usb: schedule remote query interval to 50 msecs.
[ 1589.770385] [c0] dvb-usb: Hauppauge Nova-TD Stick (52009) successfully initialized and connected.
[ 1589.779633] [c0] usbcore: registered new interface driver dvb_usb_dib0700

lsmod:

dvb_usb_dib0700        93319  0
dib7000p               24258  2
dib7000m               13309  1 dvb_usb_dib0700
dibx000_common          6140  3 dvb_usb_dib0700,dib7000p,dib7000m


all messages at insmod dvb_usb_dib0700 (last one)

EDIT: apparently dib0070_attach is in dib0070.c which is enabled by CONFIG_DVB_TUNER_DIB0070 (at least in recent kernels)...
also dib3000mc is loaded in linux, and is missing from android (CONFIG_DVB_DIB3000MC) just like CONFIG_DVB_TUNER_DIB0070 and CONFIG_DVB_TUNER_DIB0090 (dib0070 and dib0090 modules)
User avatar
memeka
 
Posts: 3435
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

PreviousNext

Return to Android

Who is online

Users browsing this forum: No registered users and 1 guest