yashsingh1/xdaforums huggingface dataset:
[Nexus 7 General] martintzvetomirov:
First get the cross compiler by doing

git clone https://android.googlesource.com/platform/prebuilt

This is a really useful wiki entry. Follow the steps they recommend for compiling the kernel.

http://code.google.com/p/smartphonebrainscanner2/wiki/Nexus7#Compiling_Kernel

I think on step "Configure kernel. Two things you will want to change are: " you would like to select the DVB drivers to be configured as modules.

Afterwords rather than compiling the whole kernel you would do

make ARCH=arm SUBARCH=arm CROSS_COMPILE=[B]PUT_YOUR_CROSS_COMPILER_HERE[/B] modules

Where PUT_YOUR_CROSS_COMPILER_HERE is (for me for example it's crosscompiler/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-)

In theory this should work. And it should be easy enough. Please share if you had any success.

Otherwise here's what I actually did.

I did it a bit differently. My "kernel configuration" step was modifying the drivers/media/dvb/dvb-usb/Makefile, by changing all obj-SOMETHING to obj-m i.e. forcing components to be built as modules. And modifying the /arch/arm/configs/tegra3_android_defconfig b/arch/arm/configs/tegra3_android_defconfig to include

CONFIG_DVB_CORE=m
+CONFIG_USB=m
+CONFIG_I2C=m
CONFIG_DVB_USB=m
+CONFIG_RC_CORE=m

Then doing

make ARCH=arm SUBARCH=arm CROSS_COMPILE=[B]PUT_YOUR_CROSS_COMPILER_HERE[/B] tegra3_android_defconfig

Before compiling modules. I also needed to update the main Makefile to always output the version of the Android kernel I had for my nexus by doing

kernelversion:
@echo $(KERNELVERSION)

(around line 1468 in the main Makefile). And adding this to top of the Makefile

VERSION = 3
PATCHLEVEL = 1
SUBLEVEL = 10
EXTRAVERSION = -g52027f9

. I hope I'm not missing something...

P.S. At some point during the next month I will sit and write a comprehensive guide on how to build the modules, since to be honest I did a lot of "hacking around" to make it work, there's definitely a simple way. (even possibly make a script that does the compilation for you)
[Nexus 7 General] martintzvetomirov:
You would need to insmod af9013.ko before insmod-ding dvb-usb-af9015.ko
[Nexus 7 General] joerlo:
Also interested in this. Keep us posted.
[Nexus 7 General] micks_address:
keeping an eye on this thread as im currently withouth my nexus 7 but should have it back over the weekend.. if anyone gets working with a ps3 play tv tuner let us know.. cheers mick
[Nexus 7 General] impoze:
i've got up to droidtv scanning, lists a lot of numbers e.g. 592599: (time:04:24)

and then doesnt do anything

is my reception too weak?

thanks :)

can't wait to see your alternative to droidtv, keeps crashing

----------------------------

OK, plugged into wall aerial and could scan for channels but now when I open a channel it just stays black

am I missing something?

thanks :)
[Nexus 7 General] Kas206:
I cant get it to work. I got all the modules files in the right place. but i keep getting the error below

This is what i get when I dmesg. So i know my dongle is recognised

This what happenes when i start Droid TV
[Nexus 7 General] martintzvetomirov:
This is not an error. This is a success :) It means that the modules are already loaded. Now you have everything set up! You need to go to /dev/dvb with your favorite file explorer (like ES) and change the permissions to this dir and all subdirs and files to writable and voilà! It should be working:)

Where you from? There is a chance that DVB-T in your country could be MPEG-4 and that DroidTV might only support MPEG-2. Those are just speculations though. Is your dongle working fine with the same antenna via your PC?
[Nexus 7 General] Kas206:
I found another way to stream from the PC to Nexus 7

Connect the adapter to your pc

Download Nero Media Home from the link below. Run the setup and scan for TV channels.

http://www.softpedia.com/get/Internet/File-Sharing/Nero-MediaHome.shtml

Install DK UPNP/DLNA Player from the Play store (Only one that works for me)

https://play.google.com/store/apps/details?id=com.upnp.upnpctrl&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS51cG5wLnVwbnBjdHJsIl0.

open the app and click on nero media home and all channels should be listed there.

Use Mx player to play them
[Nexus 7 General] impoze:
Thanks for the reply,

I have checked and we use mpeg-2 in australia,

I think it might be low reception?

how can I check the reception strength?

thanks
[Nexus 7 General] martintzvetomirov:
Look at the title bar when you try to view a broadcast. It should contain two numbers - the signal quality in % and the bit error rate. I don't think that DroidTv could show signals strength.
[Nexus 7 General] impoze:
thanks for the reply,

