Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 DLink DIR-842 C2 OpenWRT Firmware, with DVB-T2

views
     
TSsyahmixp
post Aug 29 2019, 04:46 PM, updated 6y ago

New Member
*
Junior Member
18 posts

Joined: Sep 2010


This is OpenWRT firmware for DIR-842 C2 that was specifically tailored for Astrometa DVB-T2 tuner (2014 version).
I don't remember if I compiled any other dvb/tuner drivers with this.
The firmware was built based on https://github.com/openwrt/openwrt/commit/e...62049e479978951

What is included:
- Luci
- Tvheadend server
- Astrometa DVB T2 drivers (Panasonic mn88473)
- cifs
- qos
- ddns
- adblock
- extra: w_scan2 (to find frequency and channels) https://github.com/stefantalpalaru/w_scan2

Flashing

- Upgrade the factory.bin through the factory web interface or the u-boot failsafe interface. The firmware will boot up correctly for the first time. Do not power off the device after OpenWrt has booted. Otherwise the u-boot will enter failsafe mode as the checksum of the firmware has been changed.
- Upgrade the sysupgrade.bin in OpenWrt. After upgrading completes the u-boot won't complain about the firmware checksum and it's OK to use now.
- If you powered off the device before upgrading the sysupgrade.bin, just upgrade the factory.bin through the u-boot failsafe interface and then goto step 2.

Configuring Unifi
Configuring OpenWRT to connect to Unifi should look like this, although note that I don't use Unifi IPTV.
- VLAN id 500 = Internet
- VLAN id 600 = IPTV
- VLAN id 400 = VOIP

Then set the credentials at Networks > Interface > WAN

user posted image
user posted image

Configuring TVHeadend
tvheadend daemon should be running with this build, to access open http://router_ip:9981
Configuring tvheadend is a bit headache:
Make sure to plug your USB DVB T2 to the router.
First, a network must be added (1), then muxes (2), and then assign dvb interface to network (3) and scan (4). Finally, the result (5) must be mapped. All need to be defined manually, the muxes can be obtain via http://mytvdvb-t2.blogspot.com/ #search "senarai pemancar". My place uses 522 Mhz and 722 Mhz so it translates to 522000000 Hz and 722000000 Hz that need to be written to tvheadend settings. Alternatively, you can find frequency yourself using w_scan util provided. Just transfer the binary to router using WinSCP and set execute permission.

user posted image
user posted image

Once configured, tvheadend client, like TVHeadend PVR available on Kodi can be used to watch or record. To record, additional configuration is needed on tvheadend server. I just use NAS server mounted via cifs on the router itself as the record storage. The Electronic Program Guide (EPG) can be used to scheduling record or auto record for future program with same name.

user posted image
user posted image
user posted image

This is example of my recording, can be watched on Kodi or by accessing NAS server directly.
user posted image

Issues
Connection reset when accessing router web admin page
Clear your cookie, somehow the cookie from tvheadend interferes with the router web page


Download
Please note that this is a snapshot release, it means that it is likely unstable.
Once you flash this firmware, it is likely you can't go back to original firmware since no C2 firmware is publicly available.
The difference from C1 and C2 is USB. If you want to go back, see https://forum.lowyat.net/index.php?showtopi...post&p=93344481 it might help.

Download:
openwrt-dlink-dir842-c2_r10863-e1dcfe02.zip
openwrt-dlink-dir842-c2_r13136-ad27c133eb.zip
Alternatively you can use snapshot firmware that doesn't include any of DVB stuff and also without Luci web: https://openwrt.org/toh/d-link/d-link_dir-842

Thanks to https://forum.lowyat.net/user/jackcolentern for bringing OpenWRT to DIR 842 CX.

This post has been edited by syahmixp: Jun 19 2020, 08:07 PM
kereta
post Aug 29 2019, 10:10 PM

Getting Started
**
Junior Member
119 posts

Joined: Apr 2006
Awesome, but can you get the wireless 5ghz to work?
wanek
post Aug 30 2019, 01:21 PM

2 + 2 = 5
*****
Senior Member
760 posts

Joined: Jan 2003

QUOTE(kereta @ Aug 29 2019, 10:10 PM)
Awesome, but can you get the wireless 5ghz to work?
*
work
kereta
post Aug 31 2019, 09:33 PM

Getting Started
**
Junior Member
119 posts

