Thanks a bunch Puffin Chunks,
With your excellent instructions I now have capture from two WinTV DualHD devices (ie. 4 tuners) running off my rpi3.
(Although I am using it as a mythtv backend - for now ;).
Works beautifully with my synology NAS (Maria dB on the NAS) and another rpi3 as frontend. The family loves it - much simpler, more power efficient and more reliable than my old setup.
Cheers - and many, many thanks.
Display MoreOk, I have created a patch for version 4.9.y for Rasperry Pi. Some notes for anyone looking to use this.
- This patch was created for my use only, anyone is free to use it, change it and amend it for reposting, but I will not troubleshoot or fix any issues anyone has. It has just been created from my amends to the 4.9 kernel to get dual tuner support working on an rPi Model B+
- This patch has been built, tested and confirmed working on a rPi Model B+ for Kernel 4.9.13
- Whilst this patch was compiled for a Model B+, I see no reason why it would not work on other models of Pi as the sources are the same.
- This adds support for DVB only! I am in the UK so do not have a need for ATSC nor have any means for testing it. The amended code for ATSC is in my patch, but it has been commented out and has not been tested. The source for lgdt3306a would need to be amended to get ATSC working and I have not touched this. So to reiterate ATSC will NOT work with this patch. Do not try it.
With that said, follow the instructions for compiling your own kernel as detailed in the Raspberry Pi documentation here: Kernel building - Raspberry Pi Documentation but make the following changes:
- When instructed to get the sources, use the following command instead to ensure that you grab the sources for the 4.9 kernel:
- Once you have retrieved the sources, but before running any other commands, grab my patch from here: hauppage_winTV_dualHD_DVB_PuffinChunks_4.9.y.diff - Google Drive and copy it one folder up from where you have downloaded the rpi kernel source (eg: if your source downloaded to /home/user/linux then copy the patch to /home/user)
- Enter the kernel source directory and apply the patch
The following output should tell you whether you've successfully applied the patch:- With the patch successfully applied to the source you can now continue to follow the instructions on the Raspberry Pi documentation. It is up to you whether you compile locally on the Pi or on a different machine. My advice is the latter as it takes just minutes, but can take many hours to compile on a Pi.
- Once compiled and installed on the Pi, don't forget to grab the firmware for the card from here: dvb-demod-si2168-b40-01.fw and copy it to your /lib/firmware folder on your Pi. You may still be missing some firmware. If this is the case, then I recommend getting CrazyCat's firmware tarball and just installing the whole lot, so you have all bases covered (dvb-firmwares.tar.bz2)
As to your other questions, be aware, an apt-get upgrade will update the kernel if a new one has been released for Raspbian, so you will want to suppress this from your updates to avoid overwriting your custom kernel.
The Raspberry Pi documentation will tell you how to either compile on your pi or on another system and transfer it over. As I stated above, I recommend cross-compiling on a different machine, but do whatever you feel most comfortable with, just be prepared for a long wait if compiling on the Pi.
If you run in to any issues, let me know, but I can't promise anything as I am by no means an expert!
Cheers