I don't get any numbers, just the channel name.
[Nexus 7 General] micks_address:
anyone have any luck getting the sony ps3 tuner to work? i have my nexus back so will try again.. in ireland though we are using mpeg4 for digital.. is that a problem?
[Nexus 7 General] SFVDan:
Seems as though the xc5000.ko module is not correct in some way. The insmod command indicates that the module is not in the correct exec format. I poked around on Goggle and found some reference to that module being somehow faulty, but found no solution.

Has anyone tried to use this module with success? Is this a known issue?

Thanks in advance...
[Nexus 7 General] martintzvetomirov:
What's your Kernel version? If it's different from the one stated in the first post of the thread, you would need to recompile it yourself.
[Nexus 7 General] SFVDan:
It is not. I have the specified kernel and meet all the other prerequisites.
[Nexus 7 General] SFVDan:
I do not have the compiler skills to compile the xc5000.ko kernel module. Is there anyone out there who would be willing to compile it and send it to me? I know it's a quick job for someone with the right skill set. For me, it would be weeks!

Thanks again!
[Nexus 7 General] mchinand:
I'm getting the same error after building the module myself (other modules from the same build load fine). Not sure what the problem is yet. I think this also requires a firmware file, but don't think that will be a problem until the device (Hauppauge WinTV-HVR-950Q, in my case) is plugged in and the firmware file is tried to be accessed.
[Nexus 7 General] SFVDan:
I have precisely the same dongle. I'll keep tinkering with it and see if there's something I'm missing. I'm usually pretty good at making stuff like this work, but this has me stumped.

Thanks much for the reply! Nice to know I'm not crazy. lol...
[Nexus 7 General] SFVDan:
I found the firmware here: http://www.linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-950Q

... but I can't seem to figure out where Android will be looking for it. There's no /lib/firmware/ folder, as all the instructions say. Next step is to make the directory and push it out to the directory and see if anything changes.
[Nexus 7 General] lionsh:
Hi guys,

I bought the same dongle as martin's (RTL2832u with E4000 tuner).

I ran the script, made sure all the files are there in the dvb folder.

All permissions are ok.

I even get the warmed state in dmesg.

But still, in droidtv i always get w_scan failed.

Can someone direct me to a possible solution?
[Nexus 7 General] saeedmobile:
Hi, Do you use this method on Xperia Arc?

Or is there another way?
[Nexus 7 General] moryoav:
I have the same problem as lionsh. At least I think I do.

I bought the same dongle as OP (RTL2832U), from the same ebay link he posted.

Script runs fine with no errors, files in dvb folder get 777 permissions, everything seems fine.

dmesg shows warmed state, but I get the same error as lionsh posted in his dmesg about "no frontend was attached by RTL2832U". I'm not sure if that's a problem or not.

Also, another interesting problem that I'm not sure if it's related or not, if I check the DVB folder in ES File Explorer I see 3 files instead of 4. The forth file is supposed to be frontend and it's only visible when I view the folder using "Root Explorer" app. If I use the "ls" command in the shell I do see all 4 files, this seems to be some weird problem with ES File Explorer perhaps?

DroidTV shows the usual error about not being able to load. What can I do? ideas?

Thanks...
[Nexus 7 General] gizmomelb:
wow, this is awesome! I'm also interested in SDR so was planning on buying one of these tuners anyways (was going to use it on my Raspberry Pi, but hey using it on the Nexus is even better :) )
[Nexus 7 General] martintzvetomirov:
What do you mean w_scan failed? Can you reach the "scan channels" activity and press "scan"? What output do you get? Can you change the country to something else and try again (from the DroidTV's scan channel activity)?

P.S. Make sure that the folder dvb has also the right permissions itself. Actually if it is a permission problem, DroidTV wouldn't even start. It will just say that the tuner is not found as far as I can remember.

P.S.S. Sadly I have paused my work on the app I was developing for this because of University... sheesh. Anyways, I will try to work on it whenever I can (I guess mostly around Christmas)
[Nexus 7 General] couguar44:
I followed this steps for installation, but i cant enable DVBt.

Im working on Ampe A10 with CM9, it have integrated kernel modules for my firmware and stick i have (RTL2832U)

Also i try manualy install like this topic say, but with no luck.

When i try to open DroidTV it say: Sorry, no device found. This application needs a working DVB device, plugged into your android device and set up with drivers, firmware and correct permissions.

is there any other way or im doing something wrong?
[Nexus 7 General] :
The holy grail. Live TV on a Nexus.
[Nexus 7 General] dgattenb:
"TV catch up" from the play store !.. live TV on your N7 !!
[Nexus 7 General] lionsh:
When I run the startdvb script it doesn't create the frontend0 file.

And DroidTV says no device connected.

When I create the file by myself, give the right permissions to it and run the script again - I can access droidtv.

But, as soon as i choose DVB-T, some country (is used several) and hit scan i get :

wscan failed(1) and in the background i see ERROR unable to determine frontend type.

main:3094 FATAL --- NO USEABLE DVB CARD FOUND

But I do see the light on the DVB stick on - indicating it is getting power and when i write dmesg i can see that it is recognized.

Although I also see a message about no frontend was attached.
[Nexus 7 General] :
Hmmmm.
[Nexus 7 General] CekMTL:
Can't seem to find it in my playstore...?

Enviado desde mi Nexus 7 usando Tapatalk 2
[Nexus 7 General] aisvidrigailov:
I've modified the startdvb script like this (I've got a Pinnacle Nano Stick):

