Moderator Control Panel ]

Good News,Open source code for TBS Card has been released

News and information about TBS products.

Re: Good News,Open source code for TBS Card has been release

Postby tako035 » Mon Aug 28, 2017 3:34 pm

I modified mceusb.c file and MCE remotes now works with the opensource driver.
tako035
 
Posts: 11
Joined: Wed May 18, 2016 4:44 am

Re: Good News,Open source code for TBS Card has been release

Postby crazycat » Tue Aug 29, 2017 2:08 pm

merged now :) thanks :)
crazycat
 
Posts: 526
Joined: Mon Jan 31, 2011 2:46 am
Location: Ukraine, Kharkov

Re: Good News,Open source code for TBS Card has been release

Postby j4m35 » Tue Sep 12, 2017 11:33 am

Hi,

I'm hoping someone can help me with this. I'm trying to compile the latest TBS Open Source drivers on my Gentoo system running the Linux 4.9 kernel.

I've done the typical steps:
Code: Select All Code
git clone https://github.com/ljalves/media_build.git
git clone --depth=1 https://github.com/ljalves/linux_media.git -b latest ./media
cd media_build
make dir DIR=../media
make distclean
make


But the compiling always fails to make "frame_vector". The exact failure log is as follows:
Code: Select All Code
  CC [M]  /tmp/work/media_build/v4l/altera.o
  LD [M]  /tmp/work/media_build/v4l/altera-stapl.o
make[3]: *** No rule to make target '/tmp/work/media_build/v4l/frame_vector.c', needed by '/tmp/work/media_build/v4l/frame_vector.o'.  Stop.
make[2]: *** [Makefile:1490: _module_/tmp/work/media_build/v4l] Error 2
make[2]: Leaving directory '/usr/src/linux-4.9.32-gentoo'
make[1]: *** [Makefile:53: default] Error 2
make[1]: Leaving directory '/tmp/work/media_build/v4l'
make: *** [Makefile:26: all] Error 2


Is there something I am missing in my Kernel configuration?
j4m35
 
Posts: 1
Joined: Thu Mar 23, 2017 11:15 pm

Not working on by TBS 6285

Postby drphilth » Sun Oct 08, 2017 7:00 pm

Hi everyone,


These drivers aren't working on my TBS 6285. I think the problem may have started in the ljalves tree, because an old version of the drivers (from Dec 2015) works well for me, but newer versions from either his tree or the new official tree don't work. I've detailed the issue at : viewtopic.php?f=87&t=24704

Should I report it as a bug on github?
drphilth
 
Posts: 9
Joined: Mon May 15, 2017 11:12 pm

Re: Good News,Open source code for TBS Card has been release

Postby iridium » Mon Oct 16, 2017 8:49 pm

Hi,

I've tried to understand the history of this driver. As far as I can see, this driver is - as well as the previous, official, TBS-driver - based on the SAA716x driver by Manu Abraham et al and, in the case of the open source drivers, on the frontend drivers developed by Luis Alves. For what reason did Luis stop development of his drivers, and why haven't the parts of this drivers that don't depend on the SAA716x (which has a long and complicated history), e.g. support for the TBS-programmed Lattice FPGAs, been pushed upstream?

The official TBS driver, which is based on the same SAA716x driver, has support for the infrared receivers, while this driver hasn't. Is there any reason why the infrared support has not been ported to this branch?

Also, there seem to be recent attempts of pushing the saa716x support upstream[0], although the success probability seems to be unclear. There are some fixes by Soeren in this branch that don't seem to be cherry-picked to the TBS driver, is there any reason for this?

Anyway, while open source drivers for the cards are a huge progress compared to the mediocre closed-source drivers, the current Linux support for TBS cards is still extremely lacking from an end-user perspective (replacing and recompiling the complete media tree after every kernel update is not a viable option). Are there any plans to support the efforts to get TBS card support upstream in the near future?

[0] https://www.mail-archive.com/linux-medi ... 15690.html
iridium
 
Posts: 4
Joined: Tue Oct 10, 2017 12:13 am

My boot time with new driver is significant longer

Postby Paust55 » Tue Nov 07, 2017 9:30 pm

.
I have found a small issue with a significant longer boot time, if I use the new open source driver!
Since I used the new open source driver I detect that the time from the GRUB bootscreen to the first TV picture are longer as with the "old" linux-tbs-driver.

My boot time with the old tbsdriver = 25 seconds
And my boot time with the new open source driver = 40 seconds, thats 15 seconds longer!
Thats all on the same PC with the same hardware and software. The only one difference is the used tbsdriver!
Software: Ubuntu Trusty with kernel-4.4.0, yavdr-0.6
DVB cards: 1x TBS6205, 1x TBS8922 and 1x TBS6981

