Moderator Control Panel ]

TBS6981, sasc-ng and Mythbuntu 12.04 - PANIK

TBS6981, sasc-ng and Mythbuntu 12.04 - PANIK

Postby schlussbilanz » Mon Aug 20, 2012 1:44 pm

Hi,

i use the TBS 6981 with Mythbuntu 12.04 (Kernel 3.2.0-28). To use sasc-ng i have patched the kernel and the file dvbdev.c in the tbs drivers subdir with the mutex.patch (http://www.vanbest.org/drupal6/sites/www.vanbest.org/files/linux-2.6.38-dvb-mutex.patch)
I have configured the driver (./v4l/tbs-x86_64.sh) and compiled/installed (make && make install).
After reboot i have installed sasc-ng with:
Code: Select All Code
./configure --dvb-dir=/pathtotbsdriver
make
make module

I follow the tutorial from http://dolot.kipdola.com/wiki/Install_SASC-NG
Now i can see the virtuall dvb-device in mythtv, but i can't use the device to watch tv. if i use mythtv-backend for a tv tuning the pc are very slowly and find nothing. if i use scan-s2 for the tuning (and the virtual device!!!) the system freeze and the capslock-led and the scroll-led on the keyboard are blinking.
Sasc-ng is running. I start sasc-ng with:
Code: Select All Code
sasc-ng  -j 0:2 --cam-budget --sid-nocache -l /var/log/sasc.log --cam-dir /etc/camfiles


Whats wrong? Where is my mistake?

Best regards
Schlussbilanz
schlussbilanz
 
Posts: 14
Joined: Thu Aug 09, 2012 4:11 am
Location: Germany

Re: TBS6981, sasc-ng and Mythbuntu 12.04 - PANIK

Postby schlussbilanz » Tue Aug 21, 2012 11:49 pm

Hi,

I can use the virtual device with kaffeine and can watch freetv and paytv!!!
but when i use mythtv is have no signal, the monitor is dark.
why it works with kaffeine and not with mythtv?
schlussbilanz
 
Posts: 14
Joined: Thu Aug 09, 2012 4:11 am
Location: Germany

Re: TBS6981, sasc-ng and Mythbuntu 12.04 - PANIK

Postby manaesh » Sat Nov 03, 2012 3:55 pm

Hi

Can you confirm the exact steps you used to get sac-ng working under 12.04 ??

I am having alot of issues - and cannot seem to find the correct method to install.

Any help would be appreciated!

Many thanks

Mike
manaesh
 
Posts: 20
Joined: Fri Feb 04, 2011 3:15 am

Re: TBS6981, sasc-ng and Mythbuntu 12.04 - PANIK

Postby dalmos » Sun Nov 04, 2012 1:35 am

Hi,

I am have clean install of mythtv 12.04 and sasc-ng and everithing is working fine.
All I have to do is patch linux-tbs-driver dir with mutex patch.
I have tbs 6922 pci-e card.

sorry mythbuntu 12.04 to be precise.
dalmos
 
Posts: 6
Joined: Fri Nov 04, 2011 9:12 pm

Re: TBS6981, sasc-ng and Mythbuntu 12.04 - PANIK

Postby dalmos » Sun Nov 04, 2012 2:32 am

you dont have to patch kernel if you are using custom tbs driver, and you are.
I had problem paching linux-tbs-driver dir with some error, something like "cudnt find file to patch error in line 4" or something like that so, I had to make change in file manualy with nano.
You have to patch these file before make and make install.
dalmos
 
Posts: 6
Joined: Fri Nov 04, 2011 9:12 pm

Re: TBS6981, sasc-ng and Mythbuntu 12.04 - PANIK

Postby manaesh » Sun Nov 04, 2012 3:21 pm

Hi

Thanks for your reply! Would you mind posting the steps you took to get it working? Was it just the dvb-mutex patch you used?

I dont think I can get the patch working correctly. I have managed to get SASG-NG installed and connected, but when i tune to an encrypted channel, nothing happens :(

I would be most greatful if you could help me!

Thanks

Mike
manaesh
 
Posts: 20
Joined: Fri Feb 04, 2011 3:15 am

Re: TBS6981, sasc-ng and Mythbuntu 12.04 - PANIK

Postby dalmos » Sun Nov 04, 2012 4:52 pm

hi,

are you using virtual card in mythbackend adapter0/frontend1 as input connection?
dalmos
 
Posts: 6
Joined: Fri Nov 04, 2011 9:12 pm

Re: TBS6981, sasc-ng and Mythbuntu 12.04 - PANIK

Postby manaesh » Sun Nov 04, 2012 6:21 pm

Hi

Yes - i am using the virtual card - the one created by the dvbloopback module

When i use the card, the sasg-ng program spits out a load of logs - but i cannot see the decrypt key. It has connected to the oscam server ok - but just does not ask for any keys...

I get the same issue when I zap as well....

I had got SASG-NG working under ubuntu 10.10 - with kernel 2.6.35-32-server - however - i needed to uprade to 12.04 - and lost my dvbloopback module...

If you have any notes or pointers on how to get it working under 12.04 - id be most appreciative.....

Thanks

Mike
manaesh
 
Posts: 20
Joined: Fri Feb 04, 2011 3:15 am

Re: TBS6981, sasc-ng and Mythbuntu 12.04 - PANIK

Postby dalmos » Sun Nov 04, 2012 10:14 pm

my way of makeing it work

Clean install of mythbuntu 12.04 (64bit)
Update mythbuntu after installation

Download TBS driver of your need from TBS web page

Unzip it and untar it

sudo apt-get install unzip

sudo -s

cd /Downloads

unzip linux-tbs-driver.......version downloaded

tar xjvf linux-tbs-driver......version downloaded

I have copyed linux-tbs-drivers dir to /usr/local/src for building

cp linux-tbs-drivers /usr/local/src

cd linux-tbs-drivers

Download mutex patch

wget http://www.vanbest.org/drupal6/sites/ww ... utex.patch

Try to patch

patch -p1 < linux-2.6.38-dvb-mutex.patch

If you have error (I did) patch it manually. Here is how I didi it. First install gedit

sudo apt-get install gedit

gedit linux-2.6.38-dvb-mutex.patch

in new window

gedit linux-2.6.38/drivers/media/dvb/dvb-core/dvbdev.c

look for difference from line 83

these is part of pach file

@@ -83,8 +83,11 @@ static int dvb_device_open(struct inode *inode, struct file $
file->f_op = old_fops;
goto fail;
}
- if(file->f_op->open)
+ if(file->f_op->open) {
+ mutex_unlock(&dvbdev_mutex);
err = file->f_op->open(inode,file);
+ mutex_lock(&dvbdev_mutex);


These is part of dvbdev.c file

static int dvb_device_open(struct inode *inode, struct file $
file->f_op = old_fops;
goto fail;
}
if(file->f_op->open)
err = file->f_op->open(inode,file);

Add missing lines to look like pach file. double check save & exit

Now make your module

./v4l/tbs-x86_64.sh (for 64bit system)

make && make install

reboot

lsmod | grep dvb

see if your module is loaded. my is saa716x

Now sasc-ng. Pasted from dolot page with some changes

sudo -s

apt-get install linux-headers-`uname -r` build-essential subversion mercurial openssl gettext libssl-dev screen libv4l-dev

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

cd /usr/local/src/sc/contrib/sasc-ng/
./configure --dvb-dir=/usr/local/src/linux-tbs-drivers
make
make module

rm /lib/modules/`uname -r`/misc/dvbloopback.ko
cd /usr/local/src/sc/contrib/sasc-ng/
cp sasc-ng /usr/bin
cp ./sc/PLUGINS/lib/* /usr/lib/
mkdir /lib/modules/`uname -r`/misc
/usr/bin/install dvbloopback.ko /lib/modules/`uname -r`/misc/
depmod

modprobe dvbloopback

lsmod | grep dvb

see if your dvbloopback module is loaded

Add your cardclient.conf

mkdir sc_files
cd sc_files
nano cardclient.conf

Add your lines, save & close

Stop backend of mythtv

service mythtv-backend stop

Now start sasc-ng

LD_LIBRARY_PATH=/usr/local/src/sc/contrib/sasc-ng/sc/PLUGINS/lib/ ./sasc-ng -j 0:1

Open new terminal window

start mythbackend

sudo service mythtv-backend start

go to Mythbackend application

add your new created card (in my case /adapter0/frontend1)

use it in input connection

scan or import channels

enjoy your hard labor.
dalmos
 
Posts: 6
Joined: Fri Nov 04, 2011 9:12 pm

Re: TBS6981, sasc-ng and Mythbuntu 12.04 - PANIK

Postby manaesh » Mon Nov 05, 2012 5:47 am

Thank you, thank you, thank you!!!

Your advice about the patch was the pointer that i needed! i have now got it working again under 12.04!!

Again thanks for your help!! If you are near london I will by you a beer!!!#

Thanks again

Mike
manaesh
 
Posts: 20
Joined: Fri Feb 04, 2011 3:15 am

Next

Return to Linux

Who is online

Users browsing this forum: No registered users and 2 guests

cron