yashsingh1/xdaforums huggingface dataset:
[Shield Android TV General] nopnop9090:
I will put the tvheadend sources into a separate repo as soon as I got time, along with some info on how to create a buildroot for it - basically its made like so: setup a buildroot environment (http://buildroot.net), set it to statically compile libraries, then compile the libdvbcsa and ffmpeg libs, change buildroot into dynamic+static libs mode and finally make a tvheadend build with CCFLAGS add of "-fPIE -pie". you will see the filesize increase from ~10 megs of a standard build (without precompiling static libs) to about 70-80 megs if you did it right (=no external libs required to run it).

you dont need a plugin for kodi, just set up oscam with the web interface as usual, then add a mode 5 connection (dvbapi tcp) in tvheadend CA config page which should show up after changing its interface level to "expert" (general tab). (you can even use a simple newcamd connection but I prefer dvbapi for zapping speed and less bulky emm updates.)
[Shield Android TV General] ErAzOr2k:
You don't need a kodi Plugin for that. You just habe to Connecticut your tvheadend to your oscam (DVB API over TCP)

---------- Post added at 05:32 PM ---------- Previous post was at 05:27 PM ----------

@nopnop9090 FYI I tried the tvheadend build from wetek Core on nvidia shield and it's works perfectly in my case. The build is ~15mb.

The best thing, my described error with IPTV links is gone with that build.
[Shield Android TV General] nopnop9090:
could you please provide a link to that build?
[Shield Android TV General] ErAzOr2k:
http://www.wetekforums.com/v/index....end-helper-use-a-usb-tuner-on-your-wetek-core

You need to extract that apk to get the binary
[Shield Android TV General] ErAzOr2k:
FYI Source Code for 3.0 is out now:

http://nv-tegra.nvidia.com/gitweb/?...n;f=README_SHIELD;hb=rel-24-foster-r2-partner
[Shield Android TV General] slamride:
Thanks I was looking for this after my shield ask to update
[Shield Android TV General] jonsey:
Hi nopnop9090, i've a dreambox 800 se,can I substitute this decoder with DVB-s2 usb pendrive into the shield tv in the future?Can i set c-line also??
[Shield Android TV General] xaudiblex:
Thanks for all of your hard work! Let me know if you need anyone to test out the HDHomerun functionality.
[Shield Android TV General] xd4d3v:
Hi nopnop.

are you able to compile sshd while you're at it?

so we can access the shield via sftp?

Samba would be nice, but after thinking about it, setting different permissions per folder, etc, will need to be done via smb.conf, and would be painful, unless there already an open source gui for changing smb.conf somewhere you can reutilise..

thanks
[Shield Android TV General] slamride:
http://kodi.wiki/view/Samba

Kodi has samba ability ....may work for you

I have a server setup that I store video on and share across my home network with three computers all using Kodi

It also can download scraper info so covers and description are displayed in list. File names must be corrected sometimes. Also if you make a TV Show file it will add a "TV Shows" tab on main Kodi screen for saved(notLive) TV. Live TV will show a "TV" tab.
[Shield Android TV General] xd4d3v:
I haven't tried Kodi.

but are you saying Kodi runs a samba server?

I thought it's a client only.
[Shield Android TV General] kgersen:
Great work nopnop. thx for sharing.

I've created a Dockerfile and a public image to allow anyone to build their own kernel more easily.

You can get it here with instructions: https://hub.docker.com/r/kgersen/abe/ (or from https://github.com/kgersen/abe directly)

Basically it allows you to build from NVidia source without having to install the build tools on your computer. You can also build on Windows/Mac using Docker Toolbox ( https://www.docker.com/products/docker-toolbox ).
[Shield Android TV General] Piitaya:
Great work! Is it possible to integrate tvheadend with Google Live Channels app?
[Shield Android TV General] umoraes2009:
Shield on 3.0

Hi,

Do you have any build ready running on new shield OS ? 3.0 update ? thanks!
[Shield Android TV General] benjy214:
I compiled a Kernel from the 3.0 sources.

Works on the 500GB version with dvbsky:

http://www8.zippyshare.com/v/LgyYyRwy/file.html
[Shield Android TV General] crnkoj:
Did you just use the sources from nvidia or modified something?

Btw I have working dvbs2 on the previous version 5.1 (2.1 firmware if I'm not mistaken), but it seems my usb tuner (terratec synergy s2 hd) is way weaker than the integrated tuner in my rather cheap LG TV. Several channels aren't being properly received and are just garbled. And when I try to watch ( be it only by mistake) such a channel, kodi sort of hard locks up and I have to force close it. Same goes for when it loads epg channel info from backend (tvheadend) it sometimes just locks up (truth be told I have a 4 lnb setup with approx 3000 channels - though most are scrambled/encoded, so not usable anyways)

Got any ideas guys?
[Shield Android TV General] ErAzOr2k:
Maybe you can do the same for the 16GB variant? :)
[Shield Android TV General] uronito:
Please Someone can compile kernel 3.0 for 16gb version static dvbapi from nopnop.

Thanks.
[Shield Android TV General] ToMoT:
Hello, great work i'm interested by a stable 3.0 Kernel 16Gb

Can we have a list of supported devices DV-B ?
[Shield Android TV General] ToMoT:
How to use usb stick when it is recognize by the shield ?

What kind of software du you use for a gui sat tuner, sat finder, manage channels etc. ?

Thanks
[Shield Android TV General] ErAzOr2k:
I hope this project isn't dead :(
[Shield Android TV General] xd4d3v:
The developer is probably busy.

If there are any other devs out there that can contribute.. don't be shy
[Shield Android TV General] lexyan77:
Hi All,

I have compiled the kernel for SATV-3.0 with static drivers and ntfs-rw support. My cheap RTL2832U usb tuner works great.

To autostart tvheadend provided by nopnop9090, i need to install SuperSu 2.65 through TWRP and put boot script in /su/su.d.

You can find it in my dropbox. https: // www . dropbox . com / s / zosrn6j759bal01 / SATV.3.0.dvb.static.tar.bz2 ? dl=0

Some adapter needs firmware files to work.

Any reviews are appreciated.
[Shield Android TV General] ErAzOr2k:
Thank you :)

Is it for 16GB or 500GB?
[Shield Android TV General] lexyan77:
It's for 16GB
[Shield Android TV General] xd4d3v:
Thanks.. will try once i get home, and give you feedback.
[Shield Android TV General] slamride:
Been busy with work but I have been setting up my linux build with the containers to make some builds. Hope to get some done soon. Been rounding up some different tuners to try also.
[Shield Android TV General] dopefish1337:
Hey guys,

first of all thank you for this great project.

can you help me with the drivers for my DVBSky T330 DVB-T2/T/C USB Stick / Edision Optimuss DVB-C. I could not get it working. TVHeadend is running but it does not recognize the stick...

Here is what i did:

1. Flashed the pre rooted Nvidia Marshmallow ROM, see http://xdaforums.com/shield-tv/development/rom-nvidia-factory-stock-rooted-roms-t3249508

2. installed TWRP via flashboot (fastboot flash recovery twrp-20160222-UNOFFICIAL-foster.img)

3. flashed the boot image from lexyan77, see http://xdaforums.com/showpost.php?p=65850624&postcount=96 (fastboot flash boot boot.img)

4. Flashed latest stable supersu using TWRP, see https://download.chainfire.eu/921/SuperSU/UPDATE-SuperSU-v2.65-20151226141550.zip (UPDATE-SuperSU-v2.65-20151226141550.zip)

5. copied tvheadend to data/dvb using es file explorer (root activated

6. copied boot script in /su/su.d.

7. Started tvheadend initally through TWRP (Supersu did not work at first):

start tvheadend with the modified line from above

/data/dvb/tvheadend -C -c /data/dvb/hts

Now i got tvheadend running but it did not recognise my DVBSky T330 DVB-T2/T/C USB Stick / Edision Optimuss DVB-C stick.

After i flashed the boot.img again i lost root right /Supersu. After flashing supersu again i got root back and i could start tvheadend using supers su with

adb shell

su

/data/dvb/tvheadend -C -c /data/dvb/hts

Instead of kodi i am using SPMC, see http://spmc.semperpax.com/ or https://play.google.com/store/apps/details?id=com.semperpax.spmc16 (shield tv optimised)

i could not find my device under tvheadend (https://tvheadend.org/projects/tvheadend/wiki/Install_and_initial_setup)

Thank you very much guys.
[Shield Android TV General] lexyan77:
[MENTION=2880689]dopefish1337[/MENTION] : DVBSky module is not included in my build. I need to had drivers from linuxtv media_build to support it. I'll try to compile it tomorrow.
[Shield Android TV General] ErAzOr2k:
Kernel with DVBSky module and NTFS support for 16GB Shield would be great :)
[Shield Android TV General] lexyan77:
Kernel for 16G version recompiled with builtin loadable modules and media_build modules.

I have modified kernel to search firmware files in /data/firmware to avoid modifying /system.

You need to load kernel modules in the right order (tuner module before dvb-usb* modules)

https: // www. dropbox. com/s/1xbw11x4obfhf6j/kernel-modules-media_build.tar.gz?dl=0
[Shield Android TV General] dopefish1337:
Thank you so much for your fast help. I will try it now. To be honest i have no clue what you mean by loading the kernel modules in the right orders but i will try and do my best (sorry for being such a noob :angel:)
[Shield Android TV General] lexyan77:
For dvbsky tuner, you need to load m88ds3103.ko before dvb_usb_v2.ko and dvb-usb-dvbsky.ko

For example, with my rtl2832u with r820t tuner :

insmod /data/dvb/modules/r820t.ko

insmod /data/dvb/modules/dvb_usb_v2.ko

insmod /data/dvb/modules/rtl2830.ko

insmod /data/dvb/modules/rtl2832.ko

insmod /data/dvb/modules/dvb-usb-rtl28xxu.ko
[Shield Android TV General] dopefish1337:
Thanks again and sorry for this private conversation.

With the following commands it seems like the stick has been recognised but i am not able to select it via tvheadend, somehow i am too stupid:

commands

adb shell

su

insmod /data/dvb/modules/m88ds3103.ko

insmod /data/dvb/modules/dvb_usb_v2.ko

insmod /data/dvb/modules/dvb-usb-dvbsky.ko

dmesg shows after plugging in the stick:

[ 515.558899] usb 2-2: new high-speed USB device number 5 using tegra-xhci

[ 515.580029] usb 2-2: New USB device found, idVendor=0572, idProduct=0320

[ 515.580040] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[ 515.580048] usb 2-2: Product: DVB-T2/C USB-Stick

[ 515.580055] usb 2-2: Manufacturer: Bestunar Inc

[ 515.580062] usb 2-2: SerialNumber: xxx

after that tvheadend has been started with the command:

/data/dvb/tvheadend -C -c /data/dvb/hts

dmesg shows something about the permissions, i think:

[ 1398.057339] type=1400 audit(1458389171.991:89): avc: denied { write } for pid

=4550 comm="tvh:tcp-start" path="socket:[36777]" dev="sockfs" ino=36777 scontext

=u:r:init:s0 tcontext=u:r:init:s0 tclass=tcp_socket permissive=1

[ 1398.057463] type=1400 audit(1458389171.991:90): avc: denied { read } for pid=

4550 comm="tvh:tcp-start" path="socket:[36777]" dev="sockfs" ino=36777 scontext=

u:r:init:s0 tcontext=u:r:init:s0 tclass=tcp_socket permissive=1

[ 1404.359906] type=1400 audit(1458389178.301:91): avc: denied { syslog_read } f

or pid=5073 comm="dmesg" scontext=u:r:init:s0 tcontext=u:r:kernel:s0 tclass=syst

em permissive=1

tvheadend looks like this:

http:// abload.de /img/unbenanntisz9u.png

sorry for bothering you guys
[Shield Android TV General] lexyan77:
[MENTION=2880689]dopefish1337[/MENTION] : you need other modules : si2157.ko and si2168.ko. You also need firmware files dvb-fe-ds300x.fw, dvb-tuner-si2158-a20-01.fw in /data/firmware

in dmesg you must see message like 'DVB: registering adapter 0 frontend 0' if it successfully initialize.

tvheadend search for adapter under /dev/dvb/ so you must create symlinks like :
[Shield Android TV General] dopefish1337:
Thanks again, still not working. Is there still something missing?

After i got the error code below i copied every firmware file from https://github.com/OpenELEC/dvb-firmware/tree/master/firmware to data/firmware. but still no luck:

[ 3597.127572] usb 2-3: dvb_usb_v2: dvb_dmx_init() failed=-12

[ 3597.133914] dvb_usb_dvbsky: probe of 2-3:1.0 failed with error -1
[Shield Android TV General] lexyan77:
You face a kernel panic for that module.

you must rmmod (remove module) all modules you have loaded (find their name with lsmod) and then insmod the modules starting with si2157.ko and si2168.ko.

(I'll try to find a reseller for dvbsky dongle that send to France but can't find one at the moment)
[Shield Android TV General] ErAzOr2k:
Thank you so much :)

Did you include NTFS support?
[Shield Android TV General] dopefish1337:
I removed all modules and used insmod to add them again, in several different orders. But it failed everytime, everytime after i use insmod /data/dvb/modules/dvb-usb-dvbsky.ko i get:

[ 1774.458826] usb 2-3: dvb_usb_v2: dvb_dmx_init() failed=-12

[ 1774.464965] dvb_usb_dvbsky: probe of 2-3:1.0 failed with error -12

lexyan77: I will send you one dvbsky stick from germany, 25€. Shipping cost to france is on me!
[Shield Android TV General] crnkoj:
wrong post sorry
[Shield Android TV General] crnkoj:
man im using the oscam and tvheadend from wetek now, it works, but it randomly keeps crashing and crashes my tuner, than i have to pull the plug on both the tuner and shield, wait a bit and than it works again. do you mind sharing which dvb-s stick you are using?

thanks
[Shield Android TV General] TAM1m:
Do you have a link to the binary?
[Shield Android TV General] crnkoj:
http://www.wetekforums.com/v/index....end-helper-use-a-usb-tuner-on-your-wetek-core

download the app, extract it with 7zip/winrar/etc and than you have both inside.
[Shield Android TV General] ToMoT:
3.1

Hello can someone compile Kernel from the 3.1 sources ?

Does terratec S7 DVB-S2 will be rocognize i tvheadend ?

Many thanks for your job !

Thomas
[Shield Android TV General] lexyan77:
Kernel didn't change between 3.0 and 3.1, you can use my build with modules.

For your terratec S7, if it's rev 1 or 2 it will work with modules from media build, if it's rev 3 it need patched module
[Shield Android TV General] ToMoT:
hello when i want to insmod some modules i always have the message :

insmod: failed to load /data/dvb/dvb-usb.ko: Exec format error

Do you have the same problem ?

Thanks
[Shield Android TV General] lexyan77:
Can you type " dmesg|tail " just after insmod to see the error ?
[Shield Android TV General] ToMoT:
Finally it works, thanks all ! :)
[Shield Android TV General] ToMoT:
So now i just need to install oscam or ccam client , any idea how to do that ?
[Shield Android TV General] ToMoT:
Did you ever sea this error when trying to launch a program ?

