HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167) +---- Forum: Tvheadend (https://forum.kodi.tv/forumdisplay.php?fid=168) +---- Thread: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS (/showthread.php?tid=141981) |
HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - hoontune - 2012-10-04 This is how I got Tvheadend & a HDHomerun working on a Synology NAS DS210j (ARM based) First you need to install the correct bootstrap for your device, if you haven't already Code: cd /volume1/@tmp Now you need a few dependancies Code: ipkg update Now you can download the Tvheadend source Code: mkdir -p /opt/tvheadend you then need to update a few libraries Code: cp /opt/arm-none-linux-gnueabi/lib/libpthread-2.5.so /opt/arm-none-linux-gnueabi/lib/libpthread-2.5.so.bk compile time Code: export CC=gcc setup a directory to hold config data Code: mkdir /opt/tvh_dvrconfig_xbmc Code: /opt/tvheadend/bin/tvheadend start -C -u hts -g video -c /opt/tvh_dvrconfig_xbmc Step 2: hdhomerun - hoontune - 2012-10-04 The driver for the hdhomerun comes from http://sourceforge.net/projects/dvbhdhomerun/ I've compiled it, and have included the files here Edit 2014-FEB-07: link to redmine forum no longer works, reposted links on page 8 here HDHomerun modules Code: mkdir /opt/dvb_native and copy the .ko files into /opt/dvb_native next download the two start scripts and copy them into the /opt directory Code: cd /opt the startup script start_homerun looks like this Code: # Load Core modules you can start it with the script Code: /opt/start_homerun last thing is just a startup script for Tvheadend Code: TVHROOT="/opt/tvheadend" When the system starts, the hdhomerun script needs to run first, then the Tvheadend RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - pvautrin - 2012-10-05 If you want to install tvh 3.2 beta directly from the Syno GUI, Diaoul from http://www.synocommunity.com/ has packaged version 3.2~git20120927-1 a few days ago RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - 321liftoff - 2012-10-09 Glad you got it all running on your Synology. I noticed a typo in your startup script for Tvheadend: the username for the non-forked cmd is "bts", but I think you mean "hts"? RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - schumi2004 - 2012-12-18 If you want the latest TVH then bootstrap and compile it on your Synology is the only way to go. Since for latest TVH you need GCC 4.3 or higher and Synology's toolchain only supports GCC 4.2.1 for now. Synology support tells me they will be updating GCC in toolchain but not before DSM 5 RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - opdenkamp - 2012-12-18 stickied RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - seamus5 - 2013-01-20 Anyone successfully done this on one of the x86 CPUs? RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - Z3rO - 2013-01-30 (2013-01-20, 01:12)seamus5 Wrote: Anyone successfully done this on one of the x86 CPUs? I tried to and failed miserably using a DS1511+. You need a newer gcc (4.3 upwards I think) to compile the newest tvheadend. Since ipkg only provides 4.2 I tried to compile gcc 4.7 on the DS which resulted in errors I couldn't resolve. RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - javamarket - 2013-02-06 Me too, as in ultimate failure sadly. RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - seamus5 - 2013-02-06 (2013-02-06, 03:33)javamarket Wrote: Me too, as in ultimate failure sadly. It's a real shame as TVheadend on a Synology NAS would make a great backend. It could almost be worth trading out my DS412+ for an ARM cpu version just for this. I guess we can only hope that someone with a little more skill and determination than ourselves is willing to take up the challenge! RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - Prof Yaffle - 2013-02-06 Since I'm staring at my overflowing 211+ at the moment, wondering what to do next - and weighing up the power management and usability of a bigger Synology box versus a DIY Linux server - this thread caught my eye. For those of you with x86 Synologies - is the tvheadend spk package in the synocommunity repository? I assume that your concern is a self-build to 3.3.x/git in preference to taking the "old" 3.2.18, or waiting for a pre-built 3.4 to arrive when it's release, yes? And does anyone have a PPC Synology? Is the 3.2.18 package available (specifically for the QorIQ architecture in the PPC DSx13 series), or has anyone tried to roll their own with any more success than the Atom crew here have had? Thanks... EDIT Or, another thought for anyone - have you tried installing Debian chroot, and running tvheadend (and anything else you need) in that? Yes, it'll have a performance hit on the box, so I don't know if it's viable, but that'd give you much more flexibility on gcc, library versions, etc. RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - javamarket - 2013-02-06 My issue is the ability to add a HDHomerun Prime device to the mix. TVHeadend is available from SynoCommunity and seems to work with the SynoNAS. I have an x86 713+ and already realize I should have bought his big brother so I feel you pain @Prof Yaffle. The 5 week old 713+ goes on Ebay as soon as the 1512+ is set up. This speaks volumes to how much I actually love this unit. So to clarify, I'm unable to build the dvbhdhomerun drivers on the x64 unit. I tried to "cheat" by installing DVBLogic server backend (which does a fine job of detecting the HDHR Prime). The issue there is their solution is not yet really ready for QAM which with Verizon & Cablecard is what I need. I was hoping that removing the DVBLogic backend and reinstalling TVHE would allow detecting the HDHR Prime, unfortunately no such luck. RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - seamus5 - 2013-02-07 (2013-02-06, 19:47)Prof Yaffle Wrote: Since I'm staring at my overflowing 211+ at the moment, wondering what to do next - and weighing up the power management and usability of a bigger Synology box versus a DIY Linux server - this thread caught my eye. TVheadend is available as a package from synocommunity. Current version is 3.2.18-4. I have an DS412+ (Atom CPU) and I presume it is also available for ARM, but can't confirm. Current concerns are the lack of a dvbhomerun driver to run hdhomerun TVheadend on the synology x86 NAS. There seems to be a few success stories for ARM cpus, but nothing for x86 as yet. RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - Prof Yaffle - 2013-02-07 Hmmm, my previous reply seems to have disappeared somewhere... try again...! Thanks, Seamus5 - so that's x86 and ARM confirmed (I can confirm that one), for pre-built tvheadend itself at least. Sadly, it looks like the PPC DSx13 range is a dead end for all of this, since ipkg support is seemingly poor plus there's a delay while the synocommunity packages are ported (lack of QorIQ architecture source code from Synology, plus toolchain and library support). Shame, they'd be nice boxes, but it seems all they can do is what Synology intended, for the moment at least. Cheers... RE: HOW-TO Compile Tvheadend & HDHomerun on Synology NAS - acmyo - 2013-02-12 (2013-02-06, 14:23)seamus5 Wrote:(2013-02-06, 03:33)javamarket Wrote: Me too, as in ultimate failure sadly. Challenge accepted. Checkout the following tvheadend fork and give it a whirl: Code: git clone https://github.com/acmyo/tvheadend.git If you have any build issues, please attach the output of this command into the thread through pastebin: Code: make -k I am able to successfully build tvheadend with gcc 4.2.1 and gcc 4.1.2. However, I do not have a Synology NAS so there may be other issues I'm unaware of. I have submitted a pull request to the developer, hopefully this gets merged in shortly. |