Dvbhdhomerun SPK
Hi.
I'd like to request an SPK for the Dvbhdhomerun driver, as it's proven to be a nightmare for me to compile it on my Ubuntu machine, even though I'm following this tutorial: https://www.lonelycoder.com/redmine/boards/4/topics/3706?r=4330#message-4330.
What could be even cooler is, if a GUI could be made for tuning the device, not anything complicated, just so one woudn't have to open the scan tool via SSH afterwards.
Here's a thred on the QNAP forum discussing the QPKG virtualdj has made of Dvbhdhomerun for the QNAP NAS': http://forum.qnap.com/viewtopic.php?f=276&t=54068&start=165.
Thanks in advance, and keep up the good work.
Mikkel:-)
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
+1 for this!
I've tried to compile this on my Synology DS1512+ and DS209j but haven't had any luck. I installed the tvheadend package but can't use it due to not being able to figure out the HDHomeRun/dvbhdhomerun driver compile/install.
Spksrc doesn't support building kernel modules for now. This request is gonna be delayed until someone wants to add kernel building modules in spksrc.
Along with cross and native there could be a kernel-module directory.
Of course this would require to get the GPL source in sources directory.
Lot of work in the framework.
Well, I'm not that experienced in developing for *Nix-based systems, I'm professionally using high-level languages such as C#.Net for Windows, which is very different.
But I know for sure, that with the new DSM 4.1 Beta, they've first of all updated the kernel to 3.x.y.z, and they've also added native support for DVB, as their new Video Station app supports a few different DVB-T tunere.
I did an ls -l on /dev, before starting the Video Station app, and saw that the node /dev/dvb was present. Once you've started Video Station, it actually creates node /dev/dvb/adapter0 /dev/dvb/adapter1 /dev/dvb/adapter2, which seems to be the number of different tuners it currently supports.
Don't know if could be of any help compiling the SPK, that the required modules are already present?
Or if the modules could be prebuilt, and instead of linked to the make file, just hand copied?
Sorry if these questions are dumb, but as I said, I'm not that comfortable in this world yet, hope to be at some point:-)
Modules can be loaded dymically. That's what audio station does to recognize USB sound cards for example. I guess video station loads/unloads kernel modules at start/stop too.
I think we'll wait for the release of 4.1 to see if DSM includes the correct kernel modules :) That'd be great
@Diaoul I can confirm that it does, if I look at dmesg I can see that it loads a ton of different USB-DVB drivers, and then as soon as Video Station starts, it creates adpater node 0 through 2.
Unfortunately dmesg dosen't show Dvbhdhomerun, which is most likely because it's not a real driver, more a prxy for sending the different requests on to the userspace application that actually interfaces with the HDHomerun.
But it's definately an improvement:-)
Btw, great jo on the OSCam package. Now all I need is to compile an FTDI driver for my Phoenix reader, as the only prebuilt I could find was for the old 2.6.3.2 kernel.
Hdhomerun would be great! What is the timeframe for this? I am considering swithching to qnap since they have tvheadend and hdhomerun apps. Thanks for all the great work!
Well kernel modules aren't really my cup of tea so I would've to spend a huge amount of time in this. I don't have that much free time. Unless someone else is on it, i'd say a few months. Le 17 juil. 2012 08:32, "henningdalgaard" < [email protected]> a écrit :
Hdhomerun would be great! What is the timeframe for this? I am considering swithching to qnap since they have tvheadend and hdhomerun apps. Thanks for all the great work!
Reply to this email directly or view it on GitHub: https://github.com/SynoCommunity/spksrc/issues/161#issuecomment-7027755
@henningdalgaard I won't assign myself to this issue, as I'm not guaranteeing Ican get this thing working myself, but I'm on it. First is to get it to compile to start with, which currently isn't possible for me, as I have the new beta, with a newer kernel, and the GPL Source for that isn't released by Synology before it makes it out of beta.
But my plan is to compile this, get it running, and afterwards try and make it an SPK. I'll probably be doing the same for the USB to Serial driver needed for my Phoenix Smartmouse for OSCam.
The big question is, if I can figure out a way to circumvent the fact that Spksrc currently dosen't take the kernel parameter. If I can precompile the modules and just include them in some way, or easily modify the Spksrc tool.
The idea is to have spksrc handle the cross compilation of kernel modules itself, not include binaries built someplace else. Anyway, this could be a start :)
@sirgadget only the kernel for the high-end DS are upgraded to 3.2.11.
The Linux kernel has been updated to 3.2.11 on the following models: DS712+, DS1512+, DS1812+, DS3612xs, RS3412xs, RS3412RPxs, DS412+, RS812+, RS812RP+, RS2212+, RS2212RP+, RS3411xs, RS3411RPxs, RS2211+, RS2211RP+, DS3611xs, DS2411+, DS1511+, DS411+II, DS411+, DS810+, RS810RP+, DS1010+ and DS710+.
@Jeroenve Okay, but I have a DS1010+, which is a hign-end model, so nonetheless, I'm still waiting for the source:-)
Unless I can just download the kernel alone, but doubt it'll work only copying the configuration file needed for my DS, as I suspect Synology have done a lot more than just changing a config file.
@Diaoul Yeah, you gotta crawl before you can walk^^ I'll try and get it working. Currently this really issue with my ubuntu distro. For some reason whenever I run make on the Synology source (for DSM 4.0), it for some reason can not load all the utils in the compiler directory, only the compiler itself. This makes the Makefile fail miserably, and me not getting any binaries:-(
Though I do an ls -l on the folder, and verify they're all there, with same permissions, it just gives me an The file or directory could not be found.
And I'm stuck.
okay, so you think that at some point it will be possible to have tvheadend with hdhomerun on the synology (211+). And that my xbmc will be able to use that as a backend to whatch tv. I understand it is hard to predict, but do you think this will happen in 2012? Thanks again for all your great work
@henningdalgaard I already know of several people doing it right now. But they've all compiled the driver themselves, could possibly get one of them to realease their binaries, they're only a few kilobytes. But the cool thing would of course be to have them as an SPK, even cooler with a little interface for tuning, setting tuner type, etc.
Check this one http://forum.synology.com/enu/viewtopic.php?f=190&t=55075. It's work in progress and I can't find any kernel modules for x86 NAS's, the QNAP ones does not work (different kernel versions i guess).
I can personally vouch for the hdhomerun driver @tougher is referring to. I'm using it right now ;) And it has the feature to set the tuner too :)
@tougher I've tried and compiling the drivers both on my Ubuntu machine, and directly on my NA. Just realized today that I used the wrong toolchain, I'll try in couple with a different toolchain, and see if that solves the problem.
The issue isn't that kernels aren't compatible, itøs because the kernel modules should be 64-bit, while the userspace part is 32-bit, which results in an error.
I'll get back later.
@tougher Also, when you have a working spk, compatible with most variations of our NAS's, you really should add it to the SynoCommunity repo, it would be awesome to have it together, meaning anyone in here could also progress the development on the excellent spk you've created:-)
That's good thinking @sirgadget . Just me or is this tvheadend + hdhomerun only associated with Denmark ;) Wherever I look it's almost exclusively Danish guys trying to compile and create :)
another thing. I read that you @sirgadget tried to get xmltv "ontv" to work with the tvheadend. Did you succeed? I've tried all the same things as you but to no avail and tried a couple of other things. Right now it looks exactly what yours ls -l looks like with chown and chmod. I don't know what I did wrong but for a couple of minutes ago my var/log/messages says this: Aug 21 12:09:24 tvheadend[17229]: spawn: pid 17229 cannot execute /usr/local/bin/tv_grab_file -- Exec format error ? Have you ever seen that?
@sirgadget my package is still to unstable and does not support x86. If you manage to get working modules for your NAS (dvb_core.ko, dvb_hdhomerun_core.ko, dvb_hdhomerun_fe.ko and dvb_hdhomerun.ko), please let me know.