1 (edited by Gorkhaan 2011-10-05 07:51:30)

Topic: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

Hello everyone. I'd like to post my Howto for you. Enjoy. Comments are welcome. If the staff like this, they can use this howto (or parts of the howto) to update OpenWRT's wiki pages. Feel free to modify everything.

The stuff: http://dl.dropbox.com/u/531976/Linux/OpenWRT/openwrt-2.6.39.4-dvb-usb-af9015.tar.gz

Screenshot with 4 unicast http stream:
http://dl.dropbox.com/u/531976/Linux/OpenWRT/mindigtv001.png

Testing environment:
http://dl.dropbox.com/u/531976/Linux/OpenWRT/mindigtv002.jpg
http://dl.dropbox.com/u/531976/Linux/OpenWRT/mindigtv003.jpg

README:
0, Read this through first. I have a DVB-T receiver with TDA18218 chipset, like this: "http://www.dealextreme.com/p/usb-dvb-t-tv-dongle-with-remote-8309". It's quite cheap. I had to bux a "MCX to Coax" adapter cable too. (Check google)

1, Backup your stuff and Flash your TP-LINK WR1043ND with OpenWRT latest firmware
    http://downloads.openwrt.org/snapshots/ … actory.bin

2, Install required openwrt packages (plus recommended packages: nano htop screen):
    opkg update; opkg install kmod-usb2 kmod-usb-core usbutils libpthread

