• 1
  • 21
  • 22
  • 23(current)
  • 24
  • 25
  • 35
HOW-TO Compile Tvheadend & HDHomerun on Synology NAS
Anyone here manage to get TVHeadend working with a HDHomerun on DSM 5?
Reply
Sad 
@hoontune or somebody else.

I try to follow you exellent guide but the problem is that I have homerun with 4 DVB-C tuner (latest one). After read your guide and script. I just thougt ok add to extra tuners and it should work..but no did not...als the SPK build does not work it even give troubles to my DS213. I even need to do a Fsck to have correct reboot again..otherwise is will be stuck and I need to power it of before it has restart.

But when start up my script I get the following message's:
Code:
insmod: can't insert '/opt/dvb_native/dvb-core.ko': File exists
insmod: can't insert '/opt/dvb_native/dvb_hdhomerun_core.ko': File exists
insmod: can't insert '/opt/dvb_native/dvb_hdhomerun.ko': File exists
insmod: can't insert '/opt/dvb_native/dvb_hdhomerun_fe.ko': File exists
making node hdhomerun_control 57
mknod: `/dev/hdhomerun_control': File exists
./start_homerun.txt: line 30: /opt/dvbhdhomerun/userhdhomerun/build/userhdhomerun: not found
Creating DVB device nodes to major device #212...
cut: /sys/class/dvb/dvb0.frontend0/dev: No such file or directory
mknod: missing operand after `212'
Try `mknod --help' for more information.
cut: /sys/class/dvb/dvb0.demux0/dev: No such file or directory
mknod: missing operand after `212'
Try `mknod --help' for more information.
cut: /sys/class/dvb/dvb0.dvr0/dev: No such file or directory
mknod: missing operand after `212'
Try `mknod --help' for more information.
cut: /sys/class/dvb/dvb1.frontend0/dev: No such file or directory
mknod: missing operand after `212'
Try `mknod --help' for more information.
cut: /sys/class/dvb/dvb1.demux0/dev: No such file or directory
mknod: missing operand after `212'
Try `mknod --help' for more information.
cut: /sys/class/dvb/dvb1.dvr0/dev: No such file or directory
mknod: missing operand after `212'
Try `mknod --help' for more information.
cut: /sys/class/dvb/dvb2.frontend0/dev: No such file or directory
mknod: missing operand after `212'
Try `mknod --help' for more information.
cut: /sys/class/dvb/dvb2.demux0/dev: No such file or directory
mknod: missing operand after `212'
Try `mknod --help' for more information.
cut: /sys/class/dvb/dvb2.dvr0/dev: No such file or directory
mknod: missing operand after `212'
Try `mknod --help' for more information.
cut: /sys/class/dvb/dvb3.frontend0/dev: No such file or directory
mknod: missing operand after `212'
Try `mknod --help' for more information.
cut: /sys/class/dvb/dvb3.demux0/dev: No such file or directory
mknod: missing operand after `212'
Try `mknod --help' for more information.
cut: /sys/class/dvb/dvb3.dvr0/dev: No such file or directory
mknod: missing operand after `212'
Try `mknod --help' for more information.

This my script is:
Code:
# Load Core modules
#
insmod /opt/dvb_native/dvb-core.ko
insmod /opt/dvb_native/dvb_hdhomerun_core.ko
#
# Load BE & FE modules
#
insmod /opt/dvb_native/dvb_hdhomerun.ko
insmod /opt/dvb_native/dvb_hdhomerun_fe.ko
#
#lsmod to check if everything is running
#grep -i dvb /proc/devices
#
DYNAMIC_ID=$(grep hdhomerun_control /proc/misc | awk "{print \$1}")
if [ "$DYNAMIC_ID" != "" ]; then
  echo "making node hdhomerun_control" $DYNAMIC_ID
  mknod /dev/hdhomerun_control c 10 $DYNAMIC_ID
else
  echo "Unable to detect hdhomerun_control inside /proc/misc."
fi
# Set permissions
chmod 666 /dev/hdhomerun_control
chown root:root /dev/hdhomerun_control
#
# Clear userhdhomerun log
rm -f "/opt/dvbhdhomerun/dvbhdhomerun.log"
#
# Run userhdhomerun with LD_PRELOAD
/opt/dvbhdhomerun/userhdhomerun/build/userhdhomerun \
        -f -u root -g root -l "/opt/dvbhdhomerun/dvbhdhomerun.log"
#
sleep 1
#
# Retrieve the major device number for DVB
# (normally it should be 212)
DYNAMIC_ID=$(grep DVB /proc/devices | awk "{print \$1}")
if [ "$DYNAMIC_ID" != "" ]; then
        echo "Creating DVB device nodes to major device #$DYNAMIC_ID..."

        # Create device nodes for DVB
        mkdir -p /dev/dvb/adapter0
        DYNAMIC_ID2=$(cut -f2 -d':' /sys/class/dvb/dvb0.frontend0/dev)
        mknod /dev/dvb/adapter0/frontend0 c $DYNAMIC_ID $DYNAMIC_ID2
        DYNAMIC_ID2=$(cut -f2 -d':' /sys/class/dvb/dvb0.demux0/dev)
        mknod /dev/dvb/adapter0/demux0 c $DYNAMIC_ID $DYNAMIC_ID2
        DYNAMIC_ID2=$(cut -f2 -d':' /sys/class/dvb/dvb0.dvr0/dev)
        mknod /dev/dvb/adapter0/dvr0 c $DYNAMIC_ID $DYNAMIC_ID2

        mkdir -p /dev/dvb/adapter1
        DYNAMIC_ID2=$(cut -f2 -d':' /sys/class/dvb/dvb1.frontend0/dev)
        mknod /dev/dvb/adapter1/frontend0 c $DYNAMIC_ID $DYNAMIC_ID2
        DYNAMIC_ID2=$(cut -f2 -d':' /sys/class/dvb/dvb1.demux0/dev)
        mknod /dev/dvb/adapter1/demux0 c $DYNAMIC_ID $DYNAMIC_ID2
        DYNAMIC_ID2=$(cut -f2 -d':' /sys/class/dvb/dvb1.dvr0/dev)
        mknod /dev/dvb/adapter1/dvr0 c $DYNAMIC_ID $DYNAMIC_ID2
        
        mkdir -p /dev/dvb/adapter2
        DYNAMIC_ID2=$(cut -f2 -d':' /sys/class/dvb/dvb2.frontend0/dev)
        mknod /dev/dvb/adapter2/frontend0 c $DYNAMIC_ID $DYNAMIC_ID2
        DYNAMIC_ID2=$(cut -f2 -d':' /sys/class/dvb/dvb2.demux0/dev)
        mknod /dev/dvb/adapter2/demux0 c $DYNAMIC_ID $DYNAMIC_ID2
        DYNAMIC_ID2=$(cut -f2 -d':' /sys/class/dvb/dvb2.dvr0/dev)
        mknod /dev/dvb/adapter2/dvr0 c $DYNAMIC_ID $DYNAMIC_ID2
        
        mkdir -p /dev/dvb/adapter3
        DYNAMIC_ID2=$(cut -f2 -d':' /sys/class/dvb/dvb3.frontend0/dev)
        mknod /dev/dvb/adapter3/frontend0 c $DYNAMIC_ID $DYNAMIC_ID2
        DYNAMIC_ID2=$(cut -f2 -d':' /sys/class/dvb/dvb3.demux0/dev)
        mknod /dev/dvb/adapter3/demux0 c $DYNAMIC_ID $DYNAMIC_ID2
        DYNAMIC_ID2=$(cut -f2 -d':' /sys/class/dvb/dvb3.dvr0/dev)
        mknod /dev/dvb/adapter3/dvr0 c $DYNAMIC_ID $DYNAMIC_ID2

        # Set permissions
        chmod 755 /dev/dvb/adapter*
        chmod 666 /dev/dvb/adapter*/*
        chown root:users /dev/dvb/adapter*/*
else
        echo "ERROR: Unable to detect DVB inside /proc/devices; dvb-core.k$"
        exit 10
fi

I'm struggeling for serveral day now to get it working on mij Synology DS213...But until now did not succeedSadSad

I did manage to get the config working on my PI ...but that one is not strong enough to support back-end and frontend..

I really hope that somebody can help me out
Reply
I do not what to sound impactions, but if anybody could give me hint that would be great thx.
Reply
(2014-03-24, 14:43)gebruikerh Wrote: I do not what to sound impactions, but if anybody could give me hint that would be great thx.

Why so complicated?
You have a DS213, right? DS213 is ARM based http://forum.synology.com/wiki/index.php...y_NAS_have
Get package here http://forum.synology.com/enu/viewtopic....90&t=55075

Don't even try to use it with DSM5 because that doesn't work, downgrade to 4.3 instead.
Reply
I'm wondering, does the HDHomeRun SPK/Driver work with all ARM models? Even the newest ones, like the Marvell Armada 370, XP and so on?
I have an Intel Syno that unfortunately is not supported but I could go for one of the newest ARM models if those were supported (in DSM4.3 of course)
Reply
Hi Schumi, as I also tried to explain in your mentioned tread...The package is not working correct for my HDhomerun. Altough I have DS213 and 4.3.

The package is made for two tuner solution and I have the "new" 4 tuner solution. Also it creates a DVB-T instead DVB-C... and changing the info fill where is mentioned the needed DVB-C give instabel system also the script give not the correct out put, so that why I did try to make it my selve. If you have any idea that would be great.



@samukas no idea it seems to work for many people on ARM and I have seen DS212,DS213 etc mentioned. but could be a trail and error solution.
Reply
(2014-03-24, 15:36)gebruikerh Wrote: Hi Schumi, as I also tried to explain in your mentioned tread...The package is not working correct for my HDhomerun. Altough I have DS213 and 4.3.

The package is made for two tuner solution and I have the "new" 4 tuner solution. Also it creates a DVB-T instead DVB-C... and changing the info fill where is mentioned the needed DVB-C give instabel system also the script give not the correct out put, so that why I did try to make it my selve. If you have any idea that would be great.



@samukas no idea it seems to work for many people on ARM and I have seen DS212,DS213 etc mentioned. but could be a trail and error solution.
I did miss that part were you say it is compiled for dual tuners only, sorry.
Does your tuner have newer or different drivers that you know off?
Reply
Schumi no probs and thanks for your reply.

I far as I can see there is no driver difference for HDHR3-EU only fireware but one is up to date. But if I install the SPK even the 1.5 version and select DVB-C. I get only two DVB-T devices. Confused

Changing the config file to DVB-C will no do the job, because I will get two DVB-C(which are not working and not stabel). So that I tought maybe if could so the latest file here put it into the mentioned script add two extra device it could work...but after 3 day's struggeling and even re-installing DSM because somehow it got instabel after installing de SPK. (would not reboot any more. only hard reset). And two day complening (i m not an expert) I'm no out of idea and looking for some helpSmile
Reply
@Smiggel and others who have HDHR.


Now available DVBLink HDHR driver for 5.0.

If you have time - do the following:

1. Remove VideoStation.

2. Remove Tvheadend.

3. Install DSM 5.0

4. Install DVBLink tvserver with trial license.

do not adjust, reboot. Ensure that DVBLink works, install tvh and check its working. If all goes well - I can make a separate package just for HDHR, how I did it for my S2 SkyStar.
Reply
thanks Aisman. I will give it a try...only problem is that I know that I already have used the trail license from DVBlink...but maybe I'm lucky this time.

But I will let you know the outcome. If you could make package I will be very happy
Reply
(2014-03-24, 19:25)aisman Wrote: @Smiggel and others who have HDHR.


Now available DVBLink HDHR driver for 5.0.

If you have time - do the following:

1. Remove VideoStation.

2. Remove Tvheadend.

3. Install DSM 5.0

4. Install DVBLink tvserver with trial license.

do not adjust, reboot. Ensure that DVBLink works, install tvh and check its working. If all goes well - I can make a separate package just for HDHR, how I did it for my S2 SkyStar.

Cool. Thanks for the tip. Looking forward to the outcome of gebruikerh to see if this is working. Would be great! :-)
Reply
Sorry guy's I could not get it to work..

Followd the instructions above.

Delete Thv, Videostation
Update to DSM 5.0
Installed DVBlink server including add for homerun in trail version
Reboot.
Went to DVBlink did ad device and channel check..everthing did work could even see channels
Installed TvH for Syncomm.....but no Homerun there ...
Tried an other reboot but no luck...
To check installed video station and there the Homerun is visible with all his tuners...

But in TvH no luck...So maybe if somebody can homewho get the driver from DVBlink it could work but for me it no go now...I will go back to my laptop met XBMC, Thv,homerun and Oscam for now as that one works...but it not what I wanted in the end.
Reply
(2014-03-25, 10:03)gebruikerh Wrote: Sorry guy's I could not get it to work..

Followd the instructions above.

Delete Thv, Videostation
Update to DSM 5.0
Installed DVBlink server including add for homerun in trail version
Reboot.
Went to DVBlink did ad device and channel check..everthing did work could even see channels
Installed TvH for Syncomm.....but no Homerun there ...
Tried an other reboot but no luck...
To check installed video station and there the Homerun is visible with all his tuners...

But in TvH no luck...So maybe if somebody can homewho get the driver from DVBlink it could work but for me it no go now...I will go back to my laptop met XBMC, Thv,homerun and Oscam for now as that one works...but it not what I wanted in the end.

That is really too bad. Thanks for trying though!
Reply
@gebruikerhok at dsm 5.0 and @Smiggel at 4.3, please type in terminal:

dmesg | grep dvb

and paste what you see. Thank you. Is not all that bad! Smile
Reply
Replaced my device id with *'s. I was not sure it is safe to post it online. :-) This is the outcome.

[ 235.180000] hdhomerun: creating dvb device for ********-0
[ 235.370000] hdhomerun: creating dvb device for ********-1
[2546168.890000] Em28xx: Initialized (Em28xx dvb Extension) extension
[2546169.470000] dvb_usb: Unknown symbol dvb_dmx_swfilter_raw
[2546169.680000] dvb_usb_ttusb2: Unknown symbol dvb_usb_generic_rw
[2546169.680000] dvb_usb_ttusb2: Unknown symbol dvb_usb_device_init
[2546169.690000] dvb_usb_ttusb2: Unknown symbol dvb_usb_device_exit
[2546171.040000] dvb_usb_dib0700: Unknown symbol dvb_usb_get_hexline
[2546171.060000] dvb_usb_dib0700: Unknown symbol dvb_usb_device_init
[2546171.070000] dvb_usb_dib0700: Unknown symbol dvb_usb_device_exit
[2546171.990000] dvb_usb_dw2102: Unknown symbol dvb_usb_generic_rw
[2546171.990000] dvb_usb_dw2102: Unknown symbol dvb_usb_device_init
[2546172.000000] dvb_usb_dw2102: Unknown symbol dvb_usb_device_exit
[2546172.740000] dvb_usb_pctv452e: Unknown symbol dvb_usb_generic_rw
[2546172.750000] dvb_usb_pctv452e: Unknown symbol dvb_usb_device_init
[2546172.760000] dvb_usb_pctv452e: Unknown symbol dvb_usb_device_exit
[2546173.170000] dvb_usb_tbsqbox2ci: Unknown symbol dvb_usb_device_init
[2546173.180000] dvb_usb_tbsqbox2ci: Unknown symbol dvb_usb_device_exit
[2546173.460000] dvb_usb_tbsdvbc: Unknown symbol dvb_usb_device_init
[2546173.470000] dvb_usb_tbsdvbc: Unknown symbol dvb_usb_device_exit
[2546173.540000] dvb_usb_tbs5680: Unknown symbol dvb_usb_device_init
[2546173.550000] dvb_usb_tbs5680: Unknown symbol dvb_usb_device_exit
[2546173.730000] dvb_usb_tbsqbox22: Unknown symbol dvb_usb_device_init
[2546173.730000] dvb_usb_tbsqbox22: Unknown symbol dvb_usb_device_exit
[2548208.130000] dvb_usb: Unknown symbol dvb_dmx_swfilter_raw
[2548208.320000] dvb_usb_ttusb2: Unknown symbol dvb_usb_generic_rw
[2548208.330000] dvb_usb_ttusb2: Unknown symbol dvb_usb_device_init
[2548208.340000] dvb_usb_ttusb2: Unknown symbol dvb_usb_device_exit
[2548208.780000] dvb_usb_dib0700: Unknown symbol dvb_usb_get_hexline
[2548208.800000] dvb_usb_dib0700: Unknown symbol dvb_usb_device_init
[2548208.800000] dvb_usb_dib0700: Unknown symbol dvb_usb_device_exit
[2548209.100000] dvb_usb_dw2102: Unknown symbol dvb_usb_generic_rw
[2548209.110000] dvb_usb_dw2102: Unknown symbol dvb_usb_device_init
[2548209.110000] dvb_usb_dw2102: Unknown symbol dvb_usb_device_exit
[2548209.270000] dvb_usb_pctv452e: Unknown symbol dvb_usb_generic_rw
[2548209.270000] dvb_usb_pctv452e: Unknown symbol dvb_usb_device_init
[2548209.280000] dvb_usb_pctv452e: Unknown symbol dvb_usb_device_exit
[2548209.360000] dvb_usb_tbsqbox2ci: Unknown symbol dvb_usb_device_init
[2548209.370000] dvb_usb_tbsqbox2ci: Unknown symbol dvb_usb_device_exit
[2548209.590000] dvb_usb_tbsdvbc: Unknown symbol dvb_usb_device_init
[2548209.590000] dvb_usb_tbsdvbc: Unknown symbol dvb_usb_device_exit
[2548209.820000] dvb_usb_tbs5680: Unknown symbol dvb_usb_device_init
[2548209.830000] dvb_usb_tbs5680: Unknown symbol dvb_usb_device_exit
[2548210.040000] dvb_usb_tbsqbox22: Unknown symbol dvb_usb_device_init
[2548210.050000] dvb_usb_tbsqbox22: Unknown symbol dvb_usb_device_exit
[2744476.250000] hdhomerun: creating dvb device for ********-0
[2744476.260000] hdhomerun: dvb device for this tuner already exists, ignore request ********-0
[2744476.300000] hdhomerun: creating dvb device for ********-1
[2744476.310000] hdhomerun: dvb device for this tuner already exists, ignore request ********-1
Reply
  • 1
  • 21
  • 22
  • 23(current)
  • 24
  • 25
  • 35

Logout Mark Read Team Forum Stats Members Help
HOW-TO Compile Tvheadend & HDHomerun on Synology NAS1