Joined: Apr 2006
QUOTE(wanek @ Aug 30 2019, 01:21 PM)
work
*
Hmmm not sure if i'm the only one can't use 5GHz or something. From the kernel log it seems that ath10k firmware can't run.
wanek
post Aug 31 2019, 10:06 PM

2 + 2 = 5
*****
Senior Member
760 posts

Joined: Jan 2003

QUOTE(kereta @ Aug 31 2019, 09:33 PM)
Hmmm not sure if i'm the only one can't use 5GHz or something. From the kernel log it seems that ath10k firmware can't run.
*
user posted image
TSsyahmixp
post Sep 1 2019, 09:00 AM

New Member
*
Junior Member
18 posts

Joined: Sep 2010


QUOTE(kereta @ Aug 31 2019, 09:33 PM)
Hmmm not sure if i'm the only one can't use 5GHz or something. From the kernel log it seems that ath10k firmware can't run.
*
It works fine here too. Do you have C2 or C1? What does the log says?
kereta
post Sep 1 2019, 11:48 AM

Getting Started
**
Junior Member
119 posts

Joined: Apr 2006
Kernel log
» Click to show Spoiler - click again to hide... «


settings under hotplug.d/firmware/11-ath10k-caldata
» Click to show Spoiler - click again to hide... «


I'm using C2 version, with USB, suppose to run... I tried the snapshot build from the website but can't work. Tried C1, C2 and C3 firmware also cannot.

This post has been edited by kereta: Sep 1 2019, 11:49 AM
TSsyahmixp
post Sep 1 2019, 11:06 PM

New Member
*
Junior Member
18 posts

Joined: Sep 2010


This is the original porting thread https://forum.openwrt.org/t/support-for-d-l...rev-c2/40656/36

It looks like firmware crash, maybe changing the firmware can help?
https://www.candelatech.com/ath10k-10.4.php
The current firmware is firmware-5-ct-full-community-12.bin-lede.009 from https://www.candelatech.com/downloads/ath10k-9888-10-4b/

However there is line in your log
CODE
ath10k_pci 0000:00:00.0: failed to fetch board data for bus=pci,bmi-chip-id=0,bmi-board-id=31 from ath10k/QCA9888/hw2.0/board-2.bin


I tried to find your bmi-board-id=31 in latest board-2.bin, there is none. Perhaps it is related, maybe it is better if you ask on openwrt forum.


My board on the other hand uses bmi-board-id=18, which is supported upstream. There are bunch of board data on official firmware, mine uses boardData_2_0_QCA9888_5G_Y9582.bin

user posted image

This post has been edited by syahmixp: Sep 1 2019, 11:19 PM
jackcolentern P
post Sep 1 2019, 11:50 PM

New Member
*
Probation
4 posts

Joined: Jul 2019
QUOTE(syahmixp @ Sep 1 2019, 11:06 PM)
This is the original porting thread https://forum.openwrt.org/t/support-for-d-l...rev-c2/40656/36

It looks like firmware crash, maybe changing the firmware can help?
https://www.candelatech.com/ath10k-10.4.php
The current firmware is firmware-5-ct-full-community-12.bin-lede.009 from https://www.candelatech.com/downloads/ath10k-9888-10-4b/

However there is line in your log
CODE
ath10k_pci 0000:00:00.0: failed to fetch board data for bus=pci,bmi-chip-id=0,bmi-board-id=31 from ath10k/QCA9888/hw2.0/board-2.bin


I tried to find your bmi-board-id=31 in latest board-2.bin, there is none. Perhaps it is related, maybe it is better if you ask on openwrt forum.
My board on the other hand uses bmi-board-id=18, which is supported upstream. There are bunch of board data on official firmware, mine uses boardData_2_0_QCA9888_5G_Y9582.bin

user posted image
*
bmi-board-id=31 indicates a problems with ART partition (the ac wifi calibration data is all ff ff ff ff)
other people facing this problem too: https://forum.openwrt.org/t/support-for-d-l...ersion/41654/40

