Willkommen Gast. Bitte einloggen oder registrieren.

Einloggen mit Benutzername, Passwort und Sitzungslänge

 
Erweiterte Suche

17457 Beiträge in 2091 Themen- von 2975 Mitglieder - Neuestes Mitglied: ftothem

Dezember 12, 2017, 06:16:26 pm
Sundtek Support ForumEnglishSundtek MediaTV Pro (Europe)Driversfailed to open /dev/dvb/adapter0/dvr0
Seiten: [1]
Drucken
Autor Thema: failed to open /dev/dvb/adapter0/dvr0  (Gelesen 9101 mal)
jimmers
Newbie
*
Beiträge: 8


Profil anzeigen
« am: Juli 03, 2014, 03:39:21 am »

When trying to scan DVB-C MUX the Linux (Debian) driver crash.
Im using the latest driver from http://sundtek.de/media/sundtek-netinst-driver.deb

device 0: [MediaTV Pro III USB (EU)]  DVB-C, DVB-T, DVB-T2, ANALOG-TV, FM-RADIO, REMOTE-CONTROL, OSS-AUDIO, RDS
  [INFO]:
     STATUS: ACTIVE
  [BUS]:
     ID: 3-4
  [SERIAL]:
     ID: U140614125125
  [DVB-C]:
     FRONTEND: /dev/dvb/adapter0/frontend0
     DVR: /dev/dvb/adapter0/dvr0
     DMX: /dev/dvb/adapter0/demux0
  [DVB-T]:
     FRONTEND: /dev/dvb/adapter0/frontend0
     DVR: /dev/dvb/adapter0/dvr0
     DMX: /dev/dvb/adapter0/demux0
  [DVB-T2]:
     FRONTEND: /dev/dvb/adapter0/frontend0
     DVR: /dev/dvb/adapter0/dvr0
     DMX: /dev/dvb/adapter0/demux0
  [ANALOG-TV]:
     VIDEO0: /dev/video0
     VBI0: /dev/vbi0
  [FM-RADIO]:
     RADIO0: /dev/radio0
     RDS: /dev/rds0
  [REMOTECONTROL]:
     INPUT0: /dev/mediainput0
  [OSS]:
     OSS0: /dev/dsp0


When trying to start Tvheadend:
2014-07-03 03:31:55.771 [   INFO] mpegts: 346000 - tuning on Sundtek DVB-C (III) : DVB-C #0
2014-07-03 03:31:55.831 [   INFO] subscription: 'scan' subscribing to mux, weight: 4, adapter: 'Sundtek DVB-C (III) : DVB-C #0', network: 'comhem', mux: '346000', hostname: '<N/A>', username: '<N/A>', client: '<N/A>'
2014-07-03 03:31:55.920 [  ERROR] linuxdvb: Sundtek DVB-C (III) : DVB-C #0 - failed to open /dev/dvb/adapter0/dvr0
2014-07-03 03:31:55.926 [  ERROR] linuxdvb: Sundtek DVB-C (III) : DVB-C #0 - failed to open dmx for pid 0 [e=No such device or address]
2014-07-03 03:31:55.932 [  ERROR] linuxdvb: Sundtek DVB-C (III) : DVB-C #0 - failed to open dmx for pid 1 [e=No such device or address]


When trying to scan witg dvr0:
:~$ sudo /opt/bin/mediaclient --cat /dev/dvb/adapter0/dvr0 | /opt/bin/mediaclient --pipecount=1000
[2014-07-03 03:34:19]          0 bytes |       0.00 kb |       0.00 mb transferred
[2014-07-03 03:34:20]          0 bytes |       0.00 kb |       0.00 mb transferred
[2014-07-03 03:34:21]          0 bytes |       0.00 kb |       0.00 mb transferred
[2014-07-03 03:34:22]          0 bytes |       0.00 kb |       0.00 mb transferred
^C

:~$ sudo /opt/bin/mediaclient -e
Driver is currently not running, please start it as root
mediaclient --start
:~$


Have tested with
$ /opt/bin/mediaclient --build
Build date: 2014-07-01 14:36:39

$ /opt/bin/mediaclient --build
Build date: 2014-04-23 13:43:23
« Letzte Änderung: Juli 03, 2014, 03:54:50 am von jimmers » Gespeichert
Sundtek
Administrator
Hero Member
*****
Beiträge: 7517


Profil anzeigen
« Antworten #1 am: Juli 03, 2014, 04:19:42 am »

What does "dmesg" show up?

Is the device attached to a USB 3.0 port?

Only use the latest driver.

possibly contact us via chat either Skype (Sundtek) or http://chat.sundtek.de
I guess something else is wrong on your system, we're using those devices every day now and also tvheadend is running permanently with it on our NAS.
« Letzte Änderung: Juli 03, 2014, 05:01:07 am von Sundtek » Gespeichert

Sundtek Ltd. Support Engineer
jimmers
Newbie
*
Beiträge: 8


Profil anzeigen
« Antworten #2 am: Juli 03, 2014, 01:09:55 pm »

