How can I catch the CRC-error in /var/log/syslog? Must I enable vdr debug logging or logging for vdr-plugin-ddci2.
Posts by haraldov
-
-
I reinstalled the server and now it works as expected. The only think i dropped when I setup my server was updated ddci2 drivers from the ppa:jasmin-jessich/media-build-dkms repository.
I do not know why the kernel crash was happing, but I must have done something with my server before this trouble.
Thank you for the help, again.
Harald
-
Quote
Did you rebuild the satip-plugin too ?
Yes, i rebuild the satip and the ddci2 plugin.
When I remove the ddci2 plugin vdr starts normal with vdr package 2.4.0-38yavdr0~bionic.
I will try to reinstall the server with yavdr again to see if it helps.
Do you know if I need the updated ddci2 drivers from ppa:jasmin-jessich/media-build-dkms. The kernel version I use now is Linux vdrsrv01 4.15.0-50-generic .
Thanks for the help.
Harald
-
HelmutB, with the latest vdr package update for yavdr (2.4.0-38yavdr0~bionic) I have problem using your vdr-2.4.0-camtweaks-1.patch.
Without the patch vdr start up without problem, but without multi channel decryption. When I rebuild the deb package with the patch it gives problem with ddci driver included in the kernel I believe.
The yavdr ansible vdr package 2.4.0-32yavdr0~bionic did not have these problems
My setup:
hts@vdrsrv01:~$ vdr -V
vdr (2.4.0/2.4.0) - The Video Disk Recorder
dbus2vdr (31) - control vdr via D-Bus
ddci2 (1.0.5) - External Digital Devices CI-Adapter
devstatus (0.4.1) - Status of dvb devices
live (2.3.1) - Live Interactive VDR Environment
markad (0.1.6) - Mark advertisements
satip (2.4.0) - SAT>IP Devices
softhddevice (0.7.0) - A software and GPU emulated HD device
streamdev-server (0.6.1-git) - VDR Streaming Server
- updated ddci2 drivers from ppa:jasmin-jessich/media-build-dkms
- Yavdr ansible vdr package from https://launchpad.net/~yavdr/+…xperimental-vdr/+packages .
The deb package version which do not work is vdr - 2.4.0-38yavdr0~bionic.
I have tried to removing these patches included after the update and rebuilding the deb package, but it do not help.
vdr-2.4.0-30-fix-ci-sendanswer.diff
vdr-2.4.0-31-fix-invalid-lock-sequence.diff
vdr-2.4.0-32-fix-remote-timers-lstt-550.diff
vdr-2.4.0-33-fix-compiler-warning-add-attr-packed.diff
vdr-2.4.0-34-fix-repeat-kbd.diff
May 17 20:39:39 vdrsrv01 kernel: [ 1246.221681] BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
May 17 20:39:39 vdrsrv01 kernel: [ 1246.221707] IP: ts_open+0x27/0xc0 [ddbridge]
May 17 20:39:39 vdrsrv01 kernel: [ 1246.221713] PGD 0 P4D 0
May 17 20:39:39 vdrsrv01 kernel: [ 1246.221720] Oops: 0000 [#1] SMP PTI
May 17 20:39:39 vdrsrv01 kernel: [ 1246.221725] Modules linked in: nls_iso8859_1 snd_hda_codec_hdmi snd_hda_codec_realtek input_leds snd_hda_codec_generic intel_rapl ddbridge ppdev cxd2099(CE) x86_pkg_temp_thermal snd_hda_intel intel_powerclamp snd_hda_codec dvb_core(OE) videobuf2_vmalloc videobuf2_memops coretemp snd_hda_core kvm snd_hwdep snd_pcm eeepc_wmi asus_wmi irqbypass videobuf2_core videodev snd_timer parport_pc sparse_keymap snd intel_cstate media parport intel_rapl_perf soundcore ie31200_edac mei_me wmi_bmof mei lpc_ich shpchp mac_hid sch_fq_codel nfsd auth_rpcgss nfs_acl lockd grace sunrpc ib_iser rdma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi ip_tables x_tables autofs4 btrfs zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1
May 17 20:39:39 vdrsrv01 kernel: [ 1246.223554] raid0 multipath linear hid_generic nouveau crct10dif_pclmul crc32_pclmul ghash_clmulni_intel cryptd mxm_wmi i2c_algo_bit ttm pata_acpi drm_kms_helper syscopyarea usbhid sysfillrect hid sysimgblt fb_sys_fops r8169 mii drm wmi video
May 17 20:39:39 vdrsrv01 kernel: [ 1246.224778] CPU: 2 PID: 9442 Comm: vdr Tainted: G C OE 4.15.0-50-generic #54-Ubuntu
May 17 20:39:39 vdrsrv01 kernel: [ 1246.225396] Hardware name: System manufacturer System Product Name/P8H61-M LX R2.0, BIOS 0608 08/10/2012
May 17 20:39:39 vdrsrv01 kernel: [ 1246.226031] RIP: 0010:ts_open+0x27/0xc0 [ddbridge]
May 17 20:39:39 vdrsrv01 kernel: [ 1246.226659] RSP: 0018:ffffaf8481bafb90 EFLAGS: 00010286
May 17 20:39:39 vdrsrv01 kernel: [ 1246.227290] RAX: 00000000ffffffea RBX: ffff90768e9909c0 RCX: 0000000000000002
May 17 20:39:39 vdrsrv01 kernel: [ 1246.227931] RDX: ffff90768e9909c0 RSI: ffff90763f56a200 RDI: ffff9076952aece8
May 17 20:39:39 vdrsrv01 kernel: [ 1246.228574] RBP: ffffaf8481bafbb0 R08: 0000000000000000 R09: 0000000000000000
May 17 20:39:39 vdrsrv01 kernel: [ 1246.229218] R10: ffff9076904f502e R11: 6b63000030636573 R12: ffff90763f56a200
May 17 20:39:39 vdrsrv01 kernel: [ 1246.229864] R13: 0000000000000000 R14: ffff90769266ed00 R15: ffffffffc0b72ac0
May 17 20:39:39 vdrsrv01 kernel: [ 1246.230511] FS: 00007f0b0435e680(0000) GS:ffff90769ed00000(0000) knlGS:0000000000000000
May 17 20:39:39 vdrsrv01 kernel: [ 1246.231163] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
May 17 20:39:39 vdrsrv01 kernel: [ 1246.231814] CR2: 0000000000000000 CR3: 00000000bf742004 CR4: 00000000001606e0
May 17 20:39:39 vdrsrv01 kernel: [ 1246.232464] Call Trace:
May 17 20:39:39 vdrsrv01 kernel: [ 1246.233127] dvb_device_open+0x95/0xe0 [dvb_core]
May 17 20:39:39 vdrsrv01 kernel: [ 1246.233772] chrdev_open+0xc4/0x1b0
May 17 20:39:39 vdrsrv01 kernel: [ 1246.234421] do_dentry_open+0x1c2/0x310
May 17 20:39:39 vdrsrv01 kernel: [ 1246.235055] ? __inode_permission+0x5b/0x160
May 17 20:39:39 vdrsrv01 kernel: [ 1246.235699] ? cdev_put.part.3+0x20/0x20
May 17 20:39:39 vdrsrv01 kernel: [ 1246.236341] vfs_open+0x4f/0x80
May 17 20:39:39 vdrsrv01 kernel: [ 1246.237210] path_openat+0x66e/0x1770
May 17 20:39:39 vdrsrv01 kernel: [ 1246.237837] do_filp_open+0x9b/0x110
May 17 20:39:39 vdrsrv01 kernel: [ 1246.238465] ? dentry_free+0x38/0x70
May 17 20:39:39 vdrsrv01 kernel: [ 1246.239094] ? __check_object_size+0xaf/0x1b0
May 17 20:39:39 vdrsrv01 kernel: [ 1246.239722] ? __alloc_fd+0x46/0x170
May 17 20:39:39 vdrsrv01 kernel: [ 1246.240351] do_sys_open+0x1bb/0x2c0
May 17 20:39:39 vdrsrv01 kernel: [ 1246.240977] ? do_sys_open+0x1bb/0x2c0
May 17 20:39:39 vdrsrv01 kernel: [ 1246.241610] SyS_openat+0x14/0x20
May 17 20:39:39 vdrsrv01 kernel: [ 1246.242238] do_syscall_64+0x73/0x130
May 17 20:39:39 vdrsrv01 kernel: [ 1246.242870] entry_SYSCALL_64_after_hwframe+0x3d/0xa2
May 17 20:39:39 vdrsrv01 kernel: [ 1246.243501] RIP: 0033:0x7f0b03cd8dae
May 17 20:39:39 vdrsrv01 kernel: [ 1246.244125] RSP: 002b:00007ffcb0804b30 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
May 17 20:39:39 vdrsrv01 kernel: [ 1246.244758] RAX: ffffffffffffffda RBX: 00007f0afdb9d4f8 RCX: 00007f0b03cd8dae
May 17 20:39:39 vdrsrv01 kernel: [ 1246.245398] RDX: 0000000000000001 RSI: 0000561927756990 RDI: 00000000ffffff9c
May 17 20:39:39 vdrsrv01 kernel: [ 1246.246029] RBP: 00007f0afdb9d4f4 R08: 0000000000000000 R09: 0000000000000000
May 17 20:39:39 vdrsrv01 kernel: [ 1246.246651] R10: 0000000000000000 R11: 0000000000000293 R12: 000056192774d980
May 17 20:39:39 vdrsrv01 kernel: [ 1246.247276] R13: 0000561927589340 R14: 0000000000000007 R15: 0000561927756990
May 17 20:39:39 vdrsrv01 kernel: [ 1246.247890] Code: 00 00 00 00 0f 1f 44 00 00 48 8b 96 c8 00 00 00 b8 ea ff ff ff 48 85 d2 74 69 55 48 89 e5 41 55 41 54 53 48 83 ec 08 4c 8b 6a 58 <49> 8b 55 00 4c 8b 62 60 8b 56 40 83 e2 03 74 2e 4d 85 ed 74 77
May 17 20:39:39 vdrsrv01 kernel: [ 1246.249185] RIP: ts_open+0x27/0xc0 [ddbridge] RSP: ffffaf8481bafb90
May 17 20:39:39 vdrsrv01 kernel: [ 1246.249826] CR2: 0000000000000000
May 17 20:39:39 vdrsrv01 kernel: [ 1246.250496] ---[ end trace 3a33f509b139d6d7 ]---
Thanks
Harald
-
HelmutB , my Conax card was updated today 01.05 with new subscription from Canal Digital cabel Norway and I have no problems with Livetv watching. So it seems the vdr-2.4.0-MtdCat-Crc.patch works updating the emm.
Thanks for your help.
Harald
CodeMay 1 09:35:19 vdrsrv01 vdr: [7830] CAM 1: 'Name: Services 2 ' May 1 09:35:19 vdrsrv01 vdr: [7830] CAM 1: ' - Start date: 01. May 2019' May 1 09:35:19 vdrsrv01 vdr: [7830] CAM 1: ' (01000008)' May 1 09:35:19 vdrsrv01 vdr: [7830] CAM 1: ' - End date: 31. May 2019' May 1 09:35:19 vdrsrv01 vdr: [7830] CAM 1: ' - Start date: 01. Apr 2019' May 1 09:35:19 vdrsrv01 vdr: [7830] CAM 1: ' (01000008)' May 1 09:35:19 vdrsrv01 vdr: [7830] CAM 1: ' - End date: 30. Apr 2019'
-
Yes. I going to give you a update. It looks like the card is going to be updated after 30 April 2019.
CodeApr 22 10:44:31 vdrsrv01 vdr: [986] CAM 1: 'Name: Packages 2 ' Apr 22 10:44:31 vdrsrv01 vdr: [986] CAM 1: ' - Start date: 01. Apr 2019' Apr 22 10:44:31 vdrsrv01 vdr: [986] CAM 1: ' (01000002)' Apr 22 10:44:31 vdrsrv01 vdr: [986] CAM 1: ' - End date: 30. Apr 2019'
Harald
-
Thanks HelmutB for quick reply and help. You guessed right about how to fix the delay.
The solution was to update the vdr deb package with your camtweaks-patch and installed the new vdr and vdr-dev debpackage. Then I updated the vdr-plugin-ddci2 and vdr-plugin-satip deb package with the new ci.h header file from the vdr-dev debpackage. Now the descrambling works for four channels at the same time. (:-) .
For your information the yavdr vdr package use your other patches.
vdr-2.4.0-MtdMapSid-2.patch
vdr-2.4.0-mtdcat-crc.patch
Thanks for your effort. Sie müssen noch ein schönes Osterfest haben.
Harald -
HelmutB , I have tried to use your camtweaks patch for enabling descrambling more than one channel with MTD, but it do not work as expected. My problem are similar to corvy here: New to VDR - install
Without the patch it works on Canal Digital cabel with a valid smartcard, but it only decodes one channel at a time. My setup is yavdr ansible installation with all the patches for vdr, ddci2 and satip plugin (Octopus net), media-build-dkms kernel from jasmin to get the latest kernel drivers for the digital device CI. I use this CAM http://www.x-sat.no/common-int…fi-4-cam-fra-neotion.html, which can decode 4 channels at the same time.
When I use your patch vdr crash when I enable the patch (EnableCaModuleTweaks = 1) and when I not enable it (EnableCaModuleTweaks = 0). From the log it looks like "not all CAM slots ready after 30 seconds" message are the problem. The camtweaks.conf looks like this:
Code
Display More# --- CaModule-Tweaks configfile (experimental) --- # CAM lines are added by VDR # Format [ (*) -> user configurable ]: # (*)Flags,(*)Limit,<AppManufacturer:ManufacturerCode,CamTitle> # # Flags (uint32) : OR'ed combination of: # CAMTWEAK_ENABLED 0x1 - enable/disable tweaks for this module # CAMTWEAK_FORCE_MCD 0x2 - force multi channel decryption (skip CA_PMT querying) # CAMTWEAK_AVOID_MTD 0x4 - not all CAMs will work with the MTD generated PIDs # # Limit (int) : the number of programs the CAM can decrypt simultaneously # : (applies only if CAMTWEAK_FORCE_MCD is set): # 0 -> no limit (for testing, up to VDR/CAM failure), 1 -> no MCD, 2...n -> a save CAM limit # # Example: 0x3,2,<... -> tweaks enabled, MCD forced, MTD allowed, CAM can deyrypt 2 programs # 0x3,4,<0B00:8001,Conax PRO CAM>
I hope you can give me some advice what to try next.
Thanks Harald
-
lostinspc, you can build the newest DD Octonet firmware yourself following the instructions here: https://github.com/DigitalDevices/octonet
You can also see the newest commits to the octonet firmware here: https://github.com/DigitalDevices/octonet/commits/master
-
Thanks Frodo your feedback. I am going to ask DD and my PayTV provider for help first.
For the record I use Conax as the encryption system and the PayTV provider is Canal Digital cabel.
Gruss
Harald
-
corvy, which type of cam do you had success with?
I have a DD Octopusnet dvb-c which has two cardreaders embedded. I have tried to use the CAM for IDTV (Smit CI+ MPEG-2/MPEG-4) and the smartcard, which Canal Digital delivered , but with no success. I can only scan and see freeeview channels in vlc. The smartcard works without CAM.
Do you have some guidance?
-
corvy, if you want you can post your initial scan file to the mailinglist linuxtv-commits@linuxtv.org.
The dvbscan utility repo will be updated and you can use the new scan file for Canal Digital dvb-c, when your distro update the dvbscan tool.
Look here: https://www.linuxtv.org/wiki/index.php/Dvbscan#Also_See
QuoteIf you choose to create an initial scan file (and you know the name of your local transmitter or cable provider), you can send the resulting file to the dvb mailing list after checking that it hasn't already been posted or added to the scan directory in the dvb-apps repository. NOTE: w_scan >= 20090504 needs additionally option -c <COUNTRY>
In addition, w_scan can also generate a channels.conf file.
-
Quote
The playbook does not yet handle the automatic display configuration for Intel IGPs, so you need to configure Xorg yourself if you want to use a mode with 50Hz refresh rate.
Tried to use fnu 's approch to make a xorg.conf, but did not work for me. I think it was something wrong with the xorg.conf file I made.
But I found another way which works to give a 50 HZ refresh rate.
I followed this wiki to make a xorg.conf https://wiki.archlinux.org/ind…ng_undetected_resolutions.
First we run
cvt
to get the Modeline for the resolution we want:Codehts@vdrsrv02:~$ cvt 1920 1080 50 # 1920x1080 49.93 Hz (CVT 2.07M9) hsync: 55.62 kHz; pclk: 141.50 MHz Modeline "1920x1080_50.00" 141.50 1920 2032 2232 2544 1080 1083 1088 1114 -hsync +vsync
Once a suitable resolution is found using cvt, the mode can be permanently added by creating an entry in
/etc/X11/xorg.conf.d/
Code
Display More/etc/X11/xorg.conf.d/10-monitor.conf ----------------------------------------------------------------------------------------------- Section "Monitor" Identifier "HDMI1" Modeline "1920x1080_50.00" 141.50 1920 2032 2232 2544 1080 1083 1088 1114 -hsync +vsync Option "PreferredMode" "1920x1080_50.00" EndSection Section "Screen" Identifier "Screen0" Monitor "HDMI1" DefaultDepth 24 SubSection "Display" Modes "1920x1080_50.00" EndSubSection EndSection Section "Device" Identifier "Device0" Driver "intel" EndSection
When the X server is restarted, you should be able to set the new resolution.
-
Quote
I love the fact that dvblink/tvmosaic creates images in kodi for recordings, and GUI candy in EPG would be nice
You can try IPTV Simple PVR w/Recording Support (IPTV with recording) which support importing xmltv files and gives you GUI candy. You only need to install the with vdr-plugin-streamdev-server which gives you m3u-playlist which you import into iptv simple pvr client.
Harald
-
Quote
when you use honeybee do you get images in the GUI of Kodi as-well (or do you only use OSD directly from VDR?
corvy, Kodi get the epg-images from vdr epg database. But the problem is to download the episode images from honeybee to /var/lib/epgsources/imgfolder, transform the xmltv file from https reference to file reference and import this into the xmltv2vdr plugin for each episode.
Xmltv2vdr do not support downloading images from Internet, only serve the filepath for the imagefile to vdr.
You need to use the Kodi Leia build for epg image support.
Example : transform the icon tag in xml file from https reference to file reference
Code
Display More<programme start="20181112225000 +0100" stop="20181112234500 +0100" channel="1502.honeybee.it"> <title lang="no">Intruders</title> <sub-title lang="no">Time Has Come Today</sub-title> <desc lang="no">I Detroit blir en drømmeleilighet et mareritt på grunn av en urenslig nabo. I California må en mor beskytte sønnen mot giftige slanger.</desc> <credits> <director>Eduardo Sánchez</director> <actor role="Jack Whelan">John Simm</actor> <actor role="Richard Shepherd">James Frain</actor> <actor role="Gary Fischer">Tory Kittles</actor> <actor role="Amy Whelan">Mira Sorvino</actor> <actor role="Madison O'Donnell">Millie Bobby Brown</actor> </credits> <date>20140906</date> <category lang="en">series</category> <category lang="en">Animals</category> <category lang="en">Drama</category> <category lang="en">Mystery</category> <category lang="en">Reality</category> <category lang="en">Science fiction</category> <category lang="en">Thriller</category> <icon src="https://old.cdn.actor/episode/image/763373/w780_rUpyCOLgWlaOCsn05T8xIHnSOBO.jpg"/> <country>US</country> <episode-num system="xmltv_ns">0 . 2 . </episode-num> <star-rating> <value>6.7 / 10</value> </star-rating> </programme>
Code
Display MoreHere is the episode image this https reference: <icon src="https://old.cdn.actor/episode/image/763373/w780_rUpyCOLgWlaOCsn05T8xIHnSOBO.jpg"/> We need to have it like this I believe: <icon src="file:///var/lib/epgsources/imgfolder/old.cdn.actor/episode/image/763373/w780_rUpyCOLgWlaOCsn05T8xIHnSOBO.jpg"/> We can do this with xslt transform file. Example from tvm2xmltv <xsl:variable name="PICS"> <xsl:for-each select="Bild [@Kategorie='ImportBild']|*/Bild [@Kategorie='ImportBild']"> <xsl:element name="icon"> <xsl:attribute name="src">file:///var/lib/epgsources/tvm2xmltv-img/<xsl:value-of select="BildDatei/BildURL"/></xsl:attribute> </xsl:element> <xsl:text>
</xsl:text> </xsl:for-each> </xsl:variable>
Sorry to say it, but if you want epg images in Kodi tvheadend is a better choice. But I going to try to find a way to this also in vdr.
-
-
Some pictures:
[Blocked Image: https://imgur.com/a/sJggo4F]
-
Quote
The playbook does not yet handle the automatic display configuration for Intel IGPs, so you need to configure Xorg yourself if you want to use a mode with 50Hz refresh rate.
seahawk1986 , Thank you for answer and link. I am going to make a xorg.conf with fnu 's approch.
-
Quote
"use the vdr osd to map the channel id to the vdr channel names and setup the information you want to import" to work
Sorry for being unclear, Corvy.
What I meant was to navigate in vdr menu to the xmltv2vdr plugin like this: Setup-->Plugins-->xmltv2vdr. After you have done this you must choose "epg sources"-->honeybee. You get a new menu where you can choose "update option" and "channels provided". In the menu "channels provided" you must map (select the channel id in the control file - example 1879.honeybee.it (NRK1) to the vdr channel name (NRK1 Sørlandet, which vdr writes to the channels.conf ( /var/lib/vdr/channels.conf)).
In "epg source channel options" you can specify what you want to import from the xmltv file (example category, credits, rating, season and episode...) and if you want to merge the data with the eit data or create a new epg for the channel.
Every mapping is written to the vdr "setup.conf" file.
.
Codehts@vdrsrv02:/etc/vdr$ ls -l /var/lib/vdr/setup.conf -rw-r--r-- 1 vdr vdr 6346 Nov 14 08:31 /var/lib/vdr/setup.conf hts@vdrsrv02:/etc/vdr$ less /var/lib/vdr/setup.conf xmltv2vdr.channel.1879.honeybee.it = 0;5147;C-70-9-108 xmltv2vdr.channel.1880.honeybee.it = 0;5139;C-70-9-201 xmltv2vdr.channel.1881.honeybee.it = 0;5139;C-70-9-301 xmltv2vdr.channel.2013.honeybee.it = 0;5139;C-70-2-6401 xmltv2vdr.channel.2048.honeybee.it = 0;5139;C-70-6-410
-
Corvy
For a minimal xmltv2vdr setup you need to do this:
Source: https://www.linuxtv.org/vdrwiki/index.php/Xmltv2vdr-plugin
Code
Display More1) Make a control file in /var/lib/epgsources with a name you choose yourself without extension. I named the control file "honeybee". It must be readable by the vdr user. The control file I use contain this content, because I want xmltv2vdr to read the xmltv file in /var/lib/epgsources. file 7 1879.honeybee.it;NRK1 1880.honeybee.it;NRK2 1881.honeybee.it;NRK3 2013.honeybee.it;TV2 2048.honeybee.it;TVNORGE The names NRK1, NRK2, NRK3 ... are from the channelid tag in the honeybee.xmltv file. You can write a human-friendly name after the semi-colon. This data is ignored by the xmltv2vdr plugin <channel id="1879.honeybee.it"> The channel id must not contain spaces. 2) Copy your xmltv file to /var/lib/epgsources. The name of the xmltv file must be the same as the controlfile with the extension xmltv. For me the xmltv file was named "honeybee.xmltv". hts@vdrsrv02:/var/lib/epgsources$ ls honeybee honeybee.xmltv 3) Then you must make a executable file in /usr/bin with the same name as the control file, but it must be executable. In a minimal setup you need only need this content in the file: #!/bin/sh hts@vdrsrv02:~$ chmod +x honeybee hts@vdrsrv02:~$ sudo cp honeybee /usr/bin/ If you want to extend this executable file to grab from xmltv source you can find more information here Grab xmltv and here grab xmltv2 After a restart of vdr you must use the vdr osd to map the channel id to the vdr channel names and setup the information you want to import. Hope it helps.