echo "Starting DVB support"
insmod dvb-core.ko
insmod dvb-pll.ko
insmod rc-core.ko
insmod dvb-usb.ko
insmod dvb-usb-dib0700.ko
echo "Waiting for device"
sleep 5
cd /
mkdir /dev/dvb
mkdir /dev/dvb/adapter0
cd /dev/dvb/adapter0
ln -s /dev/dvb0.frontend0 frontend0
ln -s /dev/dvb0.demux0 demux0
ln -s /dev/dvb0.dvr0 dvr0
ln -s /dev/dvb0.dvr0 dvr0.ts
chmod 777 /dev/dvb*
echo "DONE!"

I've included dvb-usd-dib0700.ko in the NexusDvb folder. When I run startdvb (#sh startdvb) this is what I get:

insmod: init_module 'dvb-core.ko" failed (File exists)
insmod: init_module 'dvb-pll.ko" failed (File exists)
insmod: init_module 'rc-core.ko" failed (File exists)
insmod: init_module 'dvb-usb.ko" failed (File exists)
insmod: init_module 'dvb-usb-dib0700.ko" failed (No such file or directory)

The message is longer, but I think that after those initial errors it doesn't matter what comes next. I understant that the problem is in the "No such file or directory" line. But, as I said, the dvb-usb-dib0700.ko module is in the same directory... What can I be doing wrong? Thanks!
[Nexus 7 General] lieckedeeler:
Hello there...!

i think i'm a little bit of topic here, cause i made a custom kernel for the acer iconia a210 with dvb-t support... But i was wondering, if somebody cold help me out with my problem...

I can scan channels with droidtv... but i cant tune them... dont get screen...

Made a screenshot of dmesg... As far as i'm conserned.. the configuration of kernel should be correct... these are the same messages i get when i set up a vdr with debian... there i get a screen...

Maybe someone can help me out, and tell me where i can find the log's... in debian i would consider the syslog for errors... but android.... i dont know...

Thx in advance...

Edit... I think i got some log's of the device while tuning a channel, but i can't see what's wrong there

Anyone who can help me out? Thx in advance...
[Nexus 7 General] deluxesoldiermurat:
I have the same problem here. Furthermore i updated to 4.1.2 and now i need the latest modules. Will they be compiled??

Greetz

DSM
[Nexus 7 General] tidh:
+1 same problem

Enviado desde mi Galaxy Nexus usando Tapatalk 2
[Nexus 7 General] rodas007:
Hello, the DVB-T based RTL2832U dongle no longer works with the new update 4.1.2 not jb? Anyone know if this module already compiled or ai to wait.
[Nexus 7 General] mchinand:
What's the kernel version in the new update (i.e., the previous was 3.1.10-g52027f9)? I can pull that version and compile the modules if the OP hasn't done it yet.
[Nexus 7 General] mayjune:
kernel

Hi,

The last kernel is : 3.1.10-g009b6d1

Android 4.1.2
[Nexus 7 General] mchinand:
OK, I compiled the modules for kernel version 3.1.10-g009b6d1 which I believe is the correct one for the Nexus7 update. I don't have a USB DVB dongle that works with these (see my earlier posts in this thread) but I believe they should work. Please let me know if they work for you, especially if you have the previous modules working on your Nexus7. The same script should work and these new modules probably won't work for you if the old modules weren't working with the older kernel. Oops, sorry don't have enough posts to include links (and too large to attach), but I uploaded to the Box hosting service. Add the following after the usual tld for box, /s / ckaxysjdpul7vj3vwh9s
[Nexus 7 General] tidh:
Please, compile drivers for RTL2832 dongle and new kernel, file are called dvd-usb-rtl2832u.ko

