yashsingh1/xdaforums huggingface dataset:
[Nexus 7 General] bahathir:
I made a small video clip demonstrating the DVB-T reception capabilty using Nexus 7 and PCTV NanoStick (290e) dongle.

[youtube]0qqXURtrkKg[/youtube]
[Nexus 7 General] Toxicone11:
Still no update on r820t tuners? :(
[Nexus 7 General] motylu:
Hello,

I have AVerMedia AVerTV Hybrid Volar HX (A827) stick. This AVerMedia tuner is very good even in locations with low signal strength but it has proprietary drivers...

So I decided to buy another stick, probably from ebay. Has anyone experiences with Terratec TStick+ (RTL2832U + Elonics E4000)? Will this tuner work with DroidTV on Nexus 7?
[Nexus 7 General] motylu:
Nobody can help me or recommend me a working tuner, which I can buy on ebay?
[Nexus 7 General] Keion:
Yo gurl, lemme fork your repo with my massive dongle aww yeah
[Nexus 7 General] bahathir:
To be safe , just get the models which succesfullyvworking in this thread.
[Nexus 7 General] motylu:
Thanks,

but "working tuner" is a little vague notion in this thread. OP´s tuner is working for him, but the same tuner from the same ebay link not working for other users... One Freecom tuner is working (but user don´t specify which type), PCTV nanoStick T2 290e is working (but it is expensive, because it´s DVB-T2 tuner) maybe PCTV nanoStick 73e would be good choice or kisel39 has "Terratec with a RTL2832U and E4000" which probably working so I sent him a PM.
[Nexus 7 General] martintzvetomirov:
Compiling kernel modules

Ok, guys. I've made a script that will compile the kernel modules for Nexus 7 for an arbitrary kernel version. Here's what you need to do:

Make sure you are running Linux and have make and git already installed

Download dvbn7comp and put it into a new directory. Make sure dvbn7comp is executable by running chmod +x dvbn7comp inside the folder

Invoke the script like this ./dvbn7comp <kernel_version>. For example if you want to have the modules compiled for 3.1.10-g05b777c, you would run ./dvbn7comp 3.1.10-g05b777c

Wait - it may take a while. Usually about 15 minutes depending on your network and CPU speed.

After the script finishes running, the .ko files would be put in a directory called output_3.1.10-g05b777c

That's it!

Note: The script will download the kernel source and the toolchain and it will attempt to find the commit that contains the required kernel version. Then it will configure the kernel for DVB-T support and will compile the modules and copy them to the output folder. If you run the script again and the sources are already present, it will not download them again, so any subsequent runs of the script would be faster!

Any comments, success or failure stories would be much appreciated!
[Nexus 7 General] stifu:
against lbuybr

Hi

Thanks for your Script!

I would like to use it with Timur Kernel and Rom, but there are different Sources, is it possible to use this? Wich one do i need?

http://mehrvarz.github.io/building-nexus-7-kernel/

Many thanks

Stifu
[Nexus 7 General] zgi:
blaberish, sorry
[Nexus 7 General] motylu:
Hello,

I bought Terratec TStick+ (RTL2832U + Elonics E4000) tuner from ebay, but I am not able to get working DVB-T with Droid TV. I use loading script described in the first post, everything is OK (insmod the .ko modules, make dirs and files and change permissions) but I don´t get the message about "warm state" in dmesg. I found with google, that for this tuner linux users needs to insmod rtl2830.ko, but I don´t know why "2830".

Interesting fact: radio with SDR Touch (and of course with RTL2832U driver) is perfectly working...

Can anybody help me? Thanx for your answers.
[Nexus 7 General] CyberCodeDroid:
It will also work with USB DVB-T TV receiver ASUS My Cinema-U3100MINI Plus?
[Nexus 7 General] motylu:
I am looking for this problem on Internet and I think that I can resolve this problem by adding definition about id 0x00d7 to rtl2832.h and rtl2832u.c and then recompile the driver. Can someone help me how I can do this, please?
[Nexus 7 General] bigbop:
It's good you were able to compile this module but I cannot download it from where you put it. The website just gives some kind of error.

Is it possible to put it on drop box or somewhere with 1 click download? I would really like to try this out.

Thanks

Update: I just figured it out - at the bottom centre of the webpage, you have to enter the captcha to download the file.
[Nexus 7 General] schlex2010:
Will the kernel work with android 4.3 ?

Did anyone try it out?
[Nexus 7 General] krodelabestiole:
a few questions there

my device use the firmware xc3028L-v36.fw

how do i know what kernel module (*.ko i guess) to use in the startdvb script ?

i don't use a nexus 7 but an asus tf201

i post my questions here because it's the most documented thread i found about dvb-t devices and android

my kernel version is 3.1.10-00002-g599d0cf

i can't get to compile it with dvbn7comp :

fatal: ambiguous argument '3.1.10-00002-g599d0cf': unknown revision or path not in the working tree.

neither using 3.1.10-g599d0cf

thanks for your help
[Nexus 7 General] martintzvetomirov:
This is because the script works only for Nexus 7 kernels, sorry. The reason is that it is using the source code for the Nexus 7 kernel, if you have the source code for the kernel of your Asus, you should be able to modify dvbn7comp to suit your needs. The reason for having dvbn7comp is as to server as "documentation" on how the generic idea of compiling the dvb-t kernel modules work. It downloads the Nexus 7 sources, modifies them and tries to compile the modules. You can remove the downloading part and add a one that suits for your device (again, as long as you have the sources)
[Nexus 7 General] krodelabestiole:
found the issue : i had to install ia32-libs so my linux can run 32bit apps

now i got all my *.KOs !

i found the soultion there

stackoverflow . com/questions/14362039/arm-eabi-gcc-command-not-found-when-trying-to-set-up-lime

i put them there if anyone needs :

www . mindthepressure . org/android/dvb_ko_3.1.10-00002-g599d0cf.tar.gz

edit argh

...find yourself an antispam

i would like to link the post where i found the solution but i can't

i would like to share the kos but i can't

anyway... i stand with my first issue :

this page www . linuxtv . org/wiki/index.php/DVB-T_USB_Devices (haha)

says the cynergy hybrid stick uses firmware xc3028L-v36.fw

unfortunately it seems this driver is different from others :

www . linuxtv . org/wiki/index.php/Xceive_XC3028/XC2028#How_to_Obtain_the_Firmware

so im not sure i could get any ko ...
[Nexus 7 General] krodelabestiole:
thanks for your help martin that was useful

i started a new thread concerning my issue not to polute this one :

http://xdaforums.com/showthread.php?p=44530766
[Nexus 7 General] Mugga:
Hey guys,

I'm trying to get my dvb-stick working with the latest USB-Rom from timur working. I tried to compile the file myself but I'm getting this and a empty folder:

*********************************

* dvbn7comp from Martin Marinov *

* Attempting to compile DVB-T *

* kernel modules for Nexus 7 *

kernel 3.1.10-g25ab3af

*********************************

More info: http://xdaforums.com/showthread.php?t=1841759

*** Kernel already downloaded, updating ***

*** Toolchain already downloaded, updating ***

*** Using toolchain path tchain/arm-eabi-4.4.3/bin. Now we are in /home/mugga/nexusdvb

*** Environments set for Android compiling ***

fatal: ambiguous argument '3.1.10-g25ab3af': unknown revision or path not in the working tree.

Use '--' to separate paths from revisions

*** Resetting git repo to commit ***

Not removing drivers/

HEAD is now at a89a700 empty commit

make: *** No rule to make target `mrproper'. Stop.

*** Enabling DVB-T support ***

sed: can't read arch/arm/configs/tegra3_android_defconfig: No such file or directory

./dvbn7comp: 190: ./dvbn7comp: Reset: not found

make: *** No rule to make target `tegra3_android_defconfig'. Stop.

make: *** No rule to make target `modules_prepare'. Stop.

*** Compiling drivers ***

make: *** No rule to make target `modules'. Stop.

make: *** No rule to make target `modules'. Stop.

*** Copying to output dir ***

Can someone give me a hint what I'm doing wrong?
[Nexus 7 General] martintzvetomirov:
Hi. For kernel revision you should supply just g25ab3af. Don't write 3.1.10-g25ab3af
[Nexus 7 General] Mugga:
Hmm, I tried it but I'm getting the same error. Do I have to delete everything and start new?
[Nexus 7 General] domain:
Yes Gogle changed something in source. With old versions is OK
[Nexus 7 General] straycat:
Google going forward, like with maps, he, he, he.

Enviado desde mi Nexus 7 usando Tapatalk 4
[Nexus 7 General] BarMt:
Do you know what was changed so I can make this script work on the newer sources?
[Nexus 7 General] domain:
No. Sorry.
[Nexus 7 General] _behrooz_:
Hello guys

i have a dvb-t card , it is Pinnacle PCTV Hybrid Pro Stick .

my kernel nexus 7 is 3.1.10-g4737b10 . the chipset use my dvb-t card is em28xx family . if i wrong ? please correct me ?

i use above guide for run this dvb-t on nexus 7 but when i run command sh startdvb_em28xx.sh in terminal . this output show me .

root@grouper:/data/local/tmp # sh startdvb_em28xx.sh
Loading modules...
insmod: init_module 'dvb-core.ko' failed (Function not implemented)
14.insmod: init_module 'videobuf-core.ko' failed (Function not implemented)
13.insmod: init_module 'videobuf-vmalloc.ko' failed (Function not implemented)
12.insmod: init_module 'tveeprom.ko' failed (Function not implemented)
11.insmod: init_module 'drxd.ko' failed (Function not implemented)
10.insmod: init_module 'cxd2820r.ko' failed (Function not implemented)
9.insmod: init_module 'em28xx.ko' failed (Function not implemented)
8.insmod: init_module 'em28xx-dvb.ko' failed (Function not implemented)
7.6.5.4.3.2.1.
Unable to chmod /dev/dvb/adapter0/dvr0.ts: No such file or directory
DONE!

now , what i can do for solve this problem ?

thanks

sorry for english .
[Nexus 7 General] _behrooz_:
i use this script dvbn7comp and this output show me .

n7@n7-EP41-UD3L:~/dvb for nexus 7$ ./dvbn7comp 3.1.10-g4737b10

*********************************
* dvbn7comp from Martin Marinov *
* Attempting to compile DVB-T *
* kernel modules for Nexus 7 *
kernel 3.1.10-g4737b10
*********************************

More info: http://xdaforums.com/showthread.php?t=1841759

*** Downloading kernel files ***
Cloning into 'ksrc'...
fatal: remote error: Access Denied (not available in your country)
*** Toolchain already downloaded, updating ***
*** Using toolchain path tchain/arm-eabi-4.4.3/bin. Now we are in /home/n7/dvb for nexus 7
./dvbn7comp: 76: export: 7/tchain/arm-eabi-4.4.3/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games: bad variable name
[Nexus 7 General] BarMt:
cnato

LOL where are you from?

Try using proxy or VPN...
[Nexus 7 General] _behrooz_:
hi

thanks for answer me . i'm from iran . i use securitykiss but Unfortunately it even dosen't page . git can't download .
[Nexus 7 General] BarMt:
Try using OPENVPN.
[Nexus 7 General] _behrooz_:
i try openvpn from securitykiss but it dosen't connect . i will crazy . :crying::crying::crying:
[Nexus 7 General] BarMt:
Have you tried unblockus?
[Nexus 7 General] _behrooz_:
sorry , i can't understand your means . my English is not good .
[Nexus 7 General] BarMt:
Tea,I noticed :)

I meant this site:

http://www.unblock-us.com
[Nexus 7 General] _behrooz_:
i see http://www.unblock-us.com/ . it don't useful for me because i use ubuntu Gnu/linux . if google dosen't Boycott my country i haven't any problem .
[Nexus 7 General] domain:
Does anyone compiled modules for 3.1.10-g1e8b3d8 kernel?

My log :

./dvbn7comp 3.1.10-g1e8b3d8

*********************************

* dvbn7comp from Martin Marinov *

* Attempting to compile DVB-T *

* kernel modules for Nexus 7 *

kernel 3.1.10-g1e8b3d8

*********************************

More info: http://xdaforums.com/showthread.php?t=1841759

*** Downloading kernel files ***

Cloning into 'ksrc'...

remote: Sending approximately 436.83 MiB ...

remote: Counting objects: 40436, done

remote: Finding sources: 100% (352/352)

remote: Getting sizes: 100% (156/156)

remote: Compressing objects: 100% (3447375/3447375)

remote: Total 2219871 (delta 1857744), reused 2219729 (delta 1857738)

Receiving objects: 100% (2219871/2219871), 436.90 MiB | 1.43 MiB/s, done.

Resolving deltas: 100% (1857796/1857796), done.

*** Downloading 64 bit toolchain! ***

Cloning into 'tchain'...

remote: Sending approximately 124.64 MiB ...

remote: Counting objects: 33, done

remote: Finding sources: 100% (33/33)

remote: Total 580 (delta 146), reused 580 (delta 146)

Receiving objects: 100% (580/580), 124.64 MiB | 648 KiB/s, done.

Resolving deltas: 100% (146/146), done.

*** Using toolchain path tchain/bin. Now we are in /usr/src/nexus

*** Environments set for Android compiling ***

*** Resetting git repo to commit 1e8b3d8ac4fa2c26e979bd00df3ea658ff239995 ***

Checking out files: 100% (38128/38128), done.

Note: checking out '1e8b3d8ac4fa2c26e979bd00df3ea658ff239995'.

You are in 'detached HEAD' state. You can look around, make experimental

changes and commit them, and you can discard any commits you make in this

state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may

do so (now or later) by using -b with the checkout command again. Example:

git checkout -b new_branch_name

HEAD is now at 1e8b3d8... ashmem: avoid deadlock between read and mmap calls

HEAD is now at 1e8b3d8 ashmem: avoid deadlock between read and mmap calls

*** Enabling DVB-T support ***

HOSTCC scripts/basic/fixdep

HOSTCC scripts/kconfig/conf.o

SHIPPED scripts/kconfig/zconf.tab.c

SHIPPED scripts/kconfig/zconf.lex.c

SHIPPED scripts/kconfig/zconf.hash.c

HOSTCC scripts/kconfig/zconf.tab.o

HOSTLD scripts/kconfig/conf

arch/arm/configs/tegra3_android_defconfig:594:warning: override: reassigning to symbol RC_CORE

#

# configuration written to .config

#

scripts/kconfig/conf --silentoldconfig Kconfig

make: *** No rule to make target `modules_prepare'. Stop.

*** Compiling drivers ***

WARNING: Symbol version dump /usr/src/nexus/ksrc/Module.symvers

is missing; modules will have no dependencies and modversions.

Building modules, stage 2.

MODPOST 0 modules

/bin/sh: 1: scripts/mod/modpost: not found

make[1]: *** [__modpost] Error 127

make: *** [modules] Error 2

WARNING: Symbol version dump /usr/src/nexus/ksrc/Module.symvers

is missing; modules will have no dependencies and modversions.

Building modules, stage 2.

MODPOST 0 modules

/bin/sh: 1: scripts/mod/modpost: not found

make[1]: *** [__modpost] Error 127

make: *** [modules] Error 2

*** Copying to output dir ***
[Nexus 7 General] nesk1:
3.1.10-g1e8b3d8

I had the same issue. If someone had a compiled version of kernel modules and driver for rtl2832U it would be very kind to share with us these files.

PS: I'm running Android 4.3 with kernel 3.1.10-g1e8b3d8

Thank you in advance :)
[Nexus 7 General] nesk1:
OK guys can someone please compile these modules?

