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.
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.
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