Thanks!

Enviado desde mi Galaxy Nexus usando Tapatalk 2
[Nexus 7 General] mayjune:
kernel

Hi, is it possible to compile this file with the last kernel this is the fw

box/s/2qmmvofvt306k0j3ig13

All is ok for your other files, great work !!! Thanks

---------- Post added at 12:53 AM ---------- Previous post was at 12:47 AM ----------

All the files are here with BOX !!!!!
[Nexus 7 General] mchinand:
I'm not sure what you want me to do, isn't the firmware loaded at the time the module in loaded (insmod ....) and not needed when the module is compiled?

---------- Post added at 07:30 PM ---------- Previous post was at 06:39 PM ----------

OK, I updated the module zip file to include dvb-usb-rtl2832u.ko, I didn't realize that was not in the kernel source tree and was an external module. Sorry about that. I only made sure the list of modules I compiled matched the list of the OP's modules in all-modules.rar.
[Nexus 7 General] mayjune:
OK i don't need the firmware if the module is compiled ?

Thanks for this info !!!!

Just a last question : i have an eyetv dtt from elgato ; can you tell me what the driver i must used ? Because the The dvb-usb-dib0700.ko ils not OK !!!!
[Nexus 7 General] mchinand:
No, you still need the firmware. You probably need to put it in /lib/firmware. Hopefully, someone with the same tuner will chime in with the specific details for it, I'm not sure.
[Nexus 7 General] mayjune:
But it's not necessary to compile the fw file with the new kernel ?
[Nexus 7 General] UnixRo:
Defy

Hi i have an Motorola Defy with ICS 4.1.1 and kernel 2.6.32.9 and i will like to know if is there a chance to make my RTL2832U to work with my Defy
[Nexus 7 General] steve_neal:
Thanks to everyone for this thread.

Working fine on my unlocked and rooted Nexus 7 running 4.1.2.

Merged the new kernel stuff with the original download, and it is working fine with my Ezcap and Teratec Noxon (marketed for DAB but also DVB-T) DVB-T dongles in the UK. Don't think the required drivers for the PCTV 290e DVB-T2 (em28xx) are present to allow me to try my PCTV 290e DVB-T2 dongle for HD stuff in the UK (In the UK DVB-T is SD MPEG2, DVB-T2 is HD H264)

The -R addition to the chmod line in the script is useful, and avoids having to manually edit permissions in /dev/dvb using ES File Explorer or similar.

Droid TV seems to crash on reception errors - but still an impressive thing to be able to do on a tablet.

I'm new to Android but the info in this thread was invaluable. So thanks again.
[Nexus 7 General] unknowman2:
Any chance to get this for Android 4.2 kernel? :crying:

Kernel version: 3.1.10-g22b4fcd

i would also need dvb-usb-af9015.ko ;) Too bad, I'm not skilled enough for compiling this stuff :)
[Nexus 7 General] mchinand:
Here you go: 3.1.10-g22b4fcd DVB Modules
[Nexus 7 General] unknowman2:
Working: TerraTec Cinergy T USB XE (rev2)

first of all thx mchinand for the modules for the android 4.2 (3.1.10-g22b4fcd) kernel!

Now i got my TerraTec Cinergy T USB XE (rev2) up and running. Had to load some modules not sure if all of them are really needed? took me some time to figure it out...

I uploaded some Screenshots of the loaded *.ko files in terminal here: imageshack . us g/ 1/ 9871555 maybe someone has the same dvb-t dongle and it helps...
[Nexus 7 General] audiophile1:
Does the Newsky TV28T V2 based R820T tuner should be better (from elonic E4000)? does the drivers will recognized him?

or do you recommend to buy the E4000 v1 version ?
[Nexus 7 General] sim_1:
Sorry a bit new to this here is what I get when I run the script

2|u0_a80@android:/storage/sdcard0/nexusdvb # sh startdvb

Starting DVB support

'nsmod: can't open 'dvb-core.ko

'nsmod: can't open 'dvb-pll.ko

'nsmod: can't open 'rc-core.ko

'nsmod: can't open 'dvb-usb.ko

'nsmod: can't open 'dvb-usb-rtl2832u.ko

Waiting for device

: No such file or directory

, File existsfor /dev/dvb

, No such file or directorydapter0

: No such file or directoryadapter0

link failed Function not implemented

link failed Function not implemented

link failed Function not implemented

link failed Function not implemented

DONE!

