Project

General

Profile

GoodKernelAndDriver » History » Version 6

Paul M, 2018-09-08 14:49

1 6 Paul M
Also see [[DVBCards]]
2
3
4 1 Paul M
h1. Known Good Kernel And Driver Combinations
5
6
TV Headend is entirely dependent on a reliable combination of a kernel, drivers and hardware. In order to help people set up their server, this page will provide a list of combinations that people have found to work.
7
8
9
10
h2. TBS 6982 DVB-S/S2, Kernel 4.8.0, on Ubuntu 16.04-LTS
11
12 2 Paul M
This combination of kernel and drivers was found to be stable:
13
* Ubuntu: 16.04.5-LTS
14
* kernel: 4.8.0-58-lowlatency
15
* drivers: tbs-linux-drivers_v170330.zip
16
* TV Headend: 4.3-1292~g9b9ee68~xenial
17
18 1 Paul M
The key factor in making the TBS card work was to ensure MSI Interrupts were enabled when the kernel module loads.
19
20 5 Paul M
<notextile>Firstly, use "dpkg -l | grep linux-" to list the linux kernel and associated packages.
21 2 Paul M
Use "dpkg -r" to remove kernel packages, and use "dpkg -P" to then purge everything. Check /boot remove any left over vmlinux and init.rd files etc; then likewise clean out /lib/modules. DO NOT REBOOT at any time when you have no kernel installed!
22
23 5 Paul M
Then install the kernel and associated packages, to get to the following state</notextile>
24 2 Paul M
<pre>
25
ii  linux-headers-4.8.0-58                 4.8.0-58.63~16.04.1                        all          Header files related to Linux kernel version 4.8.0
26
ii  linux-headers-4.8.0-58-lowlatency      4.8.0-58.63~16.04.1                        amd64        Linux kernel headers for version 4.8.0 on 64 bit x86 SMP
27
ii  linux-hwe-tools-4.8.0-58               4.8.0-58.63~16.04.1                        amd64        Linux kernel version specific tools for version 4.8.0-58
28
ii  linux-image-4.8.0-58-lowlatency        4.8.0-58.63~16.04.1                        amd64        Linux kernel image for version 4.8.0 on 64 bit x86 SMP
29
ii  linux-signed-image-4.8.0-58-lowlatency 4.8.0-58.63~16.04.1                        amd64        Signed kernel image lowlatency
30
ii  linux-tools-4.8.0-58-lowlatency        4.8.0-58.63~16.04.1                        amd64        Linux kernel version specific tools for version 4.8.0-58
31
</pre>
32
33
34
Then install the driver supplied by TBS. Create a script containing this:
35
<pre>
36
#!/bin/bash
37
38
#VER="180822"
39
#ZIPFILE="tbs-open-linux-drivers_v$VER.zip"
40
#TARFILE=media_build-2018-0822.tar.bz2
41
42
VER="170330"
43
ZIPFILE="tbs-linux-drivers_v170330.zip"
44
TARFILE=linux-tbs-drivers.tar.bz2
45
46
DIR=/home/build
47
mkdir -p "$DIR"
48
cd "$DIR"
49
50
if [ ! -f "$ZIPFILE" ] ; then
51
       wget "https://www.tbsiptv.com/download/common/$ZIPFILE"
52
fi
53
54
mkdir -p "$DIR/tbs_$VER"
55
cd "$DIR/tbs_$VER"
56
57
pwd
58
ls -la "../$ZIPFILE"
59
unzip "../$ZIPFILE"
60
61
tar jxvf "$TARFILE"
62
cd linux-tbs-drivers  
63
./v4l/tbs-x86_64.sh  
64
make -j4  
65
make install
66
</pre>
67
68
And execute it. 
69
70
Finally, set the driver to use MSI Interrupts by creating a file called "/etc/modprobe.d/tbs.conf" containing these lines:
71
<pre>
72
options tbs_pcie-dvb tbs_int_type=1
73
options saa716x_tbs-dvb int_type=1
74
</pre>
75
76
It should now be possible to reboot your computer. Afterwards, check the kernel module is loaded thus:
77
<pre>$ lsmod | egrep "saa|dvb"
78
saa716x_tbs_dvb        77824  0
79
</pre>
80
81
And check that the interrupts are MSI by checking the /proc/interrupts, like this:
82
<pre>
83
$ egrep -i "saa|dvb" /proc/interrupts  
84
31:      29757          0          0          0   PCI-MSI 1572864-edge      SAA716x Core
85
</pre>
86
87
Also see this:
88 1 Paul M
https://tvheadend.org/boards/5/topics/32496?r=34042#message-34042