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