Moderator Control Panel ]

opensource drivers issue

Re: opensource drivers issue

Postby steven » Thu Nov 03, 2016 11:18 am

Hi

Maybe you can have a look at this user guide for multi-standard card use way .
http://www.tbsiptv.com/download/tbs6522 ... -users.pdf

Thanks

Kind Regards

steven
steven
 
Posts: 2239
Joined: Fri Aug 06, 2010 3:23 pm

Re: opensource drivers issue

Postby Tnix » Fri Nov 04, 2016 6:52 am

Thanks for your answer but the result is the same: I cannot tune DVB-T with TBS 5520 in kernel 4.x.

An excerpt from tvheadend:

2016-11-03 23:44:47.000 mpegts: 522MHz in TBS5520 DVB-T - tuning on Availink AVL6882 : DVB-T #0
2016-11-03 23:44:47.000 subscription: 0300: "scan" subscribing to mux "522MHz", weight: 6, adapter: "Availink AVL6882 : DVB-T #0", network: "TBS5520 DVB-T", service: "Raw PID Subscription"
2016-11-03 23:44:52.000 mpegts: 522MHz in TBS5520 DVB-T - scan no data, failed
2016-11-03 23:44:52.000 subscription: 0300: "scan" unsubscribing

The same for other known mux from my TV area. I'm still thinking that there's a problem with open source drivers in 4.x kernels but I don't know why ...

Thanks.
Tnix
 
Posts: 11
Joined: Fri Mar 18, 2016 12:06 am

Re: opensource drivers issue 1/3

Postby Tnix » Tue Aug 22, 2017 3:04 pm

Hello,

open source drivers for TBS5520 by CrazyCat (https://bitbucket.org/CrazyCat/) are still not working under Fedora Workstation 26. Next I report the issue following forum instructions:

- Description of the problem: compilation runs fine. The steps followed are:

Code: Select All Code
git clone https://bitbucket.org/CrazyCat/media_build.git
cd media_build
./build
sudo make install


- After reboot the system or plug/unplug the USB the systems logs are (journarctl --follow):

Code: Select All Code
ago 22 07:57:14 marine06 kernel: usb 3-2: new high-speed USB device number 10 using xhci_hcd
ago 22 07:57:14 marine06 kernel: usb 3-2: New USB device found, idVendor=734c, idProduct=5520
ago 22 07:57:14 marine06 kernel: usb 3-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
ago 22 07:57:14 marine06 mtp-probe[25070]: checking bus 3, device 10: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2"
ago 22 07:57:14 marine06 mtp-probe[25070]: bus: 3, device: 10 was not an MTP device
ago 22 07:57:14 marine06 kernel: dvb-usb: found a 'TBS 5520 USB2.0' in cold state, will try to load a firmware
ago 22 07:57:14 marine06 kernel: dvb-usb: downloading firmware from file 'dvb-usb-tbsqbox-id5520.fw'
ago 22 07:57:14 marine06 kernel: tbs5520: start downloading tbs5520 firmware
ago 22 07:57:14 marine06 kernel: usb 3-2: USB disconnect, device number 10
ago 22 07:57:14 marine06 kernel: tbs5520: end downloading tbs5520 firmware
ago 22 07:57:14 marine06 kernel: dvb-usb: found a 'TBS 5520 USB2.0' in warm state.
ago 22 07:57:14 marine06 kernel: dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
ago 22 07:57:14 marine06 kernel: dvbdev: DVB: registering new adapter (TBS 5520 USB2.0)
ago 22 07:57:14 marine06 kernel: dvb-usb: MAC address: 00:00:00:00:00:00
ago 22 07:57:14 marine06 kernel: i2c i2c-8: avl6882: attach failed family id mismatch
ago 22 07:57:14 marine06 kernel: TBS5520: frontend attach failed
ago 22 07:57:14 marine06 kernel: dvb-usb: no frontend was attached by 'TBS 5520 USB2.0'
ago 22 07:57:14 marine06 kernel: input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:14.0/usb3/3-2/input/input18
ago 22 07:57:14 marine06 kernel: dvb-usb: schedule remote query interval to 150 msecs.
ago 22 07:57:14 marine06 kernel: dvb-usb: TBS 5520 USB2.0 successfully initialized and connected.
ago 22 07:57:14 marine06 kernel: usbcore: registered new interface driver tbs5520
ago 22 07:57:14 marine06 baloo_file[4190]: QObject::connect: invalid null parameter
ago 22 07:57:14 marine06 kernel: dvb-usb: TBS 5520 USB2.0 successfully deinitialized and disconnected.
ago 22 07:57:14 marine06 /usr/libexec/gdm-x-session[3909]: (II) config/udev: Adding input device IR-receiver inside an USB DVB receiver (/dev/input/event17)
ago 22 07:57:14 marine06 /usr/libexec/gdm-x-session[3909]: (**) IR-receiver inside an USB DVB receiver: Applying InputClass "evdev keyboard catchall"
ago 22 07:57:14 marine06 /usr/libexec/gdm-x-session[3909]: (**) IR-receiver inside an USB DVB receiver: Applying InputClass "libinput keyboard catchall"
ago 22 07:57:14 marine06 /usr/libexec/gdm-x-session[3909]: (**) IR-receiver inside an USB DVB receiver: Applying InputClass "system-keyboard"
ago 22 07:57:14 marine06 /usr/libexec/gdm-x-session[3909]: (II) Using input driver 'libinput' for 'IR-receiver inside an USB DVB receiver'
ago 22 07:57:14 marine06 /usr/libexec/gdm-x-session[3909]: (EE) systemd-logind: failed to take device /dev/input/event17: No such device
ago 22 07:57:14 marine06 /usr/libexec/gdm-x-session[3909]: (**) IR-receiver inside an USB DVB receiver: always reports core events
ago 22 07:57:14 marine06 /usr/libexec/gdm-x-session[3909]: (**) Option "Device" "/dev/input/event17"
ago 22 07:57:14 marine06 /usr/libexec/gdm-x-session[3909]: (**) Option "_source" "server/udev"
ago 22 07:57:14 marine06 /usr/libexec/gdm-x-session[3909]: (EE) client bug: Invalid path /dev/input/event17
ago 22 07:57:14 marine06 /usr/libexec/gdm-x-session[3909]: (EE) libinput: IR-receiver inside an USB DVB receiver: Failed to create a device for /dev/input/event17
ago 22 07:57:14 marine06 /usr/libexec/gdm-x-session[3909]: (EE) PreInit returned 2 for "IR-receiver inside an USB DVB receiver"



... continue in the next reply
Last edited by Tnix on Tue Aug 22, 2017 3:08 pm, edited 1 time in total.
Tnix
 
Posts: 11
Joined: Fri Mar 18, 2016 12:06 am

Re: opensource drivers issue 2/3

Postby Tnix » Tue Aug 22, 2017 3:06 pm

... continue from the last reply


Code: Select All Code
ago 22 07:57:14 marine06 /usr/libexec/gdm-x-session[3909]: (II) UnloadModule: "libinput"
ago 22 07:57:14 marine06 baloo_file[4190]: QObject::connect: invalid null parameter
ago 22 07:57:14 marine06 baloo_file[4190]: QObject::connect: invalid null parameter
ago 22 07:57:14 marine06 kdeinit5[4072]: QObject::connect: invalid null parameter
ago 22 07:57:14 marine06 kdeinit5[4072]: QObject::connect: invalid null parameter
ago 22 07:57:14 marine06 kdeinit5[4072]: QObject::connect: invalid null parameter
ago 22 07:57:16 marine06 kernel: usb 3-2: new high-speed USB device number 11 using xhci_hcd
ago 22 07:57:16 marine06 kernel: usb 3-2: New USB device found, idVendor=734c, idProduct=5520
ago 22 07:57:16 marine06 kernel: usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
ago 22 07:57:16 marine06 kernel: usb 3-2: Product: TBS 5520
ago 22 07:57:16 marine06 kernel: usb 3-2: Manufacturer: TBS-Tech
ago 22 07:57:16 marine06 kernel: dvb-usb: found a 'TBS 5520 USB2.0' in cold state, will try to load a firmware
ago 22 07:57:16 marine06 kernel: dvb-usb: downloading firmware from file 'dvb-usb-tbsqbox-id5520.fw'
ago 22 07:57:16 marine06 kernel: tbs5520: start downloading tbs5520 firmware
ago 22 07:57:16 marine06 kernel: tbs5520: end downloading tbs5520 firmware
ago 22 07:57:16 marine06 kernel: dvb-usb: found a 'TBS 5520 USB2.0' in warm state.
ago 22 07:57:16 marine06 kernel: dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
ago 22 07:57:16 marine06 kernel: dvbdev: DVB: registering new adapter (TBS 5520 USB2.0)
ago 22 07:57:16 marine06 kernel: dvb-usb: MAC address: 00:00:00:00:00:00
ago 22 07:57:16 marine06 kernel: i2c i2c-8: avl6882: found id=0xb family_id=0x68624955
ago 22 07:57:16 marine06 kernel: i2c i2c-8: r848: Rafael R848 successfully attached
ago 22 07:57:16 marine06 kernel: tbs5520: TBS5520: frontend attached
ago 22 07:57:16 marine06 kernel: dvb-usb: no frontend was attached by 'TBS 5520 USB2.0'
ago 22 07:57:16 marine06 kernel: input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:14.0/usb3/3-2/input/input19
ago 22 07:57:16 marine06 kernel: dvb-usb: schedule remote query interval to 150 msecs.
ago 22 07:57:16 marine06 kernel: dvb-usb: TBS 5520 USB2.0 successfully initialized and connected.
ago 22 07:57:16 marine06 mtp-probe[25111]: checking bus 3, device 11: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2"
ago 22 07:57:16 marine06 mtp-probe[25111]: bus: 3, device: 11 was not an MTP device
ago 22 07:57:16 marine06 baloo_file[4190]: QObject::connect: invalid null parameter
ago 22 07:57:16 marine06 baloo_file[4190]: QObject::connect: invalid null parameter
ago 22 07:57:16 marine06 baloo_file[4190]: QObject::connect: invalid null parameter
ago 22 07:57:16 marine06 kdeinit5[4072]: QObject::connect: invalid null parameter
ago 22 07:57:16 marine06 kdeinit5[4072]: QObject::connect: invalid null parameter
ago 22 07:57:16 marine06 kdeinit5[4072]: QObject::connect: invalid null parameter
ago 22 07:57:16 marine06 /usr/libexec/gdm-x-session[3909]: (II) config/udev: Adding input device IR-receiver inside an USB DVB receiver (/dev/input/event17)
ago 22 07:57:16 marine06 /usr/libexec/gdm-x-session[3909]: (**) IR-receiver inside an USB DVB receiver: Applying InputClass "evdev keyboard catchall"
ago 22 07:57:16 marine06 /usr/libexec/gdm-x-session[3909]: (**) IR-receiver inside an USB DVB receiver: Applying InputClass "libinput keyboard catchall"
ago 22 07:57:16 marine06 /usr/libexec/gdm-x-session[3909]: (**) IR-receiver inside an USB DVB receiver: Applying InputClass "system-keyboard"
ago 22 07:57:16 marine06 /usr/libexec/gdm-x-session[3909]: (II) Using input driver 'libinput' for 'IR-receiver inside an USB DVB receiver'
ago 22 07:57:16 marine06 /usr/libexec/gdm-x-session[3909]: (II) systemd-logind: got fd for /dev/input/event17 13:81 fd 100 paused 0
ago 22 07:57:16 marine06 /usr/libexec/gdm-x-session[3909]: (**) IR-receiver inside an USB DVB receiver: always reports core events
ago 22 07:57:16 marine06 /usr/libexec/gdm-x-session[3909]: (**) Option "Device" "/dev/input/event17"
ago 22 07:57:16 marine06 /usr/libexec/gdm-x-session[3909]: (**) Option "_source" "server/udev"
ago 22 07:57:16 marine06 /usr/libexec/gdm-x-session[3909]: (II) event17 - (II) IR-receiver inside an USB DVB receiver: (II) is tagged by udev as: Keyboard
ago 22 07:57:16 marine06 /usr/libexec/gdm-x-session[3909]: (II) event17 - (II) IR-receiver inside an USB DVB receiver: (II) device is a keyboard
ago 22 07:57:16 marine06 /usr/libexec/gdm-x-session[3909]: (II) event17 - (II) IR-receiver inside an USB DVB receiver: (II) device removed
ago 22 07:57:16 marine06 /usr/libexec/gdm-x-session[3909]: (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/input/input19/event17"
ago 22 07:57:16 marine06 /usr/libexec/gdm-x-session[3909]: (II) XINPUT: Adding extended input device "IR-receiver inside an USB DVB receiver" (type: KEYBOARD, id 18)
ago 22 07:57:16 marine06 /usr/libexec/gdm-x-session[3909]: (**) Option "xkb_layout" "es"
ago 22 07:57:16 marine06 /usr/libexec/gdm-x-session[3909]: (II) event17 - (II) IR-receiver inside an USB DVB receiver: (II) is tagged by udev as: Keyboard
ago 22 07:57:16 marine06 /usr/libexec/gdm-x-session[3909]: (II) event17 - (II) IR-receiver inside an USB DVB receiver: (II) device is a keyboard
ago 22 07:57:16 marine06 kernel: BUG: unable to handle kernel NULL pointer dereference at           (null)
ago 22 07:57:16 marine06 kernel: IP: tbs5520_rc_query+0xcc/0x107 [dvb_usb_tbs5520]
ago 22 07:57:17 marine06 kernel: PGD 0
ago 22 07:57:17 marine06 kernel: P4D 0
ago 22 07:57:17 marine06 kernel:
ago 22 07:57:17 marine06 kernel: Oops: 0002 [#1] SMP
ago 22 07:57:17 marine06 kernel: Modules linked in: r848(OE) avl6882(OE) dvb_usb_tbs5520(OE) dvb_usb dvb_core rfcomm fuse xt_CHECKSUM ipt_MASQUERADE nf_nat_masquerade_ipv4 tun nf_conntrack_netbios_ns nf_conntrack_broadcast xt_CT ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_nat ebtable_broute bridge stp llc ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack libcrc32c iptable_mangle iptable_raw iptable_security ebtable_filter ebtables ip6table_filter ip6_tables cmac bnep binfmt_misc sunrpc vfat fat arc4 intel_rapl iwlmvm x86_pkg_temp_thermal intel_powerclamp coretemp mac80211 snd_hda_codec_realtek kvm_intel snd_hda_codec_hdmi snd_hda_codec_generic kvm iTCO_wdt
ago 22 07:57:17 marine06 kernel:  snd_hda_intel snd_hda_codec iwlwifi btusb btrtl irqbypass uvcvideo crct10dif_pclmul crc32_pclmul snd_hda_core iTCO_vendor_support btbcm msi_wmi snd_hwdep ghash_clmulni_intel snd_seq sparse_keymap intel_cstate videobuf2_vmalloc intel_uncore videobuf2_memops videobuf2_v4l2 snd_seq_device btintel videobuf2_core cfg80211 bluetooth intel_rapl_perf rtsx_usb_ms snd_pcm videodev memstick snd_timer media mei_me joydev ecdh_generic i2c_i801 lpc_ich rfkill snd mei soundcore shpchp ie31200_edac nuvoton_cir rc_core tpm_infineon tpm_tis tpm_tis_core tpm vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) rtsx_usb_sdmmc mmc_core rtsx_usb uas usb_storage i915 nouveau mxm_wmi ttm i2c_algo_bit drm_kms_helper alx crc32c_intel drm mdio wmi video i2c_dev
ago 22 07:57:17 marine06 kernel: CPU: 0 PID: 5826 Comm: kworker/0:1 Tainted: G           OE   4.12.5-300.fc26.x86_64 #1
ago 22 07:57:17 marine06 kernel: Hardware name: MICRO-STAR INTERNATIONAL CO., LTD MS-AE6711/MS-AE671, BIOS EAE67IMS V8.2 07/31/2014
ago 22 07:57:17 marine06 kernel: Workqueue: events legacy_dvb_usb_read_remote_control [dvb_usb]
ago 22 07:57:17 marine06 kernel: task: ffff987939858000 task.stack: ffffa55a89744000
ago 22 07:57:17 marine06 kernel: RIP: 0010:tbs5520_rc_query+0xcc/0x107 [dvb_usb_tbs5520]
ago 22 07:57:17 marine06 kernel: RSP: 0018:ffffa55a89747dd0 EFLAGS: 00010287
ago 22 07:57:17 marine06 kernel: RAX: ffffffffc0cd0148 RBX: 000000000000002a RCX: ffffffffc0cd0290
ago 22 07:57:17 marine06 kernel: RDX: 0000000000000029 RSI: ffff9879afa1d620 RDI: ffff987922a48ec8
ago 22 07:57:17 marine06 kernel: RBP: ffffa55a89747e20 R08: 000000000001d620 R09: ffffffffc0cce0fb
ago 22 07:57:17 marine06 kernel: R10: fffffd5c488591c0 R11: 0000000000000090 R12: ffffa55a89747e38
ago 22 07:57:17 marine06 kernel: R13: ffffffffc0cd0140 R14: 0000000000000000 R15: ffffa55a89747e3c
ago 22 07:57:17 marine06 kernel: FS:  0000000000000000(0000) GS:ffff9879afa00000(0000) knlGS:0000000000000000
ago 22 07:57:17 marine06 kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
ago 22 07:57:17 marine06 kernel: CR2: 0000000000000000 CR3: 0000000108e09000 CR4: 00000000001406f0
ago 22 07:57:17 marine06 kernel: Call Trace:
ago 22 07:57:17 marine06 kernel:  legacy_dvb_usb_read_remote_control+0x3f/0x100 [dvb_usb]
ago 22 07:57:17 marine06 kernel:  ? legacy_dvb_usb_read_remote_control+0x3f/0x100 [dvb_usb]
ago 22 07:57:17 marine06 kernel:  process_one_work+0x193/0x3c0
ago 22 07:57:17 marine06 kernel:  worker_thread+0x4a/0x3a0
ago 22 07:57:17 marine06 kernel:  kthread+0x125/0x140
ago 22 07:57:17 marine06 kernel:  ? process_one_work+0x3c0/0x3c0
ago 22 07:57:17 marine06 kernel:  ? kthread_park+0x60/0x60
ago 22 07:57:17 marine06 kernel:  ret_from_fork+0x25/0x30
ago 22 07:57:17 marine06 kernel: Code: 5d 41 5e 41 5f 5d 49 8d 62 f8 c3 85 db 7e d6 48 8b 45 b8 41 0f b6 4d 00 38 48 01 74 2c 49 8d 45 08 8d 53 ff 48 8d 0c d0 48 39 c8 <41> c7 06 00 00 00 00 74 b1 48 8b 55 b8 49 89 c5 48 83 c0 08 41




... continue in the next reply
Last edited by Tnix on Tue Aug 22, 2017 3:09 pm, edited 1 time in total.
Tnix
 
Posts: 11
Joined: Fri Mar 18, 2016 12:06 am

Re: opensource drivers issue 3/3

Postby Tnix » Tue Aug 22, 2017 3:08 pm

... continue from the last reply

Code: Select All Code
ago 22 07:57:17 marine06 kernel: RIP: tbs5520_rc_query+0xcc/0x107 [dvb_usb_tbs5520] RSP: ffffa55a89747dd0
ago 22 07:57:17 marine06 kernel: CR2: 0000000000000000
ago 22 07:57:17 marine06 kernel: ---[ end trace 9596ea94c8644b21 ]---
ago 22 07:57:18 marine06 abrt-dump-journal-oops[1179]: abrt-dump-journal-oops: Found oopses: 1
ago 22 07:57:18 marine06 abrt-dump-journal-oops[1179]: abrt-dump-journal-oops: Creating problem directories
ago 22 07:57:19 marine06 abrt-dump-journal-oops[1179]: Reported 1 kernel oopses to Abrt
ago 22 07:57:22 marine06 org.freedesktop.problems[903]: abrt-dbus: Lock file '.lock' is locked by process 25179
ago 22 07:57:22 marine06 abrt-notification[25180]: System encountered a non-fatal error in legacy_dvb_usb_read_remote_control()



- Output from 'lsusb' command:

Code: Select All Code
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 125f:a11a A-DATA Technology Co., Ltd.
Bus 004 Device 002: ID 0bda:0411 Realtek Semiconductor Corp.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 006: ID 5986:055c Acer, Inc
Bus 003 Device 005: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 003 Device 004: ID 0bda:5411 Realtek Semiconductor Corp.
Bus 003 Device 011: ID 734c:5520 TBS Technologies China
Bus 003 Device 008: ID 8087:07dc Intel Corp.
Bus 003 Device 007: ID 0bda:0139 Realtek Semiconductor Corp. RTS5139 Card Reader Controller
Bus 003 Device 002: ID 046d:c505 Logitech, Inc. Cordless Mouse+Keyboard Receiver
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


- Linux distribution data and 'uname -a' output:

Fedora Workstation 26 (x64)

Code: Select All Code
Linux marine06 4.12.5-300.fc26.x86_64 #1 SMP Mon Aug 7 15:27:25 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


Thanks for your support.
Tnix
 
Posts: 11
Joined: Fri Mar 18, 2016 12:06 am

Previous

Return to TBS5520 Multi-standard TV Tuner USB Box

Who is online

Users browsing this forum: No registered users and 8 guests