DVB-T dongle running on Nexus 7

BePaille

New member
Oct 27, 2013
1
0
0
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 :)

Exact same issue here...

Code:
  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...
 

Attachments

Last edited:

Mugga

Senior Member
Jun 14, 2010
102
27
0
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?
 
Last edited:

gpsdatamonitor

New member
Sep 9, 2012
4
1
0
www.facebook.com
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
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
 

domain

Senior Member
Jul 23, 2007
67
14
0
Sofia
And the same with Kitkat 4.4

./dvbn7comp 3.1.10-gee1a0b2

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

More info: http://forum.xda-developers.com/showthread.php?t=1841759


*** Kernel already downloaded, updating ***
remote: Counting objects: 83514, done
remote: Finding sources: 100% (5783/5783)
remote: Getting sizes: 100% (201/201)
remote: Compressing objects: 100% (1425129/1425129)
remote: Total 5783 (delta 4821), reused 5767 (delta 4812)
Receiving objects: 100% (5783/5783), 1.49 MiB | 1.69 MiB/s, done.
Resolving deltas: 100% (4828/4828), completed with 1283 local objects.
From https://android.googlesource.com/kernel/tegra
cacc36f..47128ea android-3.10 -> origin/android-3.10
3128b19..f1df8dc android-tegra-3.10 -> origin/android-tegra-3.10
* [new branch] android-tegra3-grouper-3.1-kitkat-mr0 -> origin/android-tegra3-grouper-3.1-kitkat-mr0
*** Toolchain already downloaded, updating ***
remote: Counting objects: 7, done
remote: Finding sources: 100% (7/7)
remote: Total 7 (delta 0), reused 7 (delta 0)
Unpacking objects: 100% (7/7), done.
From https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6
* [new branch] kitkat-cts-dev -> origin/kitkat-cts-dev
* [new branch] kitkat-dev -> origin/kitkat-dev
* [new branch] kitkat-release -> origin/kitkat-release
* [new tag] android-4.4_r0.7 -> android-4.4_r0.7
* [new tag] android-4.4_r0.8 -> android-4.4_r0.8
* [new tag] android-4.4_r0.9 -> android-4.4_r0.9
* [new tag] android-4.4_r1 -> android-4.4_r1
* [new tag] android-4.4_r1.1 -> android-4.4_r1.1
* [new tag] android-4.4_r1.2 -> android-4.4_r1.2
* [new tag] android-cts-4.4_r1 -> android-cts-4.4_r1
*** Using toolchain path tchain/bin. Now we are in /usr/src/nexus
*** Environments set for Android compiling ***
*** Resetting git repo to commit ee1a0b2337dbae4f47263805aba0581eceb7c0b1 ***
error: Your local changes to the following files would be overwritten by checkout:
arch/arm/configs/tegra3_android_defconfig
Please, commit your changes or stash them before you can switch branches.
Aborting
Removing .config
Not removing drivers/media/dvb/.tmp_versions/
Removing drivers/media/dvb/b2c2/modules.order
Removing drivers/media/dvb/bt8xx/modules.order
Removing drivers/media/dvb/ddbridge/modules.order
Removing drivers/media/dvb/dm1105/modules.order
Removing drivers/media/dvb/dvb-core/modules.order
Removing drivers/media/dvb/dvb-usb/modules.order
Removing drivers/media/dvb/frontends/modules.order
Removing drivers/media/dvb/mantis/modules.order
Removing drivers/media/dvb/modules.order
Removing drivers/media/dvb/ngene/modules.order
Removing drivers/media/dvb/pluto2/modules.order
Removing drivers/media/dvb/pt1/modules.order
Removing drivers/media/dvb/siano/modules.order
Removing drivers/media/dvb/ttpci/modules.order
Removing drivers/media/dvb/ttusb-budget/modules.order
Removing drivers/media/dvb/ttusb-dec/modules.order
Not removing drivers/media/rc/.tmp_versions/
Removing drivers/media/rc/keymaps/modules.order
Removing drivers/media/rc/modules.order
Not removing include/config/
Not removing include/generated/
Removing scripts/basic/.fixdep.cmd
Removing scripts/basic/fixdep
Removing scripts/kconfig/.conf.cmd
Removing scripts/kconfig/.conf.o.cmd
Removing scripts/kconfig/.zconf.tab.o.cmd
Removing scripts/kconfig/conf
Removing scripts/kconfig/conf.o
Removing scripts/kconfig/zconf.hash.c
Removing scripts/kconfig/zconf.lex.c
Removing scripts/kconfig/zconf.tab.c
Removing scripts/kconfig/zconf.tab.o
HEAD is now at 1e8b3d8 ashmem: avoid deadlock between read and mmap calls
CLEAN include/config include/generated
*** 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 ***
 

