I don't know why they are telling you to do sudo rm -rf /lib/modules/`uname -r`/kernel/drivers/media/ - that seems very wrong, and I have never had to do that.
I think maybe you are not using sudo when building your drivers.
The instructions I have used in the past, which are no longer online, go like this (I have added a few comments inbold):
Go to TVHEADENDMIGRATIONSTART90490a2a63a446e09b65c079f826b2daTVHEADENDMIGRATIONEND and find the latest Linux drivers for your card. Right click the download link and copy the link location. Then from your Linux command prompt:
mkdir driver
cd driver
wget
http://www.tbsiptv.com/download/common/tbs-linux-drivers_v170330.zip(use the driver link you just copied)
unzip tbs-linux-drivers_v170330.zip
(use the filename of the file you just downloaded)
tar xjvf linux-tbs-drivers.tar.bz2
cd linux-tbs-drivers
Depending on your kernel version and if the kernel is x86 or x86_64 (check output of uname -a) do:
for x86 kernel 3.x (x86 32 bit installations of kernel 3.x): ./v4l/tbs-x86_r3.sh
for x86 kernel 2.6.x (x86 32 bit installations of kernel 2.6.x): ./v4l/tbs-x86.sh
for any x86_64 kernel (x86 64 bit installations of Linux): ./v4l/tbs-x86_64.sh (this is probably the one you want on any modern system, so do this:)
sudo ./v4l/tbs-x86_64.sh (note use of sudo!!)
sudo make && sudo make install (note use of sudo!!)
Reboot in order to load the newly installed driver:
sudo shutdown -r now(orsudo reboot on Ubuntu/Debian type systems)
After reboot check that the newly installed driver is loaded correctly:
(NOTE THIS PART IS FOR A DIFFERENT CARD, SO IT MAY NOT WORK UNLESS YOU CHANGE THE grep STRING. I USE DIFFERENT TESTS, SPECIFICALLY
dmesg | grep -i dvb
and/or
ls -l /dev/dvb
WHICH SEEM TO WORK FOR MOST TBS CARDS)
dmesg | grep cx23885
If everything is OK, the output from the above command should be similar to:
[ 13.190399] cx23885 driver version 0.0.3 loaded
[ 13.190430] cx23885 0000:06:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 13.190612] CORE cx23885[0]: subsystem: 6921:8888, board: TurboSight TBS 6921 [card=34,autodetected]
[ 13.946229] cx25840 2-0044: cx23885 A/V decoder found @ 0x88 (cx23885[0])
[ 14.647274] cx25840 2-0044: loaded v4l-cx23885-avcore-01.fw firmware (16382 bytes)
[ 14.654933] cx23885_dvb_register() allocating 1 frontend(s)
[ 14.654935] cx23885[0]: cx23885 based dvb card
[ 14.813362] DVB: registering new adapter (cx23885[0])
[ 14.840282] cx23885_dev_checkrevision() Hardware revision = 0xb0
[ 14.840286] cx23885[0]/0: found at 0000:06:00.0, rev: 2, irq: 16, latency: 0, mmio: 0xfb600000
[ 14.840292] cx23885 0000:06:00.0: setting latency timer to 64
[ 14.898554] input: cx23885 IR (TurboSight TBS 6921) as /devices/pci0000:00/0000:00:09.0/0000:06:00.0/rc/rc0/input10
[ 14.902061] rc0: cx23885 IR (TurboSight TBS 6921) as /devices/pci0000:00/0000:00:09.0/0000:06:00.0/rc/rc0
[ 14.902183] input: MCE IR Keyboard/Mouse (cx23885) as /devices/virtual/input/input11
[ 14.902268] rc rc0: lirc_dev: driver ir-lirc-codec (cx23885) registered at minor = 0
Also keep in mind that every time you do a Linux kernel update you'll need to rebuild the drivers. If you still have problems I'd start over with a fresh install of the operating system, and DO NOT do the sudo rm -rf /lib/modules/`uname -r`/kernel/drivers/media/ step from whatever instructions you are reading now.
ONCE YOU GET IT WORKING, you will want to make sure it's not sharing an interrupt (see TVHEADENDMIGRATIONSTARTfd3a74a840be4660ae4e6b4b17e6a91bTVHEADENDMIGRATIONEND and you may want to look at some of the other articles on that site that address other TBS card quirks).