Page 9 of 18

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

PostPosted: Mon Jan 23, 2017 5:06 am
by maspeter
Hello
I have Matrix ARM mini PC + TBS7220 mini PCIe DVB-C Tuner card.
How could I prepare the driver for this card on Matrix ARM mini PC?
Thank you

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

PostPosted: Wed Jan 25, 2017 5:32 am
by imperia
Please fix the driver for recently released kernel 4.9 for debian linux.
Code: Select All Code
[    5.070033] ------------[ cut here ]------------
[    5.070071] WARNING: CPU: 0 PID: 311 at /build/linux-fgnWKv/linux-4.9.2/drivers/usb/core/hcd.c:1584 usb_hcd_map_urb_for_dma+0x37c/0x570 [usbcore]
[    5.070099] transfer buffer not dma capable
[    5.070109] Modules linked in: dvb_usb_tbsqbox22(OE+) dvb_usb(OE) tas2101(OE) i2c_mux dvb_core(OE) rc_core(OE) media(OE) intel_rapl x86_pkg_temp_thermal xhci_pci coretemp xhci_hcd crct10dif_pclmul usbcore crc32_pclmul usb_common ghash_clmulni_intel evdev pcspkr intel_rapl_perf xen_pcifront sunrpc ip_tables x_tables autofs4 ext4 crc16 jbd2 crc32c_generic fscrypto ecb mbcache crc32c_intel xen_netfront xen_blkfront aesni_intel aes_x86_64 glue_helper lrw gf128mul ablk_helper cryptd
[    5.070272] CPU: 0 PID: 311 Comm: systemd-udevd Tainted: G        W  OE   4.9.0-1-amd64 #1 Debian 4.9.2-2
[    5.070296]  0000000000000000 ffffffff81328b84 ffffc900407a77e0 0000000000000000
[    5.070321]  ffffffff81076dbe ffff88013033d000 ffffc900407a7838 0000000000000000
[    5.070343]  ffffc900407a79ec ffff8801324c0000 0000000000000001 ffffffff81076e3f
[    5.070364] Call Trace:
[    5.070384]  [<ffffffff81328b84>] ? dump_stack+0x5c/0x78
[    5.070399]  [<ffffffff81076dbe>] ? __warn+0xbe/0xe0
[    5.070420]  [<ffffffff81076e3f>] ? warn_slowpath_fmt+0x5f/0x80
[    5.070452]  [<ffffffffc02311ec>] ? usb_hcd_map_urb_for_dma+0x37c/0x570 [usbcore]
[    5.070479]  [<ffffffff81185189>] ? get_page_from_freelist+0x8a9/0xb40
[    5.070516]  [<ffffffffc02325d0>] ? usb_hcd_submit_urb+0x330/0xaa0 [usbcore]
[    5.070555]  [<ffffffffc023471d>] ? usb_start_wait_urb+0x6d/0x170 [usbcore]
[    5.070587]  [<ffffffffc02348fc>] ? usb_control_msg+0xdc/0x130 [usbcore]
[    5.070603]  [<ffffffff811de06d>] ? cache_grow_end+0x7d/0xc0
[    5.070623]  [<ffffffffc00ef139>] ? tbsqbox22_op_rw.constprop.3+0xf9/0x140 [dvb_usb_tbsqbox22]
[    5.070649]  [<ffffffffc00ef21c>] ? tbsqbox22_load_firmware+0x9c/0x200 [dvb_usb_tbsqbox22]
[    5.070670]  [<ffffffffc02173a4>] ? dvb_usb_download_firmware+0xa4/0xe0 [dvb_usb]
[    5.070690]  [<ffffffffc02179a8>] ? dvb_usb_device_init+0x428/0x740 [dvb_usb]
[    5.070710]  [<ffffffffc00ef031>] ? tbsqbox22_probe+0x21/0x30 [dvb_usb_tbsqbox22]
[    5.070743]  [<ffffffffc0238dcd>] ? usb_probe_interface+0x15d/0x2c0 [usbcore]
[    5.070761]  [<ffffffff8146ce0a>] ? driver_probe_device+0x21a/0x420
[    5.070776]  [<ffffffff8146d0ea>] ? __driver_attach+0xda/0xe0
[    5.070790]  [<ffffffff8146d010>] ? driver_probe_device+0x420/0x420
[    5.070804]  [<ffffffff8146a997>] ? bus_for_each_dev+0x67/0xb0
[    5.070818]  [<ffffffff8146c04a>] ? bus_add_driver+0x16a/0x260
[    5.070839]  [<ffffffff8146d987>] ? driver_register+0x57/0xc0
[    5.070865]  [<ffffffffc023778b>] ? usb_register_driver+0x7b/0x130 [usbcore]
[    5.070879]  [<ffffffffc0007000>] ? 0xffffffffc0007000
[    5.070893]  [<ffffffffc000701b>] ? tbsqbox22_module_init+0x1b/0x1000 [dvb_usb_tbsqbox22]
[    5.070912]  [<ffffffff8100218b>] ? do_one_initcall+0x4b/0x180
[    5.070927]  [<ffffffff811c44bd>] ? __vunmap+0x6d/0xc0
[    5.070942]  [<ffffffff8117ac1c>] ? do_init_module+0x5b/0x1ed
[    5.070955]  [<ffffffff81100253>] ? load_module+0x2523/0x2a00
[    5.070968]  [<ffffffff810fca90>] ? __symbol_put+0x60/0x60
[    5.070983]  [<ffffffff81100976>] ? SYSC_finit_module+0xc6/0xf0
[    5.070997]  [<ffffffff81003b1c>] ? do_syscall_64+0x7c/0xf0
[    5.071011]  [<ffffffff815f9cef>] ? entry_SYSCALL64_slow_path+0x25/0x25
[    5.071025] ---[ end trace 69bbbc2be577f233 ]---
[    5.071043] tbsqbox22: error while transferring firmware
[    5.071054] tbsqbox22: could not restart the USB controller CPU.
[    5.163711] tbsqbox22: could not restart the USB controller CPU.

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