Parron

New member
Jan 29, 2013
1
1
0
RK3066 Kernel 3.0.8+ RTL2832U.ko

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
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.
 

Attachments

  • Like
Reactions: krump_lee

domain

Senior Member
Jul 23, 2007
67
14
0
Sofia
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\
 
Last edited:

robb001

Member
Nov 23, 2013
5
0
0
New app?

Hi, where could I get the droidtv app? is there source available?
Does it support video capture from video-in any of these usb dongles?
REPLY:
The source is linked in the first post of this thread. It doesn't support recording yet, and it probably doesn't know anything about analog video-in.
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
 
Last edited:

schlager

Senior Member
Mar 25, 2013
106
10
0
Nuremberg
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
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 ----------

Which android version did you use the modules with? I'm wondering which kernel version the modules are compiled against.
modinfo media/dvb/dvb-core/dvb-core.ko
filename: dvb-t/media/dvb/dvb-core/dvb-core.ko
license: GPL
author: Marcus Metzler, Ralph Metzler, Holger Waechtler
description: DVB Core Driver
depends:
vermagic: 3.0.8++ preempt mod_unload modversions ARMv7
parm: dvbdev_debug:Turn on/off device debugging (default:eek:ff).
parm: debug:Turn on/off debugging (default:eek:ff).
parm: dvb_demux_speedcheck:enable transport stream speed check
parm: dvb_demux_tscheck:enable transport stream continuity and TEI check
parm: cam_debug:enable verbose debug messages
parm: dvb_mfe_wait_time:Wait up to <mfe_wait_time> seconds on open() for multi-frontend to become available (default:5 seconds)
parm: dvb_powerdown_on_sleep:0: do not power down, 1: turn LNB voltage off on sleep (default)
parm: dvb_override_tune_delay:0: normal (default), >0 => delay in milliseconds to wait for lock after a tune attempt
parm: dvb_force_auto_inversion:0: normal (default), 1: INVERSION_AUTO forced always
parm: dvb_shutdown_timeout:wait <shutdown_timeout> seconds after close() before suspending hardware
parm: frontend_debug:Turn on/off frontend core debugging (default:eek:ff).
parm: dvb_net_debug:enable debug messages

dmesg says:

<3>[160223.982299] dvb_usb: version magic '3.0.8++ preempt mod_unload modversions ARMv7 ' should be '3.0.31-green+ SMP preempt mod_unload ARMv7 '

frustrating! just post sources instead of the .ko objects.
 

_crue_

Senior Member
Nov 13, 2013
271
166
0
I've tried dvb-t modules - no success.
<6>[ 192.637095] dvb-usb: found a 'RTL2832U DVB-T USB DEVICE' in warm state.
<6>[ 192.637229] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
<6>[ 192.639200] DVB: registering new adapter (RTL2832U DVB-T USB DEVICE)
<7>[ 192.655912] RTL2832U usb_init_bulk_setting : USB2.0 HIGH SPEED (480Mb/s)
<7>[ 192.916426] RTL2832U check_tuner_type : ERROR Unknown tuner on board...
<3>[ 192.916496] dvb-usb: no frontend was attached by 'RTL2832U DVB-T USB DEVICE'
<6>[ 192.916794] input: IR-receiver inside an USB DVB receiver as /devices/platform/tegra-ehci.0/usb2/2-1/input/input3
<6>[ 192.917057] keychord: using input dev IR-receiver inside an USB DVB receiver for fevent
<6>[ 192.917179] dvb-usb: schedule remote query interval to 287 msecs.
<6>[ 192.917243] dvb-usb: RTL2832U DVB-T USB DEVICE successfully initialized and connected.
<6>[ 192.917547] usbcore: registered new interface driver dvb_usb_rtl2832u
 

