yashsingh1/xdaforums huggingface dataset:
[Shield Android TV General] jovanslobenovic:
Problem with tuners

Hello,

I am trying with 2 different tuners to get dvbapi support on my shield device but without success. I am about to create midleware which will bind DVBAPI with LiveTV app thought TIF interface.

I bought one from aliexpress: dvb-t2-receiver-GENIATECH-MyGica-USB-TV-Stick-T230C-DVB-T2-Tuner-DVB-C-DVB-T and according to linuxtv org Geniatech_T230 it should be supported in kernel. I used various boot image from dropbox: boot-5.1-16g-for_tvheadend_final.img, boot-5.1-16g-firmware.img and boot_5.1-16gb-dvb-3.19.img, but non of them gives me "DVB: registering adapt..." message in dmesg. All I have is that USB device is recognized but /dev/dvb0.frontend0 or /dev/dvb0.demux0 are not created.

I found on linuxtv Geniatech_T230 web page that:

8dfc2483d90282bbb05817fbbc282376 dvb-demod-si2168-b40-01.fw
0cba7ce61c1411cbe7f22c0746e24e33 dvb-tuner-si2158-a20-01.fw

should be used, so I push them to system/etc/firmware and data/firmware just for case, but after reboot didn't get "DVB: registering adapt..." message in dmesg.

[ 8.897531] usb 2-3: new high-speed USB device number 2 using tegra-xhci
[ 8.918306] usb 2-3: New USB device found, idVendor=0572, idProduct=c689
[ 8.925022] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 8.932173] usb 2-3: Product: EyeTV Stick
[ 8.936198] usb 2-3: Manufacturer: Geniatech
[ 8.940482] usb 2-3: SerialNumber: 160421

Similar is with other tuner, it's recognized in kernel but DVBAPI modules are not loaded.

[ 282.030125] usb 2-3: new high-speed USB device number 5 using tegra-xhci
[ 282.052671] usb 2-3: New USB device found, idVendor=2137, idProduct=0001
[ 282.052680] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 282.052686] usb 2-3: Product: Super Digi KEY
[ 282.052690] usb 2-3: Manufacturer: Beyonics
[ 282.052695] usb 2-3: SerialNumber: 00000000000000

Should I insmod some kernel object files? Where I can found those? I used to download firmware files from OpenELEC/dvb-firmware/tree/master/firmware github repo.

---------- Post added at 02:37 PM ---------- Previous post was at 02:30 PM ----------

My idea for start is to create simple tzap application which will lock on some DVB-T2 frequency and get transport stream packages thought DVBAPI. I manage to compile and run tzap binary application with ndk buiild, but stuck with missing /dev/demux... files.
[Shield Android TV General] lexyan77:
Hi,

The MyGica T230C is totally different than MyGica T230, it's only supported since kernel v4.4

I have backported drivers from kernel 3.19 so it's not working with your device.

For more information, you can read linuxtv page related to MyGica T230C.

For your second device, I can't find any information on it.
[Shield Android TV General] lexyan77:
Kernel with backported drivers from kernel 4.4

Hi,

New kernel with backported drivers from kernel 4.4.

It mainly add support for

Hauppauge WinTV-HVR-955Q

Hauppauge Xbox One tuner

Different build for :

Shield(2015) 16G : https://www.dropbox.com/s/k1s7t103ypta6ff/boot_5.1-16gb-dvb-4.4.zip?dl=0

Shield(2015) Pro : https://www.dropbox.com/s/8li02t5878hgdhd/boot_5.1-pro-dvb-4.4.zip?dl=0

Shield(2017) : https://www.dropbox.com/s/0qcsr57ixcj11am/boot_5.1-2017-16gb-dvb-4.4.zip?dl=0

I have only tested the build for Shield[2015] 16G.
[Shield Android TV General] Evostance:
Hi Lexyan,

A couple of questions

1) Does the boot.img also enable the USB Tuner support as this boot.img does:

https://forums.geforce.com/default/...cial-usb-tv-tuner-support-to-live-channels/1/