To find out the reason for this manner I've looked in the syslog and found one significant difference between the used drivers.
Her the important part in the syslog with the old closed source tbsdriver:
Code: Select All Code
Nov  5 19:01:29 yavdr vdr: [1319] DVB API version is 0x0503 (VDR was built with 0x050A)
Nov  5 19:01:29 yavdr vdr: [1319] frontend 0/0 provides DVB-C with QAM16,QAM32,QAM64,QAM128,QAM256 ("TurboSight TBS 6205 DVBC frontend")
Nov  5 19:01:29 yavdr vdr: [1319] frontend 1/0 provides DVB-C with QAM16,QAM32,QAM64,QAM128,QAM256 ("TurboSight TBS 6205 DVBC frontend")
Nov  5 19:01:29 yavdr vdr: [1319] frontend 2/0 provides DVB-C with QAM16,QAM32,QAM64,QAM128,QAM256 ("TurboSight TBS 6205 DVBC frontend")
Nov  5 19:01:29 yavdr vdr: [1319] frontend 3/0 provides DVB-C with QAM16,QAM32,QAM64,QAM128,QAM256 ("TurboSight TBS 6205 DVBC frontend")
Nov  5 19:01:29 yavdr vdr: [1319] frontend 4/0 provides DVB-S,DVB-S2 with QPSK ("TurboSight TBS 8922 DVBS/S2 frontend")
Nov  5 19:01:29 yavdr vdr: [1319] frontend 5/0 provides DVB-S,DVB-S2 with QPSK ("TurboSight TBS 6981 DVBS/S2 frontend")
Nov  5 19:01:29 yavdr vdr: [1319] frontend 6/0 provides DVB-S,DVB-S2 with QPSK ("TurboSight TBS 6981 DVBS/S2 frontend")
Nov  5 19:01:29 yavdr vdr: [1319] found 7 DVB devices