error: only position independent executables (PIE) are supported.

According to xda i tried bypass this error by replacing linker in /system/bin/linker by a modified one, but when i reboot the shield TV hang ! (google logo stand and flash but the shield never go on).

Many thanks
[Shield Android TV General] lexyan77:
You need to reflash stock system partition from dump or official image.
[Shield Android TV General] Louer Adun:
A couple quick questions.

Is this kernel built using "stock" android (non android-tv) or built by modifying the stock NVidia kernel? In other words, is it designed for full android or NVidia's Android TV? Basically I want to keep the stock Shield TV interface, but just add the tuner support. Somehow I missed the launcher at the beginning of your youtube video. That pretty much answers this question.

The tuner I have is an Avermedia A868(R). It's fairly old (probably one of the first digital USB tuners available), but has been supported in linux kernel since 2.6.27, so I assume it would probably work, do you think that's correct?

https://www.linuxtv.org/wiki/index.php/AVerMedia_AVerTVHD_Volar_(A868R)

It looks like the modules needed are all included in the DVB Static branch (dvb_core, dvb_usb, dvb_usb_cxusb, lgdt330x, mxl5005s)

And one last question... I don't plan on using this as a server, or PVR, I just want access to my live tv through the Google Live Channels application. Will this be possible once the tuner is recognized by the Android system? In other words, do your tuners appear as sources for Live Channels or is it required to use Kodi/tvheadend
[Shield Android TV General] Louer Adun:
Okay I must be doing something wrong as I can't get it to successfully boot after flashing the kernel.