https://github.com/Jetson-TX1-AndroidTV/android_kernel_shield_tv_video4linux

2) Do your boot images still include support for the Hauppauge DVB-T2 292e Tuner?
[Shield Android TV General] lexyan77:
For those who whant support for dvb tuner in Live channels, I have decompiled the apk and there is only 3 devices supported (hard coded) :

Hauppauge WinTV-HVR-955Q

Hauppauge WinTV-dualHD Model 01595 (USB device ID 2040:026d)

AverMedia device 07D3 (unknown model)

If you have one of these I advise you to use Linux4All build.

I'm working on a patch to support other devices.

[MENTION=1377062]Evostance[/MENTION] : my build support Hauppauge 292e
[Shield Android TV General] Evostance:
I assume this support does not include Live Channel DVB Tuner support?
[Shield Android TV General] dopefish1337:
Hi Lexyan,

first of all thank you for all your hard work. I did not follow this thread for a long time and i had a lot of trouble getting my DVBSky T330 to work. Now i am wondering if there is a compatible driver in your boot image and if there is any TVHeadend available (using oscam/cccam). Unfortunately the T330 is not available anymore in germany (it has been for 25€ - you can still get it from aliexpress/china).

What device do you recommend right now for the shield tv?

BR
[Shield Android TV General] dude-nl:
Please guys,

Who can help me out with a step by step with the needed files?

I use a 2015 16GB shield.

Not sure wich downloads to use and in wich order...
[Shield Android TV General] dude-nl:
Again read the whole topic but I'm realy lost in all the info and different downloads.

Please can someone explain simple:

Nvidia Shield 16gb 2015

Mygica t230 usb receiver

Wich steps to take and wich downloads?
[Shield Android TV General] nikolaus2007:
Hi lexyan,

I tried your build for 2017 (16G) shield. Unfortunately I ended after the unlocked bootloader screen.

Maybe you can help me find the cause. I would love to use my USB tuner as well with my shield.

Thank you

EDIT: After flashing the boot.img from the 5.1.0 recovery image, I can boot to ATV again.

How can I debug, why the boot.img is not working?
[Shield Android TV General] jerrek71:
Dumb question time!

Hi, I've read the whole thread here but can't see the answer to my, probably very silly, question... So I'm posting :)