And here is the same part in the syslog with the new open source tbsdriver:
Code: Select All Code
Nov  5 19:06:49 yavdr kernel: [   21.583873] si2168 0-0064: downloading firmware from file 'dvb-demod-si2168-b40-01.fw'
Nov  6 19:06:49 yavdr dbus[1142]: [system] Activating service name='org.freedesktop.ConsoleKit' (using servicehelper)
Nov  6 19:06:50 yavdr dbus[1142]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
Nov  6 19:06:50 yavdr dbus[1142]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Nov  6 19:06:50 yavdr dbus[1142]: [system] Successfully activated service 'org.freedesktop.ConsoleKit'
Nov  6 19:06:50 yavdr console-kit-daemon[1698]: GLib-CRITICAL: Source ID 12 was not found when attempting to remove it
Nov  6 19:06:50 yavdr dbus[1142]: [system] Activating service name='org.freedesktop.UDisks' (using servicehelper)
Nov  6 19:06:50 yavdr dbus[1142]: [system] Successfully activated service 'org.freedesktop.UDisks'
Nov  6 19:06:50 yavdr console-kit-daemon[1698]: GLib-CRITICAL: Source ID 37 was not found when attempting to remove it
Nov  6 19:06:51 yavdr kernel: [   23.421666] si2168 0-0064: firmware version: B 4.0.25
Nov  6 19:06:51 yavdr kernel: [   23.440793] si2157 13-0060: found a 'Silicon Labs Si2157-A30'
Nov  6 19:06:51 yavdr vdr: [1338] DVB API version is 0x050A (VDR was built with 0x050A)
Nov  6 19:06:51 yavdr vdr: [1338] frontend 0/0 provides DVB-T,DVB-T2,DVB-C,DVB-C with QPSK,QAM16,QAM32,QAM64,QAM128,QAM256 ("TurboSight TBS 6205 DVB-T/T2/C ")
Nov  6 19:06:51 yavdr kernel: [   23.468441] si2157 13-0060: firmware version: 3.0.5
Nov  6 19:06:51 yavdr kernel: [   23.472943] si2168 1-0064: downloading firmware from file 'dvb-demod-si2168-b40-01.fw'
Nov  6 19:06:51 yavdr console-kit-daemon[1698]: GLib-CRITICAL: Source ID 50 was not found when attempting to remove it
Nov  6 19:06:52 yavdr ntpdate[993]: adjust time server 91.189.89.198 offset 0.164258 sec
Nov  6 19:06:52 yavdr console-kit-daemon[1698]: GLib-CRITICAL: Source ID 61 was not found when attempting to remove it
Nov  6 19:06:53 yavdr console-kit-daemon[1698]: GLib-CRITICAL: Source ID 74 was not found when attempting to remove it
Nov  6 19:06:53 yavdr kernel: [   25.355457] si2168 1-0064: firmware version: B 4.0.25
Nov  6 19:06:53 yavdr kernel: [   25.374593] si2157 14-0060: found a 'Silicon Labs Si2157-A30'
Nov  6 19:06:53 yavdr vdr: [1338] frontend 1/0 provides DVB-T,DVB-T2,DVB-C,DVB-C with QPSK,QAM16,QAM32,QAM64,QAM128,QAM256 ("TurboSight TBS 6205 DVB-T/T2/C ")
Nov  6 19:06:53 yavdr kernel: [   25.401557] si2157 14-0060: firmware version: 3.0.5
Nov  6 19:06:53 yavdr kernel: [   25.405903] si2168 2-0064: downloading firmware from file 'dvb-demod-si2168-b40-01.fw'
Nov  6 19:06:53 yavdr console-kit-daemon[1698]: GLib-CRITICAL: Source ID 85 was not found when attempting to remove it
Nov  6 19:06:54 yavdr console-kit-daemon[1698]: GLib-CRITICAL: Source ID 98 was not found when attempting to remove it
Nov  6 19:06:55 yavdr kernel: [   27.308090] si2168 2-0064: firmware version: B 4.0.25
Nov  6 19:06:55 yavdr kernel: [   27.327844] si2157 15-0060: found a 'Silicon Labs Si2157-A30'
Nov  6 19:06:55 yavdr vdr: [1338] frontend 2/0 provides DVB-T,DVB-T2,DVB-C,DVB-C with QPSK,QAM16,QAM32,QAM64,QAM128,QAM256 ("TurboSight TBS 6205 DVB-T/T2/C ")
Nov  6 19:06:55 yavdr kernel: [   27.354866] si2157 15-0060: firmware version: 3.0.5
Nov  6 19:06:55 yavdr kernel: [   27.359286] si2168 3-0064: downloading firmware from file 'dvb-demod-si2168-b40-01.fw'
Nov  6 19:06:55 yavdr console-kit-daemon[1698]: GLib-CRITICAL: Source ID 109 was not found when attempting to remove it
Nov  6 19:06:56 yavdr console-kit-daemon[1698]: GLib-CRITICAL: Source ID 122 was not found when attempting to remove it
Nov  6 19:06:57 yavdr kernel: [   29.254524] si2168 3-0064: firmware version: B 4.0.25
Nov  6 19:06:57 yavdr kernel: [   29.274357] si2157 18-0060: found a 'Silicon Labs Si2157-A30'
Nov  6 19:06:57 yavdr vdr: [1338] frontend 3/0 provides DVB-T,DVB-T2,DVB-C,DVB-C with QPSK,QAM16,QAM32,QAM64,QAM128,QAM256 ("TurboSight TBS 6205 DVB-T/T2/C ")
Nov  6 19:06:57 yavdr kernel: [   29.301600] si2157 18-0060: firmware version: 3.0.5
Nov  6 19:06:57 yavdr vdr: [1338] frontend 4/0 provides DVB-S,DVB-S2 with QPSK ("TurboSight TBS 8922 DVB-S/S2")
Nov  6 19:07:03 yavdr kernel: [   35.606913] i2c i2c-20: cx24117_load_firmware: FW version 1.44.95.2
Nov  6 19:07:03 yavdr kernel: [   35.606921] i2c i2c-20: cx24117_firmware_ondemand: Firmware upload complete
Nov  6 19:07:03 yavdr vdr: [1338] frontend 5/0 provides DVB-S,DVB-S2 with QPSK ("TurboSight TBS 6981 DVB-S/S2")
Nov  6 19:07:03 yavdr vdr: [1338] frontend 6/0 provides DVB-S,DVB-S2 with QPSK ("TurboSight TBS 6981 DVB-S/S2")
Nov  6 19:07:03 yavdr vdr: [1338] found 7 DVB devices


You can see that the time is 14 seconds longer with the new open source driver!
These longer time comes for my opinion, while here for every tuner the firmware will be separatly loaded!
Is this a feature of the new open source driver, or is this a bug?

And also the lot of warnings I found only when I used the new open source driver!:
yavdr dbus[1142]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
yavdr dbus[1142]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
...
console-kit-daemon[1698]: GLib-CRITICAL: Source ID xxx was not found when attempting to remove it
...



I would like minimize my boot time and so I have a question:
Is there a possibility to fix the multiple loading of the same firmware and to fix the warnings?