Here are the steps I performed:

Install fresh 3.1 install

Boot into system

reboot to TWRP and do a TWRP Backup

Boot into bootloader and execute "fastboot flash boot boot-099a0b601ae3-dvb_static.img" followed by "fastboot reboot"

System starts to load, but stuck on NVidia loading screen (wait about 5 minutes and it reboots, stuck in a bootloop)

Boot into TWRP and clear dalvik cache and reboot, same issue, stuck on NVidia logo

At this point I restored my backup and everything was fine.

Any ideas what I'm doing wrong here?
[Shield Android TV General] lexyan77:
Hi,

the kernel you flash was for Shield system v2,

you can try my build for v3.1
[Shield Android TV General] Louer Adun:
I assume you are talking about the build you posted here?

http://xdaforums.com/showpost.php?p=65924075&postcount=104

Also, are the modules mentioned in my earlier post (dvb_core, dvb_usb, dvb_usb_cxusb, lgdt330x, mxl5005s) already loaded as they are in the static build, or will I have to insmod them?

In addition do you have any idea if the tuner will be available to the "Live Channels" Google app?

Thanks!
[Shield Android TV General] Louer Adun:
Nevermind, I figured it out. Didn't realize you had a build for the static kernel as well. It seems to see it just fine per the dmesg output after plugging in the device, however it does not appear in the Live Channels Google app, for anyone curious.

