TBS6985 driver patch help

  • Hello, I am new here, also i would like to install the drivers for TBS6985 card, it is old pcie card based on SAA716x chip.

    I have build environment, and build librelec from source successfully without any modification.

    It tried to search how to create the patch file but with no luck to fully understand.


    Thanks for your help

  • I don't know if this will help or not, because I use these drivers with Tvheadend on a separate system, that is running on Ubuntu Server. So this is how I build the drivers in Ubuntu, which may or may not work with LibreELEC. I suspect at the very least it will require some modification, or may not be applicable at all - you are talking about a patch file and I am not sure exactly what you are referring to. But anyway this is the script I have to run (using sudo) every time there is a Ubuntu kernel update:

    Note the script backs up the current media and media_build directories before replacing them, just in case you might need them for some reason. I don't know why you would since they will no longer work after a kernel update but I just like the security of not totally blowing them away. If the make -j4 fails try just make, it will be slower but it may succeed. And, don't be surprised if you see a lot of error messages fly by, that Git archive must contain drivers for every device ever made by TBS and possibly a few related companies, and many of those drivers appear to be old and unsupported so they throw a lot of warnings and errors, but as long as the drivers for your TBS6985 card build correctly that's all that is necessary (and I do have a TBS6985 card, and it works for me). I have found that it's best to just go do something else while the script runs, if it makes it to the "Reboot (y/N)?" prompt you should be good to go after a reboot, but if you sit and watch it run you will swear it's never going to succeed with all the errors and warnings it throws.

    Oh, and one other word of advice, if you find the card is flaky or that recordings fail part way through, it may be it is sharing interrupts (IRQs) with another device and that will cause all kinds of issues with that card. LibreELEC may take steps to make sure that doesn't happen, but in case they don't see this article: Do you run one or more TBS PCIe cards under Linux? Check your IRQs…

    Hope this helps!