As always, this guide assumes SELinux is off and that you have installed all updates and rebooted into the latest kernel. I recently got a couple of HDHomerun devices. I set an HDHomerun Dual awhile back with TVHeadend. I just got a Prime and am setting it up with MythTV. This is a guide to what I had to do to get it going. It’s based off the guide here. First, you have to install some pre-requisites to build the dvbhdhomerun drivers.
yum -y install asciidoc binutils-devel cmake elfutils-devel gcc-c++ hdhomerun hdhomerun-devel kernel-devel newt-devel python-devel perl-ExtUtils-Embed redhat-rpm-config rpm-build zlib-devel xmlto hmaccalc bison pciutils-devel
Then, you should grab the source code from here. Next, run the following commands to download the kernel source and install it. Replace the kernel/linux directories and filenames to match the ones that you have.
yumdownloader --source kernel rpm -ivh kernel-$(uname -r).src.rpm cd ~/rpmbuild rpmbuild -bp --target $(arch) --rmsource --rmspec SPECS/kernel.spec cd BUILD/kernel-3.6.fc17/linux-3.6.9-2.fc17.x86_64 cp configs/kernel-3.6.9-x86_64.config .config
Now, in the directory that you are in,do a uname -a and copy the second dash to the end, then open the Makefile with vi or another editor and paste into the EXTRAVERSION line. My paste was “-2.fc17.x86_64”. Then do the next commands, changing the kernel to match your version.
make oldconfig cp /usr/src/kernels/3.6.9-2.fc17.x86_64/Module.symvers . make prepare scripts
Now, change back to the directory where you downloaded the dvbhdhomerun source package and run the following commands to unbundle it.
tar -xvzf dvbhdhomerun_0.0.11.tar.gz cd dvbhdhomerun-0.0.11/kernel/
Then, edit the Makefile in that directory with vi or whatever you prefer and change the KERNEL_DIR line to ~/rpmbuild/BUILD/kernel-3.6.fc17/linux-3.6.9-2.fc17.x86_64/ changing the kernel and linux versions to match your systems. Then run this to get to the next directory you need.
cd ../userhdhomerun/
Then edit CMakeLists.txt with vi or whatever and change SET(LIBHDHOMERUN_PATH /usr/lib/libhdhomerun) to SET(LIBHDHOMERUN_PATH /usr/include/hdhomerun)
Now, do the following to compile everything.
cd ../kernel/ && make && make install cp ../debian/dvbhdhomerun-utils.udev /etc/udev/rules.d/ systemctl restart udev.service modprobe dvb_hdhomerun cd ../userhdhomerun/ make make run
After the last command, you should see some lines that begin with Registered tuner, id from kernel: 0 name: that will indicate that the service found your HDHomerun devices. You can CTRL+C to stop this. Run the next line to install it.
make install
That should have all you need to get going. You will need whatever user you want to run the service as to be a member of the video group, ie mythtv user. You can start the daemon with the command line if you have a mythtv user.
/usr/local/bin/userhdhomerun -f -u mythtv
Sweet! Thanks a lot for sharing.
Just tried the corresponding procedure on Fedora 18 (3.8.3-201.fc18.x86_64). Ran through with just a few modifications: 1) needed to first install audit-libs-devel and pesign packages for the rpmbuild step to run, and 2) had to get newer sources to get around http://sourceforge.net/apps/trac/dvbhdhomerun/ticket/18. Finally, on Fedora 18 the command to restart udev I think would be ‘systemctl restart systemd-udevd.service’.
I’m running into the issue I believe that you had. Which package file did you end up compiling? I can’t get 0.0.15 to compile.
Nevermind, I found the CVS repo with the fix in there. Got it to compile, now can’t get it to modprobe. 🙂
It’d be awesome if someone made an rpm of this
I thought about doing that, but part of the issue is that a new RPM would have to be generated everytime a new kernel update was released. I might consider trying that at some point, but I would need a place to setup a repository that people could point to.
How much bandwidth do you think we’re talking about? I might be willing to host the rpm
I now have a VPS with some space up to build repos. I will try to work on building an RPM for this when I get time to go through the mess of rebuilding this.
THAT IS SO AWESOME! I can’t wait! I’ve been wanting to use my HDHOMERUN with Kaffiene and this would allow it to work.
I’ll try to get my spare HDHomerun Dual and an antenna and work on it tomorrow. I can’t take my Prime down as that is how we watch tv right now. This will be on Fedora 18 and not 17 since it is the latest version.
Okay, I built the preliminary RPMS for Fedora 18 against the latest kernel 3.9.2-200.fc18.x86_64. You have to be running this kernel 64-bit. You can grab the 3 RPMS needed at http://repos.servertoast.com/hdhomerun/
Did you get a chance to try out the RPMS I mentioned in the comments?
Yeah, I get the following error:
rpm -Uvh dvbhdhomerun-0.0.15-1.fc18.x86_64.rpm
Preparing… ################################# [100%]
Updating / installing…
1:dvbhdhomerun-0.0.15-1.fc18 ################################# [100%]
modprobe: FATAL: Module dvb_hdhomerun not found.
warning: %post(dvbhdhomerun-0.0.15-1.fc18.x86_64) scriptlet failed, exit status 1
Hmm, what do you get from “uname -a” ? I”m curious what kernel you are at.
Okay, I think I found the issues and fixed them. Try http://repos.servertoast.com/hdhomerun/dvbhdhomerun-0.0.15-4.fc18.x86_64.rpm now.
If you upgrade to Fedora 19, please try out the new RPMs I built for it. I put the information in a new post. They added the dvb drivers into the kernel on 19, and it makes it compile a lot nicer and easier.
Im having the same issues.
[atlantageek@atlantageek-desktop ~]$ sudo rpm -ivh dvbhdhomerun-0.0.15-4.fc18.x86_64.rpm
Preparing… ################################# [100%]
Updating / installing…
1:dvbhdhomerun-0.0.15-4.fc18 ################################# [100%]
FATAL: Module dvb_hdhomerun not found.
[atlantageek@atlantageek-desktop ~]$ uname -a
Linux atlantageek-desktop 3.9.4-200.fc18.x86_64 #1 SMP Fri May 24 20:10:49 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Looks like there is a newer kernel. I will need to rebuild it against the newer kernel. I will try to do that this week.
I tried the build from source but the modprobe failed. Any suggestions there?
Okay, I rebuilt against the latest kernel. New RPM is http://repos.servertoast.com/hdhomerun/fc18/dvbhdhomerun-3.9.4-200.fc18.x86_64.rpm
Also, the Source RPM is now up at http://repos.servertoast.com/hdhomerun/SRPMS/dvbhdhomerun-3.9.4-200.fc18.src.rpm
One thing with the Source RPM is that I already did the make part in the kernel folder, if you want to fully rebuild it from source, you will need to do “yumdownloader –source kernel” and “rpm -ivh kernel*”
Hey, if you upgrade to Fedora 19 and get a chance, can you try out the RPMs I built for dvbhdhomerun? I created a new post for that with the instructions. It actually works a lot better now since they added the dvb drivers into the Fedora kernel.
On fedora 18 to restart udev.service you do the following.
systemctl restart systemd-udevd.service