Thanks!
[Shield Android TV General] lexyan77:
[MENTION=612109]ToMoT[/MENTION] : You can find a cross compiled oscam in my dropbox, no need to modify system file : oscam-libusb-nossl

[MENTION=2300623]Louer Adun[/MENTION] : For Live Channels Google app, we need an application that interface tvheadend with TIF from google TIF
[Shield Android TV General] ToMoT:
Thanks a lot it works :))
[Shield Android TV General] wakkaday:
can this replace a satbox? why not just use kodi and use enigma 2 stream etc from your mainbox i dont get this? can i upload mgcamd/cccam file?
[Shield Android TV General] mimo_424:
Hello guys, does this work with full android 6.0 running on 16g shield? and is it possible to run IPTV on tvheadend with the provided files?

/M
[Shield Android TV General] ToMoT:
Yes
[Shield Android TV General] lupull08:
nVidia shield TV + TBS 5520 Multistandard

Hello

Owning a shield TV 500GB with fw stock plus TBS 5520 Multistandard (tv tuner usb) - cnx-software.com/2015/11/14/tbs5520-multi-standard-tuner-box-and-linux-drivers

Is there a fw adapted for connecting the TV tuner usb to shield?

I dot not know linux and thanks the answer - google translate
[Shield Android TV General] lexyan77:
Hi lupull08,