PostPosted: Thu Jan 26, 2017 4:59 am
by crazycat
this issues related to some new features in 4.9 kernel
https://github.com/LibreELEC/LibreELEC.tv/pull/1076

So wait fixes in main-line media_tree (dvb-usb related) or recompile your 4.9 kernel with disabled disable vmapped stack.
Or better use LTS kernel like 4.4 :)

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

PostPosted: Thu Jan 26, 2017 6:16 am
by dvb91
Hi everybody,

A few months ago, I spent many hours to try to fix lirc. I soon as I installed TBS driver, it broke lirc_serial. I need lirc_serial because I use an IR receiver on serial com 1.

I read this post but situation isn't enough clear, sorry ! Could you please summarize :
- is it possible to use lirc with TBS driver ?
- If so, under which kernel, and with which version of TBS driver ?

Thanks a lot !
Regards.

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

PostPosted: Thu Jan 26, 2017 4:22 pm
by Paust55
dvb91 Wrote:I need lirc_serial because I use an IR receiver on serial com 1.
...

Look at my answer in this thread from Friday Jan 13. (you will find them at Page 8).

I use also a remote control with an ir-receiver at COM1 for many vears with "lirc_serial" at my HTPC.
With one of the last update of the "new open source" driver from TBS they have changed from "lirc_serial" to the new "serial_ir"!

You can use "serial_ir" instead of the old "lirc_serial", without any changes at your remote control, your lircd.conf etc.
You have only change/add 2 files to use the new "serial_ir" and that is very easy. ;)

Paul

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

PostPosted: Fri Jan 27, 2017 4:07 am
by crazycat
this general kernel changes, not related to dvb drivers

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

PostPosted: Fri Jan 27, 2017 4:07 am
by dvb91
Sounds great !
I will try this driver, I hope my TBS6928 (with CI) will be supported.

Thanks !

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

PostPosted: Sun Jan 29, 2017 5:35 am
by crazycat
supported, but need 4.4+ kernel for saa716x module

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

PostPosted: Sun Jan 29, 2017 10:55 pm
by dvb91
crazycat Wrote:supported, but need 4.4+ kernel for saa716x module

OK. Then I will try on Linux Mint 18.1 (kernel 4.4.0.x) instead of Debian 8.7 (kernel 3.16).
Thanks fort the tip.

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

PostPosted: Mon Jan 30, 2017 8:22 pm
by JMRR
Paust55 Wrote:I'll answer myself, because I found a solution for use my remote control with "serial_ir" instead of my old "lirc_serial" :P


1. In /etc/modprobe.d I added a new file called "serial_ir.conf" with this content:
#COM1 equivalent, /dev/ttyS0
options serial_ir irq=4 io=0x3f8



2. In /etc/lirc I changed the file "hardware.conf" and replace "lirc_serial" with "serial_ir" :
...
REMOTE_MODULES="lirc_dev serial_ir"
REMOTE_DEVICE="/dev/lirc0"
...


After a reboot I can now use my remote control and all things work perfect! :D
I used an needed the new open sorce driver with my new TBS-6205 to receive DVB-C and DVB-T2 with on driver at the samt time!

Very good work from your team! :mrgreen: :mrgreen: :mrgreen:

Paul


Can you explain how you can get dvb-c and dvb-t, on tbs6205 at same time?
I did that, using osource drivers, and work, but the signal is very week, this card as only one input, so i had to combine both modulations on same input.
Is thare any chance to have this working 100% on this way? I can only have on card on this system.

In the past i used one 6205 in dvbc and 6281 in dvbt and every thing worked perfercly, but on this system can only have one card.
Is thare any way to modify the card to use rf out as rf in??