Eurocardsharing

Go Back   Eurocardsharing > Sharing receivers > VDR and Kaffeine

VDR and Kaffeine Discussion, Ubuntu 11.04 + sasc-ng dvbloopback at Sharing receivers forum; Hi, Since Ubuntu 11.04 is released, I decided to upgrade my PC. However, since the upgrade, I can't get the ...

Reply
 
LinkBack Thread Tools Display Modes
Ubuntu 11.04 + sasc-ng dvbloopback
Old
  (#1)
tomvleeuwen
Junior Member
 
tomvleeuwen's Avatar
 
Offline
Posts: 24

Level: 3 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 65
Magic: 8 / 1514
Experience: 62%

Thanks: 8
Thanked 5 Times in 4 Posts
Join Date: Jan 2010
Location: Netherlands
Ubuntu 11.04 + sasc-ng dvbloopback - 06-May-2011, 00:43

Hi,

Since Ubuntu 11.04 is released, I decided to upgrade my PC. However, since the upgrade, I can't get the dvbloopback module for sasc-ng working. I have been trying to fix the module without luck.

Has anyone fixed the dvbloopback module in such a way that it works under kernel 2.6.38?

Thanks


P4 Ubuntu 10.04 cardserver with Smargo and CCcam 2.1.2
Core 2 Quad Ubuntu 11.04 with two budget-DVB-C and MythTV
Dreambox 500 C (Clone)
Dreambox 800 with cable tuner (Clone)
   
Reply With Quote
Old
  (#2)
himself
Member
 
himself's Avatar
 
Offline
Posts: 83

Level: 8 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 176
Magic: 27 / 4754
Experience: 6%

Thanks: 5
Thanked 15 Times in 15 Posts
Join Date: Oct 2008
Location: Луцьк
18-June-2011, 12:58

http://deve.loping.net/projects/patches/download/53
   
Reply With Quote
Sponsored Links
Old
  (#3)
hansch
Junior Member
 
hansch's Avatar
 
Offline
Posts: 3

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 2
Magic: 1 / 73
Experience: 10%

Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Sep 2008
Age: 43
22-June-2011, 00:46

Apparently some file needs to be patched, but I am at a loss as to how to go about this. For Ubuntu 11.04 I am unable to even compile sasc-ng, let alone get it working. I'm now running the 2.6.35 kernel from 10.10 on 11.04 to have a working MythTV environment.

Can someone explain more thoroughly what needs to be done to have sasc-ng working on ubuntu 11.04?

Thansk in advance

HansCH
   
Reply With Quote
Old
  (#4)
himself
Member
 
himself's Avatar
 
Offline
Posts: 83

Level: 8 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 176
Magic: 27 / 4754
Experience: 6%

Thanks: 5
Thanked 15 Times in 15 Posts
Join Date: Oct 2008
Location: Луцьк
22-June-2011, 13:01

there is a long thread on dvbn happysat org abou this. find it in the linux section!
   
Reply With Quote
Old
  (#5)
candymirror
Junior Member
 
candymirror's Avatar
 
Offline
Posts: 2

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 0
Magic: 0 / 20
Experience: 2%

Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Sep 2007
Location: Roden, The Netherlands
22-June-2011, 13:09

Don't know if you're still stuck with this one. Until today I was still using kernel 2.6.35 just in order too keep mythtv with sasc's dvbloopback running.

I came acros this: http://forum.ubuntu.ru/index.php?PHPSESSID=qg235d6amjde78o1aq9ir209h3&top ic=79331.75

Assuming you've already got an instance of the open-sacs-ng source (like I did), you can skip Step 1.
Step 1; Install open-sasc-ng
Code:
cd /usr/local/src/
hg clone http://85.17.209.13:6100/sc
cd /usr/local/src/sc
chmod +x contrib/sasc-ng/configure
chmod +x contrib/sasc-ng/dvbloopback/module/config_dvb.pl
Step 2: Go to the source directory where you installed open-sasc-ng, normally if you used the open-sacs-ng tutorial this should be:
Code:
cd /usr/local/src/sc
Step 3: Open you're favorite editor, paste the code below and save the file as "2.6.38-sasc-ng.patch" (without the Qoutes)
I Used:
Code:
gedit 2.6.38-sasc-ng.patch
Past the code below, save and exit you're editor:
Code:
--- contrib/sasc-ng/dvbloopback/module/dvblb_forward.c	2011-04-25 02:44:10.511089600 +0300
+++ contrib/sasc-ng/dvbloopback/module/dvblb_forward.c	2011-04-24 21:04:17.000000000 +0300
@@ -166,9 +166,9 @@
 	struct file *ftmp = find_forwardmap(lbdev, f->private_data);
 	if (!ftmp || IS_ERR(ftmp))
 		return -EFAULT;
-	if (lbdev->forward_dev->fops &&lbdev->forward_dev->fops->ioctl)
-		return lbdev->forward_dev->fops->ioctl(
-		           ftmp->f_dentry->d_inode, ftmp, cmd, arg);
+	if (lbdev->forward_dev->fops &&lbdev->forward_dev->fops->unlocked_ioctl)
+		return lbdev->forward_dev->fops->unlocked_ioctl(
+		           ftmp, cmd, arg);
 	return -EFAULT;
 }
 
--- contrib/sasc-ng/dvbloopback/module/dvb_loopback.c	2011-04-25 02:44:10.511089600 +0300
+++ contrib/sasc-ng/dvbloopback/module/dvb_loopback.c	2011-04-25 00:42:54.234135688 +0300
@@ -118,9 +118,9 @@
 /* This is a copy of dvb_usercopy.  We need to do this because it isn't exported
    by dvbdev
 */
-static int dvblb_usercopy(struct inode *inode, struct file *file,
+static int dvblb_usercopy(struct file *file,
 		     unsigned int cmd, unsigned long arg,
-		     int (*func)(struct inode *inode, struct file *file,
+		     int (*func)(struct file *file,
 		     unsigned int cmd, void *arg))
 {
 	char    sbuf[128];
@@ -180,7 +180,7 @@
 	}
 
 	/* call driver */
-	if ((err = func(inode, file, cmd, parg)) == -ENOIOCTLCMD)
+	if ((err = func(file, cmd, parg)) == -ENOIOCTLCMD)
 		err = -EINVAL;
 
 	if (err < 0)
@@ -663,7 +663,7 @@
    dvb_generic_ioctl) which is called by dvblb_ioctl for device-0.  It is
    used to forward ioctl commands back to the userspace application
 */
-static int dvblb_looped_ioctl(struct inode *inode, struct file *f,
+static int dvblb_looped_ioctl(struct file *f,
 	unsigned int cmd, void *parg)
 {
 	int ret;
@@ -692,7 +692,7 @@
 	return ret;
 }
 
-static int dvblb_ioctl(struct inode *inode, struct file *f,
+static long dvblb_ioctl(struct file *f,
 	unsigned int cmd, unsigned long arg)
 {
 	void * parg = (void *)arg;
@@ -723,7 +723,7 @@
 		if (lbdev->forward_dev)
 			return dvblb_forward_ioctl(lbdev, f, cmd, arg);
 
-		return dvblb_usercopy (inode, f, cmd, arg,
+		return dvblb_usercopy (f, cmd, arg,
 		                       dvbdev->kernel_ioctl);
 	}
 	/* This is the userspace control device */
@@ -978,7 +978,7 @@
 	.write		= dvblb_write,
 	.poll		= dvblb_poll,
 	.mmap		= dvblb_mmap,
-	.ioctl		= dvblb_ioctl,
+	.unlocked_ioctl		= dvblb_ioctl,
 };
 
 static struct dvb_device dvbdev_looped = {
@@ -998,7 +998,7 @@
 	.write		= dvblb_write,
 	.poll		= dvblb_poll,
 	.mmap		= dvblb_mmap,
-	.ioctl		= dvblb_ioctl,
+	.unlocked_ioctl		= dvblb_ioctl,
 };
 
 static struct dvb_device dvbdev_userspace = {
--- contrib/sasc-ng/Makefile	2011-04-25 02:44:10.507089818 +0300
+++ contrib/sasc-ng/Makefile	2011-04-25 00:40:31.390323663 +0300
@@ -8,7 +8,7 @@
 
 CC       ?= gcc
 CXX      ?= g++
-CXXFLAGS ?= -Wall -D__user= -Werror 
+CXXFLAGS ?= -Wall -D__user= #-Werror 
 CFLAGS   ?= -Wall -D__user= 
 
 ifdef DVB_DIR
@@ -17,7 +17,7 @@
 endif
 
 DEFINES += -DRELEASE_VERSION=\"$(VERSION)\" -D__KERNEL_STRICT_NAMES
-INCLUDES += -Idvbloopback/module -I/lib/modules/$(shell uname -r)/build/include
+INCLUDES += -Idvbloopback/module -I/usr/include
 LBDIR = dvbloopback/src
 SCDIR = sc/PLUGINS/src/$(SCVER)
 SC_FLAGS = -O2 -fPIC -Wall -Woverloaded-virtual
@@ -57,7 +57,7 @@
 INC_DEPS := $(shell ls $(LBDIR)/*.h) dvbloopback/module/dvbloopback.h
 INC_DEPS_LB := $(shell ls dvblb_plugins/*.h)
 
-LIBS = -lpthread -lcrypto -lcrypt
+LIBS = -lpthread -lcrypto -lcrypt -lv4l1
 
 all: $(TOOL) libscanwrap.so
 
--- contrib/sasc-ng/sc/dvbdevice.cpp	2011-04-25 02:44:10.519089162 +0300
+++ contrib/sasc-ng/sc/dvbdevice.cpp	2011-04-24 21:04:17.000000000 +0300
@@ -10,7 +10,7 @@
 #include "include/vdr/dvbdevice.h"
 #include <errno.h>
 #include <limits.h>
-#include <linux/videodev.h>
+#include <libv4l1-videodev.h>
 #include <linux/dvb/audio.h>
 #include <linux/dvb/dmx.h>
 #include <linux/dvb/frontend.h>
diff -u -r systems/constcw/constcw.c systems/constcw/constcw.c
--- systems/constcw/constcw.c	2011-04-25 02:44:10.567086537 +0300
+++ systems/constcw/constcw.c	2011-04-25 02:39:59.527575519 +0300
@@ -70,7 +70,7 @@
 
 bool cPlainKeyConstCw::Matches(const cEcmInfo *ecm)
 {
-  return ecm->prgId==prgId && ecm->source==source && ecm->transponder==transponder;
+  return ecm->prgId==prgId;
 }
 
 bool cPlainKeyConstCw::Parse(const char *line)
Step 4: patch the open-sasc source
Code:
patch -p0 <2.6.38-sasc-ng.patch
Step 5: Compile the loopback module and install it.
Code:
cd /usr/local/src/sc/contrib/sasc-ng/

./configure
или
./configure --dvb-dir=/<path-to-DVB-driver>

make
make module
mkdir /lib/modules/`uname -r`/misc
/usr/bin/install dvbloopback.ko /lib/modules/`uname -r`/misc/
depmod
For more info about installing and configuring sasc:http://dolot.kipdola.com/wiki/Instal..._and_compiling

PS: Doing This requires the following dependency's: linux-headers-`uname -r` build-essential subversion mercurial openssl gettext libssl-dev screen libv4l-dev, of witch libv4l-dev seems to be a new one
Install them first:
Code:
sudo apt-get install linux-headers-`uname -r` build-essential subversion mercurial openssl gettext libssl-dev screen libv4l-dev
Last and biggest dependency: SASC requires V4L version 1 witch is no longer part of kernel releases since 2.6.38. So we'll have to find a way to get V4l1 running under 2.6.38 and higher. I'm trying to figure this out right now.

Last edited by candymirror; 22-June-2011 at 13:42.. Reason: live links to other forums...nah...
   
Reply With Quote
Sasc-ng installation for Debian with kernel 2.6.38
Old
  (#6)
janp
Junior Member
 
janp's Avatar
 
Offline
Posts: 1

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 0
Magic: 0 / 0
Experience: 0%

Thanks: 0
Thanked 1 Time in 1 Post
Join Date: Jan 2010
Sasc-ng installation for Debian with kernel 2.6.38 - 29-June-2011, 12:13

Hi all,

I've done a write-up on my experience with installing sasc-ng on my Debian system with Linux kernel 2.6.38. You can find it here:
http://www.vanbest.org/drupal6/conte...g-linux-2.6.38

Cheers

Jan-Pascal
   
Reply With Quote
The Following User Says Thank You to janp For This Useful Post:
yacss (02-August-2011)
Ubuntu 11.04 + sasc-ng dvbloopback - return value dvblb_usercopy
Old
  (#7)
angelazh
Junior Member
 
angelazh's Avatar
 
Offline
Posts: 1

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 0
Magic: 0 / 0
Experience: 0%

Thanks: 1
Thanked 0 Times in 0 Posts
Join Date: Jan 2010
Ubuntu 11.04 + sasc-ng dvbloopback - return value dvblb_usercopy - 07-July-2011, 23:51

Hi

i found two different patches:

static int dvblb_usercopy(struct file *file,

static long dvblb_usercopy(struct file *file,

which one is correct ?
   
Reply With Quote
Old
  (#8)
himself
Member
 
himself's Avatar
 
Offline
Posts: 83

Level: 8 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 176
Magic: 27 / 4754
Experience: 6%

Thanks: 5
Thanked 15 Times in 15 Posts
Join Date: Oct 2008
Location: Луцьк
10-July-2011, 22:09

try and error?
   
Reply With Quote
Old
  (#9)
wonderblood
Member
 
wonderblood's Avatar
 
Offline
Posts: 30

Level: 4 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 80
Magic: 10 / 1760
Experience: 22%

Thanks: 10
Thanked 10 Times in 3 Posts
Join Date: Jun 2010
11-July-2011, 16:42

try vdr-plugin-opensc @ https://launchpad.net/~alexandr-surkov/+archive/opensc


XBMC - VDR - RasPi - Central Europe
   
Reply With Quote
Old
  (#10)
himself
Member
 
himself's Avatar
 
Offline
Posts: 83

Level: 8 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 176
Magic: 27 / 4754
Experience: 6%

Thanks: 5
Thanked 15 Times in 15 Posts
Join Date: Oct 2008
Location: Луцьк
22-July-2011, 10:35

any news here?
   
Reply With Quote
Reply

Bookmarks

Tags
dvbloopback, mythtv/sasc-ng/dvb-c, sasc-ng


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



ECS on RSS ECS on Twitter ECS on Facebook ECS on Youtube
Follow us on:

Powered by vBulletin
Copyright 2002 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Dreambox