Ok, 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+
- Whilst I have tested that the patch compiles (it does) I have not tested it on my Pi. I finally have a working system and I don't want to jeopardise that. That being said, I see no reason why it shouldn't work as it has been created from my working sources, so the compiled kernel should be identical to what I have running.
- 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:
As to your other questions, I believe that the system knows that you have a custom kernel installed, so will not update it (assuming that you are using apt to update your system), although I am happy to be corrected on this.
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