But flashing firmware should not cause the calibration data to corrupt.
To be safe, I will recommend flashing 3.01 firmware in dlink failsafe mode (https://www.dlink.com.my/DIR-842/#firmware)
and then flash openwrt

PS: thanks for the build!
Luzcrifier
post Nov 3 2019, 01:43 AM

Getting Started
**
Junior Member
57 posts

Joined: Jun 2005
From: Cyberjaya


i also have the same problem. 5ghz wifi is not detected
vvd214 P
post Nov 14 2019, 03:15 PM

New Member
*
Probation
1 posts

Joined: Nov 2019
Thanks for your guide.
My router is buffalo wzr-600dhp
I have USB-DVB T2: Astrometa DVB-T2 with chipset Sony CXD2837ER
I want to compile drivers for it. Can you describle how you compile Astrometa DVB T2 drivers, because when I try to compile usb dvb t2 drivers, openwrt source doesn't support usb dvb devices.
Thank you
Mushwashan
post Apr 12 2020, 10:07 PM

Getting Started
**
Junior Member
64 posts

Joined: Sep 2013
From: Perak


user posted image

sorry for bumping 1st time doing this..
does my router same as shown..
wish me luck ..hehehe
SUSnonamer
post Apr 13 2020, 12:46 PM

Getting Started
**
Junior Member
224 posts

Joined: Apr 2019
i have tried few days ago 5ghz also not working

i had flashed latest firmware because wanted to compare AP performance with archer c1200

found that stock dir842 maybe has some flaws because upload speedtest only getting half speed and some iphones not able to connect to its wifi

the 5ghz workaround to edit board data json to point to id 25 and 18 have also done but still not working

but i messed up network config and could no longer access router before i could try the other IDs

someone should try all the IDs in json file to see if can work

https://forum.openwrt.org/t/support-for-d-l...rev-c3/41654/33

This post has been edited by nonamer: Apr 13 2020, 12:53 PM
Mushwashan
post Apr 13 2020, 08:09 PM

Getting Started
**
Junior Member
64 posts

Joined: Sep 2013
From: Perak


QUOTE(wanek @ Aug 31 2019, 10:06 PM)
user posted image
*
bro follow step yang TS bagi ke atau follow dari OPENWRT punya instruction..

wanek
post Apr 15 2020, 04:10 PM

2 + 2 = 5
*****
Senior Member
760 posts

Joined: Jan 2003

QUOTE(Mushwashan @ Apr 13 2020, 08:09 PM)
bro follow step yang TS bagi ke atau follow dari OPENWRT punya instruction..
*
mana2 pun sama ? nape ?
Mushwashan
post Apr 16 2020, 01:36 AM

Getting Started
**
Junior Member
64 posts

Joined: Sep 2013
From: Perak


QUOTE(wanek @ Apr 15 2020, 04:10 PM)
mana2 pun sama ? nape ?
*
kalau dari openwrt punya dia "snapshot" xde gui .. tu yang pening
mcm mana nk download kalau detail ISP tak configure..

This post has been edited by Mushwashan: Apr 16 2020, 01:36 AM
wanek
post Apr 16 2020, 08:53 AM

2 + 2 = 5
*****
Senior Member
760 posts

Joined: Jan 2003

QUOTE(Mushwashan @ Apr 16 2020, 01:36 AM)
kalau dari openwrt punya dia "snapshot" xde gui .. tu yang pening
mcm mana nk download kalau detail ISP tak configure..
*
ko punya revision C2 jgk ke?
Mushwashan
post Apr 16 2020, 11:35 AM

Getting Started
**
Junior Member
64 posts

Joined: Sep 2013
From: Perak


QUOTE(wanek @ Apr 16 2020, 08:53 AM)
ko punya revision C2 jgk ke?
*
yup.. boleh kan. guna yg TS punya ade DVB punya tu,
https://forum.lowyat.net/index.php?showtopi...post&p=96304030

This post has been edited by Mushwashan: Apr 16 2020, 11:37 AM
wanek
post Apr 17 2020, 09:01 AM

2 + 2 = 5
*****
Senior Member
760 posts

Joined: Jan 2003

QUOTE(Mushwashan @ Apr 16 2020, 11:35 AM)
yup.. boleh kan. guna yg TS punya ade DVB punya tu,
https://forum.lowyat.net/index.php?showtopi...post&p=96304030
*
boleh.. senang jer..janji ko reti masuk recovery mode
Mushwashan
post Apr 17 2020, 08:15 PM

Getting Started
**
Junior Member
64 posts

Joined: Sep 2013
From: Perak


QUOTE(wanek @ Apr 17 2020, 09:01 AM)
boleh.. senang jer..janji ko reti masuk recovery mode
*
haa macam mana tu nak recovery mode..

bila dah recovery mode terus flash link TS tu betol??

2 Pages  1 2 >Top
 

Change to:
| Lo-Fi Version
0.0171sec    1.29    5 queries    GZIP Disabled
Time is now: 24th December 2025 - 09:55 PM