Do all the other functions of the Shield still work if I do this? In particular, I like the idea of Chromecast being built in to my Android TV (I currently have a KII Pro with Tuner built in - but that's just Android, not Android TV) and I'd like to be able to play some games on it too and other stuff from the Google store...

So if I flash this ROM, can I do that AND watch live TV using TVH/Kodi?

(I don't have a Shield yet, I'm looking to buy one and being able to plug in a PlayTV and have Live TV on it too would seal the deal)

Many thanks for your time everyone!

Sorry for the probably quite n00b question,

Steve
[Shield Android TV General] schranzistor:
Some Questions

Hello [MENTION=535343]all[/MENTION],

great idea to bring live TV to shield...

Got some questions before dive-in deeper.

1. Is there a USB tuner which supports

4k

Dual Sat Tuner

Unicable

HD+

2. Is it possible to use the standard Google Android App to watch / record etc... Live TV?

3. What about HbbTV?

4. What about updates for Shield ? Can they be applied without loosing live tv capabilities ?

5. All other apps / games are functional as before ?
[Shield Android TV General] jerrek71:
I know it's dumb to answer your own questions but since no-one else did - and others might have the same question - I'll do it anyway...

The short answer is yes, you can do everything you could previously.

The long answer is, you're only modifying the kernel not the whole ROM, so none of the apps work any differently :)
[Shield Android TV General] NaNo79:
i have TBS 5520 SE its multi-standard external TV tuner

is it support by the kernel?
[Shield Android TV General] slamride:
Anyone have the stripped 5.2 repo
[Shield Android TV General] Ichijoe:
If you have to ask... Then the answer is 99.9999e.... NO!
[Shield Android TV General] umoraes2009:
Hi lexyan77 !

Do you have an updated kernel based on 5.2 shield tv update ? (including the DVBAPI and drivers). thanks !!!
[Shield Android TV General] ramtech1:
Is this still going

Looking for help with xbox tuner

Does not even seem to power up

Lights up then goes off

Any help would be great.
[Shield Android TV General] Serdar1985:
Hey guys, no more updates?

Got my shield finally too. Only cuz tvhaedend with tuner support. But have Nougat on my shield and dont know if it works with nopnop9090´s or lexyan77´s builds.
[Shield Android TV General] bradleyw801:
Not dumb at all. It's a huge pet peeve of mine. People come here looking for a solution, then when they find one, they never come back and share. Your first question could be the keywords that pop up when someone has a similar issue. Posting the answer allows them get an answer.
[Shield Android TV General] umoraes2009:
Hi guys... can someone update the kernel to 6.2 ? It seems the actual kernel faces a lot of freezes on 6.2 ? BTW - I will try to downgrade to 6.1 to continue watching TV. thanks!
[Shield Android TV General] slyver2008:
Up!!!

thanks
[Shield Android TV General] toker_X1:
Where? 6.2? for 2015? for 2017? for Pro?
[Shield Android TV General] raeinu:
q

So i am complete noob non-us user. Bought latest shield week ago and want to buy dvb-2 tuner and watch live tv. Which files excatly to download and which tuner to buy?
[Shield Android TV General] slyver2008:
nopnop9090 please update with latest kernel for 6.3 experience on your site

the last update was back in 2016

please

thanks
[Shield Android TV General] xd4d3v:
guys. this work has clearly been abandoned by both [MENTION=7242851]nopnop9090[/MENTION] and [MENTION=2310389]lexyan77[/MENTION]

unless they decide to come back, or other developer jumps in, it's finished.
[Shield Android TV General] lexyan77:
Hi all,

Project not dead, currently downloading Shield Experience 7.0.1 source from Nvidia repo.
[Shield Android TV General] xd4d3v:
merci mate... merci...
[Shield Android TV General] xd4d3v:
Lexyan. i went ahead on tried twrp, and i get errors when scripts try to mount /vendor.

you might want to add to your kernel whatever changes zulu99 made that allows the use of twrp

from here

http://www.videomap.it/forum/viewtopic.php?f=25&t=1646&start=1770#p7472

otherwise it'd be either root, or tv tuner..

not sure whether zulu99 uses github or similar.
[Shield Android TV General] lexyan77:
Shield Experience 7.0.1 - Kernel 3.10 dvb

Hi,

New kernel for Shield Experience 7.0.1, only devices supported by kernel 3.10

All modules built in the kernel, only need firmware files in "/data/firmware" or in system partition if needed.

If you put firmwares files in /data/firmware you must issue "restorecon /data/firmware" and "restorecon /data/firmware/*" with adb to correct files permission.

Built only for Shield (2015) 16G :

With Magisk preinstalled : https://www.dropbox.com/s/f7t63hpye5pkezo/shield-atv-7.0.1-dvb-magisk2.img?dl=0

Without Magisk : https://www.dropbox.com/s/lvkim914fqfgvsl/shield-atv-7.0.1-dvb2.img?dl=0

I have only tested the build R820T/R820T2 dongle and Dibcom 7000 (Gigabyte U8000).

I can include firmware files in kernel as needed, send me the name of the firmware file by Private Message, I can recompile the kernel with all files included this sunday.
[Shield Android TV General] Jackie393:
i will try :)
[Shield Android TV General] umoraes2009:
Hi lexyan77 … thanks for the update... just tried but it doesn't work with my Mygica T230... can you please include the driver for the T230 ?

thanks a lot and congralutations for the France worldcup winning ! :)
[Shield Android TV General] umoraes2009:
Hi... anyone could help me to integrate Mygica T230 driver/firmware on this kernel version ? thanks!!!
[Shield Android TV General] robtheone:
Available for Shield 2017?

Will this be available for Shield 2017 16GB?
[Shield Android TV General] lexyan77:
Hi,

I have compiled it for the shield 2017, If you want to try it you can download the kernel on my dropbox here