Thanks, Paul
Paust55
 
Posts: 29
Joined: Wed Feb 16, 2011 6:54 pm

Re: Good News,Open source code for TBS Card has been release

Postby iridium » Thu Nov 09, 2017 8:51 pm

The open source driver seems to load the firmware on the frontends only when the frontends are first accessed and not when loading the driver module. If VDR checks the frontends one-by-one, this takes some time. You could try to manually (parallely) access each frontend e.g. using the *zap utils from linuxtv-dvb-apps before starting VDR, so they are all initialized once VDR boots up.
iridium
 
Posts: 4
Joined: Tue Oct 10, 2017 12:13 am

Re: Good News,Open source code for TBS Card has been release

Postby Paust55 » Fri Nov 10, 2017 12:04 am

@iridium,
thanks for your help.
To use "zap utilities" could be help, but I'm not sure to get a new time issue with the started VDR.
I hope there is a possibility to fix this directly in the new open source driver!

Paul
Paust55
 
Posts: 29
Joined: Wed Feb 16, 2011 6:54 pm

Re: Good News,Open source code for TBS Card has been release

Postby jd678 » Sun Dec 03, 2017 6:47 pm

iridium Wrote:Hi,

I've tried to understand the history of this driver. As far as I can see, this driver is - as well as the previous, official, TBS-driver - based on the SAA716x driver by Manu Abraham et al and, in the case of the open source drivers, on the frontend drivers developed by Luis Alves. For what reason did Luis stop development of his drivers, and why haven't the parts of this drivers that don't depend on the SAA716x (which has a long and complicated history), e.g. support for the TBS-programmed Lattice FPGAs, been pushed upstream?

The official TBS driver, which is based on the same SAA716x driver, has support for the infrared receivers, while this driver hasn't. Is there any reason why the infrared support has not been ported to this branch?

Also, there seem to be recent attempts of pushing the saa716x support upstream[0], although the success probability seems to be unclear. There are some fixes by Soeren in this branch that don't seem to be cherry-picked to the TBS driver, is there any reason for this?

Anyway, while open source drivers for the cards are a huge progress compared to the mediocre closed-source drivers, the current Linux support for TBS cards is still extremely lacking from an end-user perspective (replacing and recompiling the complete media tree after every kernel update is not a viable option). Are there any plans to support the efforts to get TBS card support upstream in the near future?

[0] https://www.mail-archive.com/linux-medi ... 15690.html


Hi Iridium.

The pci bridge chipset used by these TBS cards, saa716x, is used by many other cards. Manu wrote the original code for this chipset, and as far as I'm currently aware there's 3 major forks and a couple of minor forks within there. One is the powARman series that I think has been maintained by guys who want to use full featured TT S2-6400 card, and this fork which has been maintained by CrazyCat and then Luis and now back to CrazyCat. Additionally TBS have maintained their closed source fork which is entirely separate to this one, hence why some things are supported there and not here (and v.v.)
Soeren has been trying to merge the powARman fork.

All have independently kept track of changes in the kernel, which is always a lot of fiddly boring work so most people give up after a while and each forks has diverged somewhat as fixes required have been done differently, or not been needed for cards on that branch. Plus each fork gets additional extra features which don't get copied to the other as no-one on that branch needs it.

It's a bit of a mess and why it's not a good idea to let code rot out of tree for a long while. I'm currently once again thinking about trying to get one of the forks into mainline, but it's finding the time. I had a brief look at what might be required a few years ago and decided it was too much work, but we'll see. I might have a few days over christmas.

CrazyCat or Luis - if you're reading this are you able to help out? I'll probably put something on github and then we can try and work together on this. To keep things simple I would just be merging in support for TBS6280 - once merged into mainline other cards can be added in as seperate patches.
jd678
 
Posts: 3
Joined: Tue Dec 08, 2015 5:59 am

Re: Good News,Open source code for TBS Card has been release

Postby crazycat » Mon Dec 04, 2017 11:22 am

TBS not maintain any "closed source fork" :) Just 100% open-source fork witn new TBS DVB-devices and some fixes for old SA7160-based devices. This work OK for many peoples :)

P.S. Saa716x support 'blocked' by V4L DVB maintainers long time (Luis send it to patchwork). Maybe "code quality" not good, maybe concurency with some "old-grade" PCI-E Hauppauge products :)
crazycat
 
Posts: 526
Joined: Mon Jan 31, 2011 2:46 am
Location: Ukraine, Kharkov

PreviousNext

Return to News

Who is online

Users browsing this forum: No registered users and 5 guests

cron