Page 1 of 2

Finally the TBS5990 on linux

PostPosted: Sat Sep 10, 2016 1:10 am
by highkick05
Thought I would bring 2 seperate confirmations that both linux & windows tbs5990 drivers have been completely unlocked now. Happy DAYS ! :lol:
** ARM seems to still need some work. So feel free to vent frustration

To build this;

git clone https://CrazyCat@bitbucket.org/CrazyCat/media_build.git
cd media_build
./build --git https://github.com/crazycat69/linux_media.git latest
sudo mv -f /lib/modules/[kernel-version]/kernel/drivers/media old
sudo make install
sudo reboot


you should see output like this:

[ 1.560298] cx231xx 3-3:1.1: New device Turbosight Technolog @ 480 Mbps (734c:5990) with 8 interfaces
[ 1.561176] cx231xx 3-3:1.1: Identified as TurboSight TBS 5990 (card=25)
[ 1.721834] cx25840 9-0044: cx23102 A/V decoder found @ 0x88 (cx231xx #0-0)
[ 3.682232] cx25840 9-0044: loaded v4l-cx231xx-avcore-01.fw firmware (16382 bytes)
[ 3.715320] cx231xx 3-3:1.1: v4l2 driver version 0.0.3
[ 3.778201] cx231xx 3-3:1.1: Unknown tuner type configuring SIF
[ 3.804679] cx231xx 3-3:1.1: Registered video device video0 [v4l2]
[ 3.804737] cx231xx 3-3:1.1: Registered VBI device vbi0
[ 3.804739] cx231xx 3-3:1.1: video EndPoint Addr 0x84, Alternate settings: 5
[ 3.804741] cx231xx 3-3:1.1: VBI EndPoint Addr 0x85, Alternate settings: 2
[ 3.804742] cx231xx 3-3:1.1: sliced CC EndPoint Addr 0x86, Alternate settings: 2
[ 3.804743] cx231xx 3-3:1.1: TS EndPoint Addr 0x81, Alternate settings: 6
[ 3.804744] cx231xx 3-3:1.1: TS EndPoint Addr 0x82, Alternate settings: 6
[ 3.804850] usbcore: registered new interface driver cx231xx
[ 4.285743] cx231xx 3-3:1.1: MAC address 00:22:ab:c0:3f:b6
[ 4.285749] DVB: registering new adapter (cx231xx #0)
[ 4.285753] cx231xx 3-3:1.1: DVB: registering adapter 1 frontend 0 (Tmax TAS2101)...
[ 4.759644] cx231xx 3-3:1.1: MAC address 00:22:ab:c0:3f:b7
[ 4.759646] DVB: registering new adapter (cx231xx #0)
[ 4.759647] cx231xx 3-3:1.1: DVB: registering adapter 2 frontend 0 (Tmax TAS2101)...
[ 4.762075] cx231xx 3-3:1.1: Successfully loaded cx231xx-dvb
[ 4.762198] cx231xx 3-3:1.1: Cx231xx dvb Extension initialized
[ 5.483555] cx231xx 3-3:1.1: DVB: adapter 2 frontend 0 frequency 0 out of range (950000..2150000)
[ 6.051740] cx231xx 3-3:1.1: DVB: adapter 1 frontend 0 frequency 0 out of range (950000..2150000)
[ 54.257018] cx231xx 3-3:1.1: Unknown tuner type configuring SIF
[ 1067.629440] cx231xx 3-3:1.1: Unknown tuner type configuring SIF
[19623.388454] cx231xx 3-3:1.1: Unknown tuner type configuring SIF



Also if you're finding DVBS2 channels are green/pixelated you need to add this file to module options and reboot:

# sudo echo "options cx231xx transfer_mode=0" > /etc/modprobe.d/cx231xx.conf
# sudo reboot


this will enable bulk transfer mode on tuner A & B and clear up those continuity errors, seems to need this for now

** This work has taken almost 6 months or more so enjoy ALL CREDIT GOES TO THE ABSOLUTELY WONDERFUL CRAZYCAT, if there are other problems probably just post reply below.. stay tuned etc &th@

Re: Finally the TBS5990 on linux

PostPosted: Thu Oct 06, 2016 3:25 am
by frankforpresident
Thx man! Just what I needed!! :)

Re: Finally the TBS5990 on linux

PostPosted: Tue Nov 15, 2016 10:39 pm
by tako035
MCE Remote does not work with this driver on ubuntu 16.04 LTS. What could be the problem ?

Re: Finally the TBS5990 on linux

PostPosted: Sat Nov 26, 2016 8:36 pm
by tbuser02
Hi!
I can not compile this driver into the openSUSE Leap 42.2

full build log http://pastebin.com/6mZ78T8K

Code: Select All Code
make -C /part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l all
make[1]: вход в каталог «/part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l»
creating symbolic links...
make -C firmware prep
make[2]: Entering directory '/part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l/firmware'
make[2]: Leaving directory '/part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l/firmware'
make -C firmware
make[2]: Entering directory '/part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l/firmware'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l/firmware'
Kernel build directory is /lib/modules/4.4.27-2-default/build
make -C ../linux apply_patches
make[2]: Entering directory '/part/disk1/!!!!!!!!!/1111/Crazy/media_build/linux'
Syncing with dir ../media/
Patches for 4.4.27-2-default already applied.
make[2]: Leaving directory '/part/disk1/!!!!!!!!!/1111/Crazy/media_build/linux'
make -C /lib/modules/4.4.27-2-default/build SUBDIRS=/part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l  modules
make[2]: Entering directory '/usr/src/linux-4.4.27-2-obj/x86_64/default'
  LD [M]  /part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l/msp3400.o
  LD [M]  /part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l/smiapp.o
  LD [M]  /part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l/cx25840.o                                                                                                         
  LD [M]  /part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l/m5mols.o                                                                                                         
  LD [M]  /part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l/s5c73m3.o                                                                                                         
  LD [M]  /part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l/tda18271.o
  LD [M]  /part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l/stb0899.o
  LD [M]  /part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l/drxd.o
  LD [M]  /part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l/stv0900.o
  LD [M]  /part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l/drx39xyj.o
  CC [M]  /part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l/cxd2820r_core.o
/part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l/cxd2820r_core.c: In function 'cxd2820r_probe':
/part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l/cxd2820r_core.c:680:18: error: 'struct gpio_chip' has no member named 'dev'
   priv->gpio_chip.dev = &client->dev;
                  ^
/usr/src/linux-4.4.27-2/scripts/Makefile.build:259: ошибка выполнения рецепта для цели «/part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l/cxd2820r_core.o»
make[5]: *** [/part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l/cxd2820r_core.o] Ошибка 1
/usr/src/linux-4.4.27-2/Makefile:1426: ошибка выполнения рецепта для цели «_module_/part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l»
make[4]: *** [_module_/part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l] Ошибка 2
Makefile:150: recipe for target 'sub-make' failed
make[3]: *** [sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make[2]: *** [__sub-make] Error 2
make[2]: Leaving directory '/usr/src/linux-4.4.27-2-obj/x86_64/default'
Makefile:51: ошибка выполнения рецепта для цели «default»
make[1]: *** [default] Ошибка 2
make[1]: выход из каталога «/part/disk1/!!!!!!!!!/1111/Crazy/media_build/v4l»
Makefile:26: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 2
:(

Code: Select All Code
uname -a
Linux linux 4.4.27-2-default #1 SMP Thu Nov 3 14:59:54 UTC 2016 (5c21e7c) x86_64 x86_64 x86_64 GNU/Linux

Help me!

Re: Finally the TBS5990 on linux

PostPosted: Mon Dec 05, 2016 10:37 pm
by highkick05
tako035 Wrote:MCE Remote does not work with this driver on ubuntu 16.04 LTS. What could be the problem ?


nope doesn't work atm. I got it this far, maybe you can ask crazycat.
I just buy HP IR MCE RECEIVER 3 of them :)

Re: Finally the TBS5990 on linux

PostPosted: Mon Dec 05, 2016 10:41 pm
by highkick05
tbuser02 Wrote:Hi!
I can not compile this driver into the openSUSE Leap 42.2

full build log http://pastebin.com/6mZ78T8K
!


openSUS Leap ? u must have insane amount of time to waste. just use ubuntu for htpc.. ;)

Re: Finally the TBS5990 on linux

PostPosted: Sun Dec 18, 2016 7:14 pm
by tbuser02
highkick05 Wrote:openSUS Leap ? u must have insane amount of time to waste. just use ubuntu for htpc.. ;)

I spent an insane amount of time to compile failed. My operating system works well and reliably, for a decade. I will not change it for fashionable toy.
Tastes differ. 8-)
I was able to collect only http://www.tbsiptv.com/download/tbs5990 ... 151229.zip
But he does not create a DVB-devices. Newer drivers always break off at the "recipe for target 'sub-make' failed"