Sorry for you but your tuner TBS 5520 Multistandard is not compatible with linux on arm based hardware as TBS only release driver for x86 and x64 cpu.

You must find another usb tuner (list here) if you want dvb on shield.
[Shield Android TV General] lupull08:
nvidia shield tv + dvbsky s960

Ok, but nvidia shield TV 500GB fw stock + dvbsky s960? - dvbsky.net/Products_S960.html

I'd be interested to reception / playback 4K satellite programs
[Shield Android TV General] lexyan77:
Yes DVBSky S960 is supported by media_build modules, you need firmware from dvbsky site.
[Shield Android TV General] lupull08:
Yes DVBSky S960 is supported by media_build modules, you need firmware from dvbsky site

How To...... - Because I dont now Linux
[Shield Android TV General] lupull08:
TBS 5520 Multistandard source code

Hello

I got the source code for TV tuner TBS 5520 Multistandard

I uploaded the source code here forum

Please nice if they know / like someone to compile with the shield last fw stock (3.1)

And how to then install it on the shield (on stick or whatever)

The source code is sent Diabloss
[Shield Android TV General] ToMoT:
Same here, im looking for compiled DVB-C drivers for TBS 5220
[Shield Android TV General] lupull08:
I wrote that I do not know linux

And therefore we kindly on a 'linux-ist' to me that I compile and source code attached above a shield fw stock nvidia 3.1 500GB
[Shield Android TV General] derern:
Driver Support for Si2168?