please help me!
[Nexus 7 General] CyberCodeDroid:
Could I ask for help with the following? I set the rights to 777, but it is still the USB DVB-T does not work ..

Tuner I have this:

http://dx.com/p/rtl2832u-r820t-mini-dvb-t-dab-fm-usb-digital-tv-dongle-black-170541
[Nexus 7 General] martintzvetomirov:
The messages say failed to set modules. So there's something wrong with the modules (probably not compiled for the right kernel?). Read the dmesg log it should shed some light.
[Nexus 7 General] CyberCodeDroid:
With Franco kernel shows this, is there any way the operation of DVB-T?
[Nexus 7 General] BePaille:
Exact same issue here...

git checkout -b new_branch_name

HEAD is now at 1e8b3d8... ashmem: avoid deadlock between read and mmap calls
HEAD is now at 1e8b3d8 ashmem: avoid deadlock between read and mmap calls
*** Enabling DVB-T support ***
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
arch/arm/configs/tegra3_android_defconfig:594:warning: override: reassigning to symbol RC_CORE
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
make: *** Pas de règle pour fabriquer la cible « modules_prepare ». Arrêt.
*** Compiling drivers ***

WARNING: Symbol version dump /home/paille/dvb/ksrc/Module.symvers
is missing; modules will have no dependencies and modversions.