3, These modules are compiled for linux-2.6.39.4. You need to place them to /lib/modules/2.6.39.4
    scp modules/* root@192.168.1.1:/lib/modules/2.6.39.4/

4, Consider to use my script to load these modules (startdvb.sh). While loading these modules they have to be loaded in a specific order.
The script can (and will) download the needed firmware for af9015: http://palosaari.fi/linux/v4l-dvb/firmware/af9015/5.1.0.0/

5, To test if everything it's in place check "dmesg" and "lsusb" output

6, Install MumuDVB to stream. Here is a (little bit outdated) howto: http://mumudvb.braice.net/mumudrupal/node/36
    opkg install mumudvb_1.6.1-openwrt-1_ar71xx.ipk

7, To start streaming with mumudvb use the following command (you should create an init script for it or something):
    mumudvb -d -c /root/<MUMUDVB-CONFIG>.conf
    screen -dmS mumudvb mumudvb -d -c /etc/mumudvb/mindigtv-mux-c.conf    # check running screens with "screen -ls" command

8, Enjoy! Comments are welcome!


### More info ###
"modules_install"    - directory contains few packaged modules. The thing is 2 needed modules are missing from these packages (mt2060.ko and qt1010.ko) but I provided them in the "modules" dir.
"mindigtv"        - is a directory what contains mumudvb config files configured to a Hungarian DVB-T service, called MindigTV (http://mindigtv.hu/)

You can auto tune with a mumudvb config called "mindigtv-auto.conf".
When you start mumudvb with this config, it will auto generate the required configuration file (pid and id_ps).
You can copy it from: "/var/run/mumudvb/mumudvb_generated_conf_card0" for futher usage (creating own configs)


FILE LIST:

tree -h
.
??? [4.0K]  mindigtv
?   ??? [ 119]  mindigtv-auto.conf
?   ??? [ 673]  mindigtv-mux-a.conf
?   ??? [  79]  mindigtv-mux-b.conf
?   ??? [ 694]  mindigtv-mux-c.conf
??? [4.0K]  modules
?   ??? [ 27K]  af9013.ko
?   ??? [115K]  dvb-core.ko
?   ??? [ 13K]  dvb-pll.ko
?   ??? [ 42K]  dvb-usb-af9005.ko
?   ??? [4.1K]  dvb-usb-af9005-remote.ko
?   ??? [ 32K]  dvb-usb-af9015.ko
?   ??? [ 27K]  dvb-usb.ko
?   ??? [6.1K]  mt2060.ko
?   ??? [ 38K]  mxl5005s.ko
?   ??? [ 14K]  mxl5007t.ko
?   ??? [6.9K]  qt1010.ko
?   ??? [ 27K]  rc-core.ko
?   ??? [6.9K]  tda18218.ko
?   ??? [ 78K]  tda18271.ko
??? [4.0K]  modules-installer
?   ??? [ 11K]  kmod-dvb-usb_2.6.39.4-1_ar71xx.ipk
?   ??? [ 38K]  kmod-dvb-usb-af9005_2.6.39.4-1_ar71xx.ipk
?   ??? [2.4K]  kmod-dvb-usb-af9005-remote_2.6.39.4-1_ar71xx.ipk
?   ??? [ 86K]  kmod-dvb-usb-af9015_2.6.39.4-1_ar71xx.ipk
??? [ 46K]  mumudvb_1.6.1-openwrt-1_ar71xx.ipk
??? [2.8K]  README
??? [1.4K]  startdvb.sh


My Blog: ocsovszki-dorian.blogspot.com

Updated: 2011-11-03

Re: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

Wow, very nice and interesting, thank you for this howto !

But I have a different USB DVB-T receiver, hence I have to build other kernel moduls.
At http://mumudvb.braice.net/mumudrupal/node/36 there is python script available to create the dvb.mk script for latest kernel version modul selection.
I tried this script, put the result into my build environment and the DVB kernel modul entry appears but I can't enter the submenu !?
I also added the mumudvb package makefile and I'm able to select that package but still not the required DVB kernel modules ???

Could you provide your dvb.mk for 2.6.39.4 ?


Thank you.

Re: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

Nice work.


I have to ask, what might prevent you from dopping such howtos into the Wiki yourselves? Is it the color?

4 (edited by Orca 2011-10-08 15:06:19)

Re: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

http://wiki.openwrt.org/doc/howto/iptv.mumudvb


The idea is to get there from
http://wiki.openwrt.org/doc/howto/user.beginner
--> http://wiki.openwrt.org/doc/howto/basic.config
----> http://wiki.openwrt.org/doc/howto/internet.connection
------> http://wiki.openwrt.org/doc/howto/iptv.overview

And another one:
http://wiki.openwrt.org/doc/howto/usb.video#applications

or to search either for mumudvb or iptv

Re: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

Thanks for your nice words.
Honestly I thougth posting howtos to wiki required special permissions (like developers only). I just registered to wiki, I'll post the howto there too.

dvb.mk was a very tricky one. I successfully compiled these modules from two build root. Probably I need to look deeper into the kernel's menuconfig and etc. I've built a chroot only for compiling openwrt, I'm about to share that chroot too, probably on Torrent (~3GB). I'll upload the torrent file today.

Re: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

Gorkhaan wrote:

Thanks for your nice words.
Honestly I thougth posting howtos to wiki required special permissions (like developers only). I just registered to wiki, I'll post the howto there too.

Good, come.

Gorkhaan wrote:

dvb.mk was a very tricky one. I successfully compiled these modules from two build root. Probably I need to look deeper into the kernel's menuconfig and etc. I've built a chroot only for compiling openwrt, I'm about to share that chroot too, probably on Torrent (~3GB). I'll upload the torrent file today.

Ultimately it would be handy to have this mumudvb (oh btw, in german mumu means punci) in the OpenWrt repos. Longtime maintainers are welcome ;-)

7 (edited by Gorkhaan 2011-10-07 15:44:11)

Re: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

Thanks. I see what I can do! smile

Here are the files what you asked for (another compile):

http://code.google.com/p/mediawrt/ --> there is the dvb.mk generator. I had to edit the hotplug lines. I commented them out they made errors. ( http://dl.dropbox.com/u/531976/Linux/OpenWRT/generate-dvb.mk )
http://dl.dropbox.com/u/531976/Linux/OpenWRT/kernelconfig-2.6.39.4 --> Rename it to .config, this is OpenWRT's config.
http://dl.dropbox.com/u/531976/Linux/OpenWRT/dvb.mk --> This is my generated dvb.mk ( packages/kernel/modules/dvb.mk )

Re: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

Hi Gorkhaan,

Wow, this is great!

Wonder if I could get it working with the equipments I have:

Router: WNDR3700 V1
USB Tuner: AVerTV Hybrid Volar MAX (official Linux driver)

As I know that I would need driver: the official (maybe not work with OpenWRT?) OR Video4Linux (V4L);
and application: MumuDVB.

Am I correct please?

Any chance to get it working?

Thanks

Yardern

Re: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

yardern wrote:

Hi Gorkhaan,

Wow, this is great!

Wonder if I could get it working with the equipments I have:

Router: WNDR3700 V1
USB Tuner: AVerTV Hybrid Volar MAX (official Linux driver)

As I know that I would need driver: the official (maybe not work with OpenWRT?) OR Video4Linux (V4L);
and application: MumuDVB.

Am I correct please?

Any chance to get it working?

Thanks

Yardern

Hello,

If it works on a regular x86 system, it have to work with on the router too. If you have all those modules what are needed to get your card working. Just keep trying until it works. smile

Re: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

Very promising project.

I'm thinking about centralizing my TV-cards, so that my TV-cards are online 24/7 and available to all computers.

Would it be possible to do the same for DVB-C cards? Or is  bandwidth/CPU demands higher for DVB-C on routers?

Would potentially be awsome to connect 2 x Terratec HDTC DVB-C tuners to an ASUS router N56(not yet supported) & Openwrt or DDWRT

What about the client software?

-Possible to control from an DVB-IP or DVB-C software like Mediaportal?
-Possible to switch channels from remote client software?
-Possible to grab EPG?

What is your overall experience with this setup - Is it stable, and do you have any problems at all?

/Morten

Re: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

Please see if this article helps you understand how hardware that creates IP streams is being handled by Linux/OpenWrt.

Re: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

Orca wrote:

Please see if this article helps you understand how hardware that creates IP streams is being handled by Linux/OpenWrt.

Not much help there:-S

I assume that getting DVB-C to technically work with Router and Mumudvb-C is actually no problem.

But my concerns are reagrding overall performance - the lack of cpu power on the routerside seems to be the issue in most cases.

So hearing that Opwnwrt is running with a 4 x unicast sream from DVB-T sounds very promising.

But again - DVB-C is probably more CPU/bandwidth demanding.

Hope someone out there can comment on this.

/Morten

Re: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

msj33 wrote:
Orca wrote:

Please see if this article helps you understand how hardware that creates IP streams is being handled by Linux/OpenWrt.

Not much help there:-S

I assume that getting DVB-C to technically work with Router and Mumudvb-C is actually no problem.

But my concerns are reagrding overall performance - the lack of cpu power on the routerside seems to be the issue in most cases.

So hearing that Opwnwrt is running with a 4 x unicast sream from DVB-T sounds very promising.

But again - DVB-C is probably more CPU/bandwidth demanding.

Hope someone out there can comment on this.

/Morten

I am no expert on DVB-{S,C,T} but I think the CPU-hungry part (MPEG-{2,4} decoding) is done by your media player -- ie. not on the router. The DVB-T reciever simply picks up the signal, and openwrt simply passes that onto whatever that connects to it (VLC, mplayer, ...).

I have no interrest in DVB-T (too few channels where I am at), but DVB-C is interresting. However I can not find any Linux-compatible and *cheap* usb DVB-C receivers. (The Anysee model is a bit expensive).

Re: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

About CPU
Sorry my poor English!

I thing it is comparable:
DVB-T TT Budget PCI uses ~10-11% of 600MHz P3 CPU when recording to PATA harddisk (ATA100 old) 5 (five) different programs in same time (H264). 
Tested: Windows XP, DVscheduler 5.61.  I have not still working OWRT configuration.

Greetz

Re: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

Can this works on WRT54GL  ?

I have linksys WRT54GL with SD card + USB port added.

16 (edited by futaris 2012-08-29 09:40:01)

Re: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

You really want Gigabit Ethernet for mumudvb.

Surprised that 32MB of RAM is enough for this on the WR1043ND.

This should also work for DVB-T2:
http://angrytechnician.wordpress.com/20 … ou-idiots/
http://angrytechnician.wordpress.com/20 … ing-udpxy/

You'll need USB 2.0 for most DVB-T..

Re: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

Hi, I need to buy some dvb-t tuner to be able to stream terrestrial tv over network to my cottage, where's no dvb-t coverage, but I have there ~60mbit wifi link from my flat, where is good dvb-t signal. I'd like something that works with standart openwrt packages, because the only thing I can compile is openwrt sad

Should I stick with the old dvb-t stick mentioned in here (which gets very hot as they write in reviews), probably no mpeg4 and the howto and files are for the old kernel anyway? ~$8 is not that expensive, but I don't want to throw that money away, because for the same price there is newer and better. Is there some mpeg4 dvb-t someone could recommend with step by step documentation, or which would work with current barrier breaker?

The MT4171 with ITE9135 chipset looks good, cheap as the one mentioned here and has mpeg4 support: http://www.buyincoins.com/item/30948.html But if I will manage to get that working under openwrt I have no idea. I found some video on youtube where that dude has it working, but no documentation though.

Thank you.

Re: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

nozombian wrote:

Hi, I need to buy some dvb-t tuner to be able to stream terrestrial tv over network to my cottage, where's no dvb-t coverage, but I have there ~60mbit wifi link from my flat, where is good dvb-t signal. I'd like something that works with standart openwrt packages, because the only thing I can compile is openwrt sad

Should I stick with the old dvb-t stick mentioned in here (which gets very hot as they write in reviews), probably no mpeg4 and the howto and files are for the old kernel anyway? ~$8 is not that expensive, but I don't want to throw that money away, because for the same price there is newer and better. Is there some mpeg4 dvb-t someone could recommend with step by step documentation, or which would work with current barrier breaker?

The MT4171 with ITE9135 chipset looks good, cheap as the one mentioned here and has mpeg4 support: http://www.buyincoins.com/item/30948.html But if I will manage to get that working under openwrt I have no idea. I found some video on youtube where that dude has it working, but no documentation though.

Thank you.


Hey mate. Well 60mbit is not too much, but you can try streaming. ITE9135 sounds good, I have another howto, the latest one with more documentation. Check it out:

http://ocsovszki-dorian.blogspot.co.uk/2014/01/tl-wdr4900-openwrt-dvb-t-with-ite9135.html


Have fun,

G.

Re: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

Thank you very much for info, your how-to looks promising smile I will buy it then. I should be able to get close to 100mbit, if the bandwidth would appear as a problem, only I'd need to raise transmit power above regulatory limit, but nobody cares about limits in here smile

Re: TP-LINK WR1043ND as a DVB-T STB - (Nearly) complete HowTo

Hi, I have bought the stick, it somehow works in lubuntu (except for hdtv, but I don't mind low quality atm).

I tried to compile openwrt by your guide, but I'm stuck at make kernel_menuconfig, I have the menu multimedia support empty, no digital tv support, no anything :-( Btw I have tp link wr1043nd v2, so ar71xx platform.

Can you please help?