First of all,

thanks for creating this topic. Having a vacation soon and wanted to dive into making my SATV a working PVR center. As of now, I have a RPi3 for that with LibreELEC/TVH 4.2 and 2 USB Tuners (Edision Optimuss, PCTV 292e --> both Si2168). However, I can't tune both at the same time (getting artifacts) so I wanted to try how it runs on the Shield.

Now the question: Is support for these in the static build (asit's only supposed to be supported since 3.16)? And what arch would TVH have to be compiled for? AArch64?

Any hope that there'll be a fully functional Linux dist (including graphics) anytime soon?

Best, io
[Shield Android TV General] neostylez:
Hey,

Thanks for the kernel merge, I'm looking forward to testing this out. I ordered the Hauppauge WinTV-HVR-950Q, seeing as https://www.linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-950Q gives me confidence this build out should work. As it's not specifically mentioned my question, is does this Kernel support ATSC, I'm located in Canada?

I'm willing to test it out, if someone can do a merge or guide me so I maybe able to do a compile. Always been wanting to learn.... Been a tinkerer forever. Rooted all my phones, custom roms, iphone jailbreaks...
[Shield Android TV General] lexyan77:
[MENTION=6142582]derern[/MENTION] & neostylez : You can find the kernel and modules for shield 16gb system 3.1 in my dropbox with a precompiled tvheadend version 4.1.

You may need firmware file for your tuner (place it in /data/firmware) and load (insmod) the modules in correct order.
[Shield Android TV General] wakkaday:
what does this allow to do? use the shield tv as a set top box?

i have a zgemma 2s can i configure the shield tv to broadcast channels?
[Shield Android TV General] umoraes:
Any chance this works on new firmware 3.2? Thanks!
[Shield Android TV General] lexyan77:
Hi asdfgag,

For your Terratec S7 you need to place "dvb-usb-az6027-03.fw" (find with google) in the folder /data/firmware

and from my kernel_modules folder insmod drivers : stb6100 stb0899 dvb_usb and dvb_usb_az6027

If you use the bootscript from nopnop you must edit it to reflect the modules you need.

Sometimes firmware are blocked from /data/firmware, so you must plce it in "/system/firmware"

[MENTION=749776]umoraes[/MENTION] : as soon as source for 3.2 released, i will update my kernel and modules.
[Shield Android TV General] asdfgag:
ty, lexyan!

I've copied dvb-usb-az6027-03.fw to /data/firmware and to be sure, also to /system/firmware.

then i've copied stb0899, stb6100, dvb-usb and dvb-usb-az6027 to /data/dvb/modules and also in that order insmod /data/dvb/modules/stb0899, sbt 6100, dvb-usb.., dvb-usb...

finaly i copied tvheadend to /data/dvb and chmod 777 tvheadend to make it executable.

next /data/dvb/tvheadend -C -c /data/dvb/hts - webinterface appears BUT the tuner isnt there.

where was my mistake?

and no, i use your bootscript.

sorry for that private conversation and thx again :o
[Shield Android TV General] lexyan77:
TVHeadend Android LiveTv

asdfgag found a promising apps for us : TvHeadend live tv

It's fully fonctionning on my shield with a tvheadend version i compile with software transcoding link
[Shield Android TV General] umoraes:
Lexyan77, now that 3.2 is released - can you please update files for 3.2 ? Thanks!!!
[Shield Android TV General] lexyan77:
3.2 update is released but not the source. Waiting for Nvidia to make it available on their repo.
[Shield Android TV General] benjy214:
Can you do a Version for the 500gb Model too pls
[Shield Android TV General] ToMoT:
Hey, thanks Lexyan77, must we wait before uprading in 3.2 ? Will we loose modules and conf for DVB adapters ?

Thanks