I have an issue with module prepare. I tried to launch the make outside the script and it asked me a bunch of question but failed in the end with the exact same error. (make: *** Pas de règle pour fabriquer la cible « modules_prepare ». Arrêt.)

- No rule to make target "modules_prepare". Stop.)

So without this, compilation does not go trhough and no DVB-T for me. Anyone succeeded? COMPILATION OK NOW

But I have this function not implemented as seen earlier and insmod is not really happy

I use an old NEXUS 7 with WiFi and with g1e8b3d8...
[Nexus 7 General] domain:
How did you succeed to compile them
[Nexus 7 General] Mugga:
I just managed to compile the files for my kernel and now got rid of the "exec format error". But know I got another problem:

After executing the "startdvb" script I get this error:

"Unable to chmod /dev/dvb/adapter0/dvr0.ts: No such file or directory"

But the files exists. I also tried DroidTV but it doesn't work.

Nevermind got it all working finally. The only thing which sucks is that DroidTV and SDR Touch are not working together. Anyone got a solution for that?
[Nexus 7 General] Decapper:
I don't know how much trouble as I have no idea how to compile, but if not too much can someone compile for USB ROM.. g25ab3af

Thanks
[Nexus 7 General] gpsdatamonitor:
Hello, can someone help me?

I have Android tablet with kernel 3.0.8+ and ICS 4.0.3 rooted and RTL2832 (ezcap dvbt stick).