Is the device attached to a USB 3.0 port?

Yup.

Changed to a USB 2.0 and now it works.
Gespeichert
Sundtek
Administrator
Hero Member
*****
Beiträge: 7517


Profil anzeigen
« Antworten #3 am: Juli 03, 2014, 01:22:45 pm »

Please note this is not a bug of our driver, but a bug of the Linux system in general at the moment.
Gespeichert

Sundtek Ltd. Support Engineer
jimmers
Newbie
*
Beiträge: 8


Profil anzeigen
« Antworten #4 am: Juli 03, 2014, 02:13:39 pm »

But Im still having issues with random crashes.
It may work for about 10-30 min I think.

Tvheadend:
2014-07-03 14:08:33.456 [   INFO] subscription: 'scan' subscribing to mux, weight: 1, adapter: 'Sundtek DVB-C (III) : DVB-C #0', network: 'comhem', mux: '474000'
2014-07-03 14:08:36.892 [  ERROR] linuxdvb: Sundtek DVB-C (III) : DVB-C #0 - read() error 32 (Broken pipe)
2014-07-03 14:08:36.913 [   INFO] linuxdvb: adapter removed /dev/dvb/adapter0

Dmesg:
[ 1592.695802] [UFW BLOCK] IN=eth0 OUT= MAC=1c:6f:65:ad:eb:f5:00:11:32:15:03:0a:08:00 SRC=192.168.10.102 DST=192.168.10.100 LEN=371 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1900 DPT=10133 LEN=351
[ 1607.297912] ehci_hcd 0000:00:12.2: force halt; handhake ffffc9000063c024 00004000 00000000 -> -110
[ 1607.297954] usb 2-1: usbfs: usb_submit_urb returned -110
[ 1607.297973] ehci_hcd 0000:00:12.2: HC died; cleaning up
[ 1607.298010] usb 2-1: USB disconnect, address 2
Gespeichert
Sundtek
Administrator
Hero Member
*****
Beiträge: 7517


Profil anzeigen
« Antworten #5 am: Juli 03, 2014, 02:23:05 pm »

Do you have another Linux system? There is some networking mode available so you can stream the entire device to Linux.
This very likely seems to be a usb controller issue on that system, what PC is that?

You might also try to switch to isochronous transfers this would be the second option that is available

/opt/bin/mediaclient --dtvtransfermode=iso -d /dev/dvb/adapter0/frontend0

afterwards reconnect the device

If you have a look here someone had a similar issue with a usb harddisk
http://ubuntuforums.org/showthread.php?t=1972450

A kernel Update was required in his case actually.
« Letzte Änderung: Juli 03, 2014, 02:26:27 pm von Sundtek » Gespeichert

Sundtek Ltd. Support Engineer
jimmers
Newbie
*
Beiträge: 8


Profil anzeigen
« Antworten #6 am: Juli 03, 2014, 02:37:51 pm »

Im running an old Debian dist with kernel 2.6.32-5-amd64.
I will try to upgrade, if possible, later tonight to a newer kernel.
Gespeichert
Sundtek
Administrator
Hero Member
*****
Beiträge: 7517


Profil anzeigen
« Antworten #7 am: Juli 03, 2014, 02:40:34 pm »

I guess you would need some older hardware for this old Kernel, we tested the device down to 2.6.15 (but also with old hardware which had mature USB controller driver support). USB 3.0 controllers are definitely not well supported with those old kernels.
Gespeichert

Sundtek Ltd. Support Engineer
jimmers
Newbie
*
Beiträge: 8


Profil anzeigen
« Antworten #8 am: Juli 04, 2014, 03:51:35 pm »

I have now updated the whole system to Debian wheezy.
But I have the similar disconnects on the USB.

Linux fractalxl 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3+deb7u2 x86_64 GNU/Linux