I have not tested it so it's at your own responsibility

---------- Post added at 19:56 ---------- Previous post was at 19:48 ----------

[/COLOR]

Hi,

Kernel with T230 (not T230C version) support available for testing on my dropbox here (for Shield 2015)

you probably need 2 firmware files "dvb-demod-si2148-b40-01.fw" and "dvb-tuner-si2158-a20-01.fw" to be placed in "/data/firmware" with correct permissions (see my other posts)

I have not tested it with MyGica t230 tuner so it's at your own responsibility
[Shield Android TV General] umoraes2009:
thanks Lexyan... Is there anyway to include this on my shield without rooting the device ? I think access to /data/firmware will need root...
[Shield Android TV General] lexyan77:
The folder /data/firmware is automatically created by my kernel and is normaly writable by all users, try it and tell me if it work.
[Shield Android TV General] umoraes2009:
ok. I will apply the new kernel today at night and leave you a msg here... thanks a lot !

Ulysses
[Shield Android TV General] umoraes2009:
Hi Lexyan77 - I can confirm that It needs root to include the files on /data/firmware....

Can you please include both files on the T230 kernel update you made available ? I uploaded both to my google drive

https://drive.google.com/drive/folders/1-zB70d22Eui-12UMYk9I9yY1OvP9tmDA?usp=sharing

thanks a lot !!!
[Shield Android TV General] pnkiller78:
@Lexyan77

Hi, is there any possibility to compile this kernel for the Shield TV Pro on Shield Experience 7.0.2?

Thanks.
[Shield Android TV General] lexyan77:
Hello Ulysses,

you can have root access through adb with command 'adb root' before connecting to the shield with 'adb shell'

The file 'dvb-demod-si2168-b40-01.fw' is already included by Nvidia in the system partition.

If you try my kernel and you plug your tuner can you send me the result of 'dmesg' command when you are in 'adb root & adb shell'

Thanks
[Shield Android TV General] lexyan77:
Finally my modification are complete for working DVB with firmware support without system partition modification

Only included drivers are the one officialy supported by kernel 3.10 plus MyGyca T230/Geniatech T230 first version (see linuxtv.org)

Only tested on Shield 2015 16G by me, I have not tested other variant so it's at your own responsibility

Shield 2015 16G with MyGica T230 support

Shield 2015 PRO 500G with MyGica T230 support

Shield 2017 with MyGica T230 support

My modification on Nvidia source

If your device require firmware file you can put them in folder "/data/firmware" or "/data/dvb/firmware" thru adb

example for dibcom 7000 tuner:

Put file "dvb-usb-dib0700-1.20.fw" in internal memory

access adb shell

in adb shell enter command "cp /mnt/sdcard/dvb-usb-dib0700-1.20.fw /data/firmware/."

in adb shell enter command "exit"

reboot Shield to apply permissions on files
[Shield Android TV General] Surgent:
Hi lexyan77, i really appreciate the work you've put into this project. So i have found the profile page of my tuner which indicates that it isnt offically supported until kernal 4.17. Could you kindly point me to your instructions on how to manually add this device? Thanks.
[Shield Android TV General] gengt:
Hello,

A newbie question to compile the kernel myself. I have and 2017 16GB model (nvidia experience 7.02), the only thing i have to change is this(in bold)?:

So changing foster_e-userdebug to darcy-userdebug is enough?

Thanks
[Shield Android TV General] stage121:
I wonder if this would be of any interest to anyone.

A developer has made an Android driver framework for USB TV tuners (DVT and DVB-T2). They have also made an app to go along with it on the Play Store called Aerial TV which I've tried on my Shield TV. It works flawlessly. The only problem is, it isn't optimised for Android TV.

Would it be possible from someone out their to use the dev's Android DVB Driver to make an app that's optimised for Android TV or somehow use it in conjunction with Live Channels?

I am not a developer but this seems very interesting. The app mentioned previously does not require root.
[Shield Android TV General] lexyan77:
Shield Strip down repo

Hi all,

