Building the closed source TBS DVB drivers for Ubuntu/Debian

This is a brief guide on how to download, compile and install the closed TBS drivers for Debian derivative linux distributions. These drivers are released by the manufacturer and contain closed source/proprietary code. We have a separate guide catering for the open source TBS drivers here.

Install the required tools

First we need to install some packages to enable us to build the drivers.

sudo apt-get install build-essential unzip
sudo apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')

or

sudo aptitude install build-essential unzip
sudo aptitude install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')

Grab the latest source code

The driver package names often change so visit the TBS website (www.tbsdtv.com/download) for the latest version. The version included below is current as of the publication of this guide (July 2016)

mkdir /tmp/tbs
cd /tmp/tbs
wget http://tbsdtv.com/download/document/common/tbs-linux-drivers_v160630.zip

Unzip the drivers

unzip tbs-linux-drivers_v160630.zip

Untar the driver package

tar xjvf linux-tbs-drivers.tar.bz2

Go into the driver directory

cd linux-tbs-drivers

Configure the build environment for the correct archicecture

./v4l/tbs-x86.sh

…for 32bit environments or…

./v4l/tbs-x86_64.sh

…for 64bit environments. Only run ONE of these commands.

Build the driver source

make -j 4

Assuming the drivers build correctly, you can install them using

sudo make install

Reboot to make the drivers take effect.

sudo shutdown -r now

If the modules error for some reason even after a reboot, it may be because there are other drivers clashing with the newly built/installed ones. The simply way to resolve this (providing you don’t have other vendors DVB cards in the same machine) is to;

sudo rm -rf /lib/modules/`uname -r`/kernel/drivers/media/*

…and then run…

sudo make install

…again from the source directory.

Posted in TVHeadend Tagged with: , , , , ,