How to build a driver? :?:

Re: Finally the TBS5990 on linux

PostPosted: Mon Dec 19, 2016 12:12 am
by tbuser02
Vanilla kernel - driver going. At the core of openSUSE 4.4.36-8 x86_64 default is not going to. Error:
Code: Select All Code
  CC [M]  /tbs_build/media_build/v4l/mb86a16.o
  CC [M]  /tbs_build/media_build/v4l/drxj.o
  LD [M]  /tbs_build/media_build/v4l/drx39xyj.o
  CC [M]  /tbs_build/media_build/v4l/mb86a20s.o
  CC [M]  /tbs_build/media_build/v4l/ix2505v.o
  CC [M]  /tbs_build/media_build/v4l/stv0367.o
  CC [M]  /tbs_build/media_build/v4l/cxd2820r_core.o
/tbs_build/media_build/v4l/cxd2820r_core.c: In function 'cxd2820r_probe':
/tbs_build/media_build/v4l/cxd2820r_core.c:680:18: error: 'struct gpio_chip' has no member named 'dev'
   priv->gpio_chip.dev = &client->dev;
                  ^
make[5]: *** [/usr/src/linux-4.4.36-8/scripts/Makefile.build:261: /tbs_build/media_build/v4l/cxd2820r_core.o] Error 1
make[4]: *** [/usr/src/linux-4.4.36-8/Makefile:1428: _module_/tbs_build/media_build/v4l] Error 2
make[3]: *** [Makefile:150: sub-make] Error 2
make[2]: *** [Makefile:24: __sub-make] Error 2
make[2]: Leaving directory '/usr/src/linux-4.4.36-8-obj/x86_64/default'
make[1]: *** [Makefile:53: default] Error 2
make[1]: Leaving directory '/tbs_build/media_build/v4l'
make: *** [Makefile:26: all] Error 2

Re: Finally the TBS5990 on linux

PostPosted: Mon Dec 19, 2016 12:17 pm
by highkick05

Re: Finally the TBS5990 on linux

PostPosted: Thu Dec 22, 2016 6:19 pm
by chezzi
Hello

I've done what is written in the beginning of this post on a Raspberry PI 3, but it doesn't work. Does anyone has already installed the TBS5990 on a Raspberry? Is it normal that there is no driver for a TBS5990 on the delivered CD neither on the downloaded version from the TBS website?

Could anyone help me to get it work on my raspberry? The aim is to run it for tvheadend.

Info about the OS installed on my raspberry:
-Raspbian PIXEL version (Downloaded 18-12-2016 from NOOBS)
-Kernel: 4.4.34+ & 4.4.34-v7+