Currently working on backporting dvb devices driver from kernel 3.19.8 into the shield kernel tree,

For those who want to compile their own kernel, i have a stripped down manifest in my github, go to https://github.com/lexyan/nvidia-shield-atv-manifest and follow instructions, the source are compatible with all versions of the shield

Additionaly, I have an Xposed module that enable supported dvb devices to be recognized as Built-in devices in LiveChannel app https://www.dropbox.com/s/te7lu91b9meeaks/LiveChannelDvbUsb-release.apk?dl=0, you need to install Magisk and Xposed and then enable my module, reboot the shield, Live Channel must allow you to configure Built In tuner and search for Programs
[Shield Android TV General] lexyan77:
Hi all,

My repos are up to date with full kernel 3.19.8 supported dvb devices.

Waiting for nvidia to release Experience 7.1 source to update and probably porting kernel 4 new devices.
[Shield Android TV General] slyver2008:
It's possible to insert tbs drivers?

Any advice to buy a dvb s2 USB tuner?

I have a tevvi s660 but has problems on diseq
[Shield Android TV General] locki:
i must read it all ... it looks more complicated then i expected .... i must foollow this if i remember it correctly: https://xdaforums.com/showpost.php?p=68023267&postcount=193 and best way is root device? need that for dmesg outputs probably ...

i needput firmware to /system/etc/firmware but it is read only system :( root help with this?

i did this:

unlocked bootloader

copyed file with firmware:

foster:/ $ cd /data/firmware/.

foster:/data/firmware $ ls

dvb-demod-si2168-02.fw

foster:/data/firmware $

and used custom kernel from lexyan77

foster:/data $ cat /proc/version

Linux version 3.10.96-tegra (syno@syno64) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #1 SMP PREEMPT Wed Aug 15 16:49:23 UTC 2018

foster:/data $

so it isnt enought :) exist some totaly complex how to for dummies like me? for MyGica T230?
[Shield Android TV General] lexyan77:
Full 3.19.8 DVB Stack

Hi,

For those who want to test my modifications, I have precompiled the kernel with all usb DVB devices supported by kernel 3.19.8.

Shield 2015 16G

Shield 2015 Pro 500G

Shield 2017

If your device need firmware file (refer to linuxtv.org) just follow instruction in my previous post.

Root is not needed to copy files in /data/firmware => no modification in /system

But root is available throught ADB if you need to debug (dmesg, ...)

If your devices is supported the folder "/dev/dvb" must exist (listing is possible without root)
[Shield Android TV General] slyver2008:
hi [MENTION=2310389]lexyan77[/MENTION]

when i flash/boot your kernel for 2017 version on 7.0.2(downgraded from 7.1.0)on reboot i get only a black screen nothing else

any clue
[Shield Android TV General] locki:
any idea?
[Shield Android TV General] lexyan77:
Hi Locki,

My Shield 2015 16G is currently on Shield Experience 7.1.1 with my kernel and a PCTv 292e wich is supported till kernel 3.16

The T230 version has no root at all, it is compiled like the official kernel.

The boot_script is not needed anymore (and may mess with dvb files) , all the required step to create devices in the right place for TvHeadend are done by the Kernel, all you need is start Tvheadend.

With the usb tuner plugged, can you boot from my kernel "shield-atv-2015-7.0.2-kernel-3.19.8.img",

when the shield is up, restart adb with root "adb root"

launch the shell "adb shell" and send me the result of these commands :

"dmesg|grep dvb"

"dmesg|grep DVB"

"dmesg|grep firmware"

"ls -laZ /data/firmware"

"ls -laZ /data/dvb/firmware"