u0_a80@android:/storage/sdcard0/nexusdvb #

also where should I find /dev/dvb

Sim
[Nexus 7 General] unknowman2:
u have "su" permissions?
[Nexus 7 General] sim_1:
well when I typed su the prompt went fro $ to #.

Sim
[Nexus 7 General] sim_1:
OK so I decided to try a different terminal emulator but just got a different error.

Hopefully I have attached the output from dmesg.

Sim
[Nexus 7 General] sim_1:
Well so far I managed to get as far as a partial channel scan in droid tv but my battery ran out before completion and on reboot all my new folders in /dev had disappeared so I guess its a permissions problem, any chance someone can do a dummies guide to setting permissions etc. I'm using ES File explorer and have root options enabled correctly (I think).

Sim
[Nexus 7 General] unknowman2:
long press on folder/file -> properties -> Change (to at least 666)
[Nexus 7 General] sim_1:
I

yes I get that I can change permissions to rwx, rwx, rwx on /dev/dvb folders but on reboot the /dvb folder has dissappeared .

What might I be doing wrong?

Sim
[Nexus 7 General] PhilPassmore:
Similar symptoms. I go through all the steps, but the App tells me that it 'NEEDS' the hardware, firmware or drivers, then on reboot, the /dev/dvb folder has vanished. No problem with SU, and I get 'DONE!' with the startdvb command. If I repeat the command, I get the 'file already exists' error.

Must admit that stuff like compiling is beyond me, but I have always done alright running terminals or ADB from the PC on the N7 and Galaxy s & S2.

If I'm floundering around where I shouldn't be messin' feel free to say so, but even though in my 50's. I still love to tinker with my boys toys, and no 'bricks' so far.

Phil
[Nexus 7 General] unkn0wnd0e:
i need drivers for RTL2838U kernel 3.1.10

thanks
[Nexus 7 General] misko.durko:
Working: RTL2838 (Sencor 522)

Greetings,

i´ve got TV working on my nexus, android 4.2.1 :)... GREAT JOB! :)

But not all channels are working, so far droidtv drops all radio and HD channels, but i can live with that :laugh:

The only thing is, i have got the same problem as PhilPassmore after reboot the folder dev/dvb/ disappeares, i have to re-run the startdvb command. Permissions are 777, i have no idea how to make the dvb folder stay. But i can live with that either.

Thanks again :)
[Nexus 7 General] creepy33:
Hi,

I have a PCTV Usb Stick which needs em28xx kernel module to work could you help me to find it for android kernel please ? (I found different compiled linux kernel module but not for 3.1.10 and it doesn't work).

Thank you guys

Edit :

I don't know if it can help i found that :

http://tomoyo.sourceforge.jp/cgi-bin/lxr/source/drivers/media/video/em28xx/?v=linux-3.1.10-ccs-1.8.3
[Nexus 7 General] semprulia:
Hi, I managed to setup my Cynergy T USB XE on my Nexus 7 Android 4.2.1

This is my startdvb script:

echo "Starting DVB support"
insmod dvb-core.ko
insmod dvb-pll.ko
insmod rc-core.ko
insmod dvb-usb.ko
insmod af9013.ko
insmod mxl5007t.ko
insmod mt2060.ko
insmod tda18218.ko
insmod mxl5005s.ko
insmod qt1010.ko
insmod dvb-usb-af9015.ko
echo "Waiting for device"
sleep 5
cd /
mkdir /dev/dvb
mkdir /dev/dvb/adapter0
cd /dev/dvb/adapter0
ln -s /dev/dvb0.frontend0 frontend0
ln -s /dev/dvb0.demux0 demux0
ln -s /dev/dvb0.dvr0 dvr0
ln -s /dev/dvb0.dvr0 dvr0.ts
chmod -R 777 /dev/dvb*
echo "DONE!"

I just simply check the dmesg report and get every attach request in the list.

I also did the firmware installation - whether or not it was necessary, but I just did.

An also the file permissions changing...(added -R there).

Here I just want to put my greatest gratitute to Martin for his great job in this.
[Nexus 7 General] smiffie:
Posted in error
[Nexus 7 General] Qarl:
Hello! :cowboy:

Has anyone tried this on another tablet? I have a Galaxy Tab 2 7" and I want buy this dongle if It is possible that works fine.

The best regards! :good:
[Nexus 7 General] smilgy:
Hi, could someone enlighten me on where to get the module for my device ? I have an IT9135 device which is supported in linux according to the post in page 1. I've downloaded the zip with all the modules but my one doesnt seem to be there.. I'm on 3.1.10-g22b4fcd btw