Having the error:

"insmod: init_module 'dvb-usb-rtl2832u.ko' failed (Exec format error)"

..and same errors for other modules..

I sow DVB-T drivers that are for my device here on realtv.neoz.in

but when you extract and run script, you see that that are wrong modules in archive (3.1.10 and i need 3.0.8+).

Can someone, please, compile all dvb-t modules to use with kernel 3.0.8+ (ICS 4.0.3) ?

So, no 3.0.8 but 3.0.8+ ?

Please?

Thanks
[Nexus 7 General] domain:
And the same with Kitkat 4.4
[Nexus 7 General] Parron:
RK3066 Kernel 3.0.8+ RTL2832U.ko

Here you are. After 3 days of learning, a lot of coffe and cigarettes. I managed to compile this module against a kernel 3.0.8 + BQ Maxwell PLUS (Jelly Bean).

To me it has not worked because it hasn't built the tuner of my device, but it left to add to the kernel 3.0.8 + ARMv7 (RK3066). try it to see if it work for you.

Best regards.

Parron.
[Nexus 7 General] domain:
The problem with compiling was that google disabled by default loadable module support in config file.

In script you should add after line >

# Write the requirements for DVB modules into the default tegra configuration file

echo " *** Enabling DVB-T support ***"

sed -i '$ a\

CONFIG_MODULES=y\

before

CONFIG_DVB_CORE=m\
[Nexus 7 General] robb001:
New app?

The link to the droidtv app is dead and all of my searches have been dead-end also. Anyone have a link to a working app?:fingers-crossed:

EDIT

Found a copy of droidtv.apk in the attachment here www . 2shared . com/file/uUlHRMfQ/dvbt-android308 . html

Thanks to those who posted at /www . slatedroid . com/topic/18812-howto-dvb-usb-support/page__st__60
[Nexus 7 General] schlager:
Which android version did you use the modules with? I'm wondering which kernel version the modules are compiled against.

---------- Post added at 02:09 PM ---------- Previous post was at 01:53 PM ----------

dmesg says:

frustrating! just post sources instead of the .ko objects.
[Nexus 7 General] _crue_:
I've tried dvb-t modules - no success.
[Nexus 7 General] schlager:
so there's a Nexus 7 (2013) kernel that supposedly has the DVB modules prebuilt for Android 4.3

http://xdaforums.com/showthread.php?t=2389022

I am already on Kitkat, so I am not sure if reverting back to try this out... Anyone here interested in trying it?

Also note that you will need a non-caf rom (regular Cyanogenmod wont work). Try this if you want

http://xdaforums.com/showthread.php?t=2545197
[Nexus 7 General] phamthanhnam:
Saving time and your life: no need to recompile