Source for Shield 7.1 are available.
[Shield Android TV General] slyver2008:
Ok sow nothing new? . I just buy another Nvidia shield 2017 after the first one got in apx mode trying to make it work with a dvb s2 tevii s660.
[Shield Android TV General] locki:
for me that kernel not working, not know why, it should work but it didnt recognize two dvb-t tuners which i tryed :(
[Shield Android TV General] slyver2008:
[MENTION=2310389]lexyan77[/MENTION] any news ? Please compile the latest kernel for 2017 version .
[Shield Android TV General] waldschwein:
[MENTION=2310389]lexyan77[/MENTION] would it work with this Tevi S650 device?
[Shield Android TV General] chapas:
[MENTION=2310389]lexyan77[/MENTION], i have my Shield rooted, is there a guide i can follow to compile a kernel boot .img for my Shield 2017 16GB model on version 7.1.0? I can only see images for 7.02, must i downgrade?
[Shield Android TV General] chapas:
Please.
[Shield Android TV General] locki:
i did downgrade and tested it ... it is visible page back ... and it didn't worked for me, but i must try to flash that kernel, maybe it behave different when it just boot another kernel, downgrade isn't complicated :)
[Shield Android TV General] BennyLM:
Why is patching the kernel necessary

Hi

I am not an android developer so sorry if this question seems stupid for a lot of you.

I am just wondering why the flashing of the kernel is

necessary i we just want an ekstra DVB-device supported. Why is just putting the firmware in the firmware folder not enough to get support.

Followup question is then if the new kernel build puts in some driver information it is only the firmware written into the kernel that will be supported?

When we reflash the kernel do we not loose the security updates that comes OTA and do we lock down the system from getting any othe OTA updates?

Yours sincerly

Benny

QUOTE=lexyan77;77346442]Finally my modification are complete for working DVB with firmware support without system partition modification

Only included drivers are the one officialy supported by kernel 3.10 plus MyGyca T230/Geniatech T230 first version (see

Only tested on Shield 2015 16G by me, I have not tested other variant so it's at your own responsibility

Shield 2015 PRO 500G with MyGica T230 support

Shield 2017 with MyGica T230 support

My modification on Nvidia source

If your device require firmware file you can put them in folder "/data/firmware" or "/data/dvb/firmware" thru adb

example for dibcom 7000 tuner:

Put file "dvb-usb-dib0700-1.20.fw" in internal memory

access adb shell

in adb shell enter command "cp /mnt/sdcard/dvb-usb-dib0700-1.20.fw /data/firmware/."

in adb shell enter command "exit"

reboot Shield to apply permissions on files

[/QUOTE]
[Shield Android TV General] ikarus.nc:
There are no news yet? I was hoping to finally use my XBOX One tuner ?. Thank you so much for the hard work!
[Shield Android TV General] locki:
xbox tuner is now not possible because it needs at least kernel 4.16rc1

https://www.linuxtv.org/wiki/index.php/Xbox_One_Digital_TV_Tuner

last versions 7.2.2 and 7.2.3 have kernel 4.9 but they still didnt released source codes as opensource there: https://developer.nvidia.com/shield-open-source but there is only old 7.1.0 verstion with old kernel :(

another solution is use some box with tuner from china S905 with dvb-s and t2 tuner or Rapsberry PI with this xbox tuner and run there backend and on shiled or in kodi run frontend .... and you have also working solution ... then you can watch tv on pc or on any device at home ...
[Shield Android TV General] lexyan77:
Hi All,

Sorry for no updates, I do not use this solution anymore as I have now an HdHomerun with 4 tuner that is natively supported by AnfroidTv,

[MENTION=9618701]BennyLM[/MENTION] : Tuners are supported by the Kernel but Nvidia choose to not activate them when they compile the kernel for Shield

[MENTION=815012]locki[/MENTION] : Nvidia has not modified the listing page but their repo is up with version 7.2.3, currently testing, when I compile the kernel without modification I don't get the same build than official kernel so it need more testing to see if all is working properly.

If you want to test by yourself the compilation you can follow Nvidia instruction but choosing branch "rel-30-r3-partner" instead "rel-29-partner" when you "repo init"

(sources take 75G + 30G for compilation)

If everything goes as expected, I probably provide compiled kernel in 2 weeks with minimal supported tuners (mygica T230 and xbox tuner) and only for Shield 2015 16G, I can't test my build with other version so I don't provide them.

If someone want other kernel please reply to this thread, don't send MP.

Thanks