Dmesg:
[ 2996.638394] ehci_hcd 0000:00:12.2: force halt; handshake ffffc9000061c024 00004000 00000000 -> -110
[ 2996.638406] ehci_hcd 0000:00:12.2: HC died; cleaning up
[ 2996.638463] usb 1-1: usbfs: usb_submit_urb returned -110
[ 2996.638549] usb 1-1: USB disconnect, device number 2
[ 2997.441723] irq 17: nobody cared (try booting with the "irqpoll" option)
[ 2997.441729] Pid: 0, comm: swapper/1 Tainted: P           O 3.2.0-4-amd64 #1 Debian 3.2.57-3+deb7u2
[ 2997.441732] Call Trace:
[ 2997.441734]  <IRQ>  [<ffffffff81092bad>] ? __report_bad_irq+0x2c/0xb5
[ 2997.441744]  [<ffffffff81092f6a>] ? note_interrupt+0x170/0x1f2
[ 2997.441748]  [<ffffffff8109132c>] ? handle_irq_event_percpu+0x15f/0x17d
[ 2997.441752]  [<ffffffff81013726>] ? read_tsc+0x5/0x14
[ 2997.441755]  [<ffffffff810662ed>] ? timekeeping_get_ns+0xd/0x2a
[ 2997.441758]  [<ffffffff8109137e>] ? handle_irq_event+0x34/0x52
[ 2997.441762]  [<ffffffff8106c189>] ? arch_local_irq_save+0x11/0x17
[ 2997.441765]  [<ffffffff810936e1>] ? handle_fasteoi_irq+0x7c/0xaf
[ 2997.441769]  [<ffffffff8100f9e1>] ? handle_irq+0x1d/0x21
[ 2997.441772]  [<ffffffff8100f5ba>] ? do_IRQ+0x42/0x98
[ 2997.441776]  [<ffffffff8134feee>] ? common_interrupt+0x6e/0x6e
[ 2997.441777]  <EOI>  [<ffffffff8102b36c>] ? native_safe_halt+0x2/0x3
[ 2997.441783]  [<ffffffff81014614>] ? default_idle+0x47/0x7f
[ 2997.441786]  [<ffffffff8101470b>] ? amd_e400_idle+0xbf/0xe4
[ 2997.441790]  [<ffffffff8100d24c>] ? cpu_idle+0xaf/0xf2
[ 2997.441793]  [<ffffffff81341dec>] ? start_secondary+0x1d5/0x1db
[ 2997.441795] handlers:
[ 2997.441819] [<ffffffffa007c121>] usb_hcd_irq
[ 2997.441826] [<ffffffffa007c121>] usb_hcd_irq
[ 2997.441833] [<ffffffffa007c121>] usb_hcd_irq
[ 2997.441842] [<ffffffffa004dcfd>] ata_bmdma_interrupt
[ 2997.441847] [<ffffffffa0062660>] ahci_interrupt
[ 2997.441849] Disabling IRQ #17
Gespeichert
jimmers
Newbie
*
Beiträge: 8


Profil anzeigen
« Antworten #9 am: Juli 04, 2014, 08:03:00 pm »

I do not get this, now when using USB 3.0 it seem to work.
But not if I connect to the USB 2.0 port.

[ 4247.364103] usb 3-1: new high-speed USB device number 4 using xhci_hcd
[ 4247.385654] usb 3-1: New USB device found, idVendor=2659, idProduct=1210
[ 4247.385664] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4247.385671] usb 3-1: Product: MediaTV Pro III (EU)
[ 4247.385677] usb 3-1: Manufacturer: Sundtek
[ 4247.385681] usb 3-1: SerialNumber: U140614125125
[ 4249.149799] input: Sundtek Ltd. Remote Control as /devices/virtual/input/input14

I will keep you updated if anything changes.
Gespeichert
Sundtek
Administrator
Hero Member
*****
Beiträge: 7517


Profil anzeigen
« Antworten #10 am: Juli 04, 2014, 08:05:25 pm »

What does lspci show up?

Yet it's still a bug in the USB controller driver of linux which affects you.
Gespeichert

Sundtek Ltd. Support Engineer
jimmers
Newbie
*
Beiträge: 8


Profil anzeigen
« Antworten #11 am: Juli 05, 2014, 12:12:01 am »

lspci:

00:00.0 Host bridge: Advanced Micro Devices [AMD] RS880 Host Bridge
00:01.0 PCI bridge: Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (int gfx)
00:09.0 PCI bridge: Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 4)
00:0a.0 PCI bridge: Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 5)
00:11.0 SATA controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices [AMD] nee ATI SBx00 SMBus Controller (rev 42)
00:14.1 IDE interface: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 IDE Controller (rev 40)
00:14.2 Audio device: Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel HDA) (rev 40)
00:14.3 ISA bridge: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: Advanced Micro Devices [AMD] nee ATI SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:15.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0)
00:15.1 PCI bridge: Advanced Micro Devices [AMD] nee ATI SB700/SB800/SB900 PCI to PCI bridge (PCIE port 1)
00:16.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control
01:05.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RS880 [Radeon HD 4250]
01:05.1 Audio device: Advanced Micro Devices [AMD] nee ATI RS880 HDMI Audio [Radeon HD 4200 Series]
02:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
04:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)
05:00.0 SATA controller: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 02)
05:00.1 IDE interface: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 02)
Gespeichert
Sundtek
Administrator
Hero Member
*****
Beiträge: 7517


Profil anzeigen
« Antworten #12 am: Juli 05, 2014, 12:45:33 am »

AMD ... I thought so. USB Controller drivers for their boards need some workarounds.
Do you have any other Linux based system? You could stream DVB-C to that PC and create a virtual interface.

Small embedded boards like beaglebone black or several USB 2.0 based NAS systems also work nicely with it.
Gespeichert

Sundtek Ltd. Support Engineer
jimmers
Newbie
*
Beiträge: 8


Profil anzeigen
« Antworten #13 am: Juli 05, 2014, 02:30:37 am »

I have not have any issues today since the update to the latest kernel and using the xhci_hcd instead of ehci_hcd. But I have not restarted the computer since I got it to work so hopefully this wont create any issues further on.
Gespeichert
Seiten: [1]
Drucken
Gehe zu: