Do not plug in the stick at this stage

#We also want to remove apparmor as this could cause conflicts later on, want a real solution? Look at Grsecurity:
- Code: Select All Code
sudo service apparmor stop
sudo update-rc.d -f apparmor remove
sudo apt-get -y remove apparmor apparmor-utils

#setup the tools needed to build.
- Code: Select All Code
sudo apt-get install dkms build-essential linux-headers-$(uname -r)
sudo apt-get install patchutils libproc-processtable-perl build-essential git-core linux-headers-`uname -r`

#make our folders
- Code: Select All Code
mkdir ~/tbs_linux
cd ~/tbs_linux
Warning:
If you have at any point performed the following, remove as this will conflict with the build from tbsdtv
sudo git clone git://linuxtv.org/media_build.git
!NOTE!
Make sure you check this is the latest version of the driver pack from:
http://www.tbsdtv.com/download/
Look for TBS5220
You may then need to update the filename (tbs-linux-drivers_v150109.zip) as required.

#grab the drivers
- Code: Select All Code
cd ~/tbs_linux
wget http://www.tbsdtv.com/download/document/common/tbs-linux-drivers_v150109.zip
unzip tbs-linux-drivers_v150109.zip

#setup firmware
- Code: Select All Code
sudo mv -iv dvb-usb-tbsqbox-id5220.fw /lib/firmware/

#Build as follows
- Code: Select All Code
tar -jxvf linux-tbs-drivers.tar.bz2
cd linux-tbs-drivers
sudo su
./v4l/tbs-x86_64.sh
make
make install

#Plugin your usb stick and check we have everything working.
- Code: Select All Code
dmesg|grep dvb
You should see the following:
dvb-usb: TBS 5220 USB2.0 successfully initialized and connected.