For those who have another kernel version, you don't need to recompile dvb modules. If your kernel version is not in git revisions, you will just fail with 'fatal: ambiguous argument '3.1.10-xxxxxxxx': unknown revision or path not in the working tree'. Fortunately, there's a much faster and much simpler way to get dvb modules for your kernel version. You don't need git, make, toolchain, kernel source...

Nearly every Android kernel for Nexus 7 is based on 3.1.10 linux kernel (because of nvidia's closed source driver for graphics card), so kernel version for your Nexus 7 will be always 3.1.10-xxxxxxxx.

You can get directly precompiled binary modules (aka *.ko files) at post #1 and patch them for your kernel version:

perl -pi -e 's/3.1.10-g52027f9/3.1.10-xxxxxxxx/g' *.ko

Alternaties: Get precompiled binary modules at post #80 (more complete than modules from post #1) and patch them:

perl -pi -e 's/3.1.10-g22b4fcd/3.1.10-xxxxxxxx/g' *.ko

Alternaties 2: Post #129, the same way:

perl -pi -e 's/3.1.10-g05b777c/3.1.10-xxxxxxxx/g' *.ko

Basically this command replaces 'magic version' in *.ko files. Version mismatch will prevent insmod with an 'exec format error'.

Replace xxxxxxxx by your kernel-version, for example if your kernel version is 3.1.10-g30c5396, use:

perl -pi -e 's/3.1.10-g52027f9/3.1.10-g30c5396/g' *.ko

That's it!

More info: This way works with Cyanogen Mod kernels/ROMs!!!
[Nexus 7 General] phamthanhnam:
Some useful troubleshooting tips

I don't know if there is still someone who is interested on this, but here's some useful tips from my experience. I hope you can use these tips when you get problems.

- The folder for firmware is /system/etc/firmware (the same as /etc/firmware), not /lib/firmware. You need to remount read-write /system partition and / partition (using ES Manager, for example) to put firmware into its right place.

- If you experience 'Exec format error' while insmod, it may be because of version mismatch between *.ko module and kernel version (check with dmesg). Use right version for your modules or see my above post to patch *.ko module.

- If you experience 'No such file or directory' while insmod... Well, this is a misleading error message. If you check with dmesg, you will see Unknown symbol <some symbol name>... It's because of dependency between modules, at least one required module is not loaded before the current module. One line for RTL2832U based DVB-T dongle after insmod dvb-usb is enough, but one line for many DVB-T dongles is not enough. For example, dvb-usb-dib0700 depends on dibx000_common, dib7000p, dib0090, dib7000m, dib0070, dib8000, dib9000, dib3000mc, s5h1411, lgdt3305... You need insmod all these required modules before insmod dvb-usb-dib0700.ko. Failing to do that, you will get 'Unknown symbol' in dmesg, and 'No such file or directory' error.

To know which modules are required for your dongle, and which module depends on which modules, the easiest way is plug your dongle into a Linux PC (Ubuntu, for example) and check with 'lsmod' in linux terminal. Your dongle must work on Linux before it can work on Android.

Another way is know which modules are required and dependency is dmesg and guessing, or better with grep. For example, if insmod xxx.ko gives you Unknown symbol <some symbol name> in dmesg, use:

grep <the unknown symbol name> *.ko

to know which module yyy.ko containing that symbol name (because xxx.ko depends on yyy.ko)

- Use chmod -R 777 /dev/dvb* in startdvb