schlager

Senior Member
Mar 25, 2013
106
10
0
Nuremberg

phamthanhnam

Member
May 20, 2013
9
195
0
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:
Code:
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:
Code:
perl -pi -e 's/3.1.10-g22b4fcd/3.1.10-xxxxxxxx/g' *.ko
Alternaties 2: Post #129, the same way:
Code:
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:
Code:
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!!!
 
Last edited:
  • Like
Reactions: martintzvetomirov

phamthanhnam

Member
May 20, 2013
9
195
0
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
 
Last edited:

HeikoE

Member
Jul 21, 2011
36
3
0
Replace xxxxxxxx by your kernel-version, for example if your kernel version is 3.1.10-g30c5396, use:
Code:
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!!![/QUOTE]

Sure that's a noob question...
Do you run that patch on the device, meaning via a terminal window or adb? Just unzipping the modules and execute in that folder or do I think to easy? Thanks for helping.

Gesendet von meinem Nexus 7
 

_crue_

Senior Member
Nov 13, 2013
271
166
0
Code:
02-13 10:08:30.860: E/AndroidRuntime(2406): FATAL EXCEPTION: main
02-13 10:08:30.860: E/AndroidRuntime(2406): Process: com.chrulri.droidtv, PID: 2406
02-13 10:08:30.860: E/AndroidRuntime(2406): java.lang.NullPointerException
02-13 10:08:30.860: E/AndroidRuntime(2406): 	at com.chrulri.droidtv.ScanActivity.setEnabled(ScanActivity.java:885)
02-13 10:08:30.860: E/AndroidRuntime(2406): 	at com.chrulri.droidtv.ScanActivity$AsyncScanTask.onCancelled(ScanActivity.java:932)
02-13 10:08:30.860: E/AndroidRuntime(2406): 	at android.os.AsyncTask.onCancelled(AsyncTask.java:405)
02-13 10:08:30.860: E/AndroidRuntime(2406): 	at android.os.AsyncTask.finish(AsyncTask.java:630)
02-13 10:08:30.860: E/AndroidRuntime(2406): 	at android.os.AsyncTask.access$600(AsyncTask.java:177)
02-13 10:08:30.860: E/AndroidRuntime(2406): 	at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
02-13 10:08:30.860: E/AndroidRuntime(2406): 	at android.os.Handler.dispatchMessage(Handler.java:102)
02-13 10:08:30.860: E/AndroidRuntime(2406): 	at android.os.Looper.loop(Looper.java:136)
02-13 10:08:30.860: E/AndroidRuntime(2406): 	at android.app.ActivityThread.main(ActivityThread.java:5017)
02-13 10:08:30.860: E/AndroidRuntime(2406): 	at java.lang.reflect.Method.invokeNative(Native Method)
02-13 10:08:30.860: E/AndroidRuntime(2406): 	at java.lang.reflect.Method.invoke(Method.java:515)
02-13 10:08:30.860: E/AndroidRuntime(2406): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
02-13 10:08:30.860: E/AndroidRuntime(2406): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
02-13 10:08:30.860: E/AndroidRuntime(2406): 	at dalvik.system.NativeStart.main(Native Method)
 

jimmng

Member
Jan 11, 2013
37
3
8
could someone pls reupload nexusdvb.rar or the apk....
nexus 7 2012, kernel is perfect for the first option.
Much appreciated and thanks guys :)