Difference between revisions of "TerraTec Cinergy S2 PCI HD CI"

From LinuxTVWiki
Jump to: navigation, search
(Making it work)
(Making it work)
 
(34 intermediate revisions by 11 users not shown)
Line 2: Line 2:
  
 
=Overview=
 
=Overview=
 +
[[File:Cinergy_S2_PCI_HD_CI.jpg|100px|thumb|right]]
 
Seems to be clone of [[Azurewave AD SP400 CI (VP-1041)|AD-SP400 CI (Twinhan VP-1041)]]  with other subsystemid.
 
Seems to be clone of [[Azurewave AD SP400 CI (VP-1041)|AD-SP400 CI (Twinhan VP-1041)]]  with other subsystemid.
==Identification==
 
lspci -v
 
  01:01.0 Multimedia controller: Twinhan Technology Co. Ltd Mantis DTV PCI Bridge Controller [Ver 1.0] (rev 01)
 
        Subsystem: TERRATEC Electronic GmbH Unknown device 1179
 
        Flags: bus master, medium devsel, latency 64, IRQ 5
 
        Memory at beaff000 (32-bit, prefetchable) [size=4K]
 
  
lspci -vv
+
[http://www.terratec.net/en/products/Cinergy_S2_PCI_HD_CI_1892.html Product information from Terratec] and [http://linux.terratec.de/tv_en.html Terratec linux site]
  01:01.0 Multimedia controller: Twinhan Technology Co. Ltd Mantis DTV PCI Bridge Controller [Ver 1.0] (rev 01)
+
        Subsystem: TERRATEC Electronic GmbH Unknown device 1179
+
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
+
        Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
+
        Latency: 64 (2000ns min, 63750ns max)
+
        Interrupt: pin A routed to IRQ 5
+
        Region 0: Memory at beaff000 (32-bit, prefetchable) [size=4K]
+
  
lspci -vn
+
==Identification==
  01:01.0 0480: 1822:4e35 (rev 01)
+
        Subsystem: 153b:1179
+
        Flags: bus master, medium devsel, latency 64, IRQ 5
+
        Memory at beaff000 (32-bit, prefetchable) [size=4K]
+
  
 
lspci -vvn
 
lspci -vvn
Line 33: Line 17:
 
         Interrupt: pin A routed to IRQ 5
 
         Interrupt: pin A routed to IRQ 5
 
         Region 0: Memory at beaff000 (32-bit, prefetchable) [size=4K]
 
         Region 0: Memory at beaff000 (32-bit, prefetchable) [size=4K]
 +
 
=Making it work=
 
=Making it work=
 +
Mantis driver is included in kernel version => 2.6.33-rc6.<br>
 +
If you use a lower kernel version, there exists two different drivers you can download and compile. One driver is available at http://jusst.de/hg/mantis-v4l-dvb, and another at http://linuxtv.org/hg/v4l-dvb.
 +
 +
==Installing on Ubuntu Lucid==
 +
Well i found that the old liplianin works far better on Lucid + Kaffeine pre3 then the code from jusst.de .Take it or leave it :)
 +
sudo apt-get install build-essential
 +
sudo apt-get install libncurses5-dev
 +
sudo apt-get install mercurial
 +
 +
cd /usr/src
 +
sudo hg clone http://mercurial.intuxication.org/hg/s2-liplianin
 +
sudo ln -s s2-liplianin s2
 +
cd s2-liplianin
 +
 +
sudo make menuconfig
 +
Find Firedtv and remove it, save and exit.
 +
 +
sudo make -j 10
 +
sudo make install
 +
sudo reboot
 +
 +
==Installing on Ubuntu Karmic Koala with Mantis driver==
 +
sudo apt-get install build-essential
 +
sudo apt-get install libncurses5-dev
 +
sudo apt-get install mercurial
 +
 +
cd /usr/src
 +
sudo hg clone http://jusst.de/hg/mantis-v4l-dvb
 +
cd mantis-v4l-dvb/v4l
 +
 +
make menuconfig
 +
Find Firedtv and disable it.Save and exit.
 +
 +
sudo make -j 10
 +
sudo make install
 +
sudo reboot
 +
 +
after reboot
 +
 +
sudo modprobe stb0899
 +
sudo modprobe stb6100
 +
sudo modprobe lnbp21
 +
sudo modprobe mantis_core
 +
sudo modprobe mantis
 +
 +
To make the modules autoload on system boot you need to edit /etc/modules
 +
 +
gksu gedit /etc/modules
 +
 +
Add the names of the modules and make sure they are in the correct order!
 +
 +
stb0899
 +
stb6100
 +
lnbp21
 +
mantis_core
 +
mantis
 +
 +
Save/exit and reboot
 +
 +
==Installing on Ubuntu Intrepid with Mantis driver ==
 +
As of Dec 2009, the card works with the latest v4l-dvb revision.
 +
 +
The procedure is the same as with the [[Azurewave AD SP400 CI (VP-1041)|AD-SP400 CI (Twinhan VP-1041)]].
 +
 +
===Install driver===
 +
cd /usr/src
 +
sudo apt-get install mercurial
 +
sudo hg clone http://jusst.de/hg/mantis-v4l-dvb
 +
cd mantis-v4l-dvb/v4l
 +
sudo make
 +
sudo make install
 +
sudo reboot
 +
 +
==Installing on Ubuntu Hardy with Mantis-Multiproto driver ==
 +
 +
===Foreword===
 +
This has been tested the 08.06.2008. CAM/CI is not working with current mantis for me. I have a crash when scanning or zapping with the CAM inserted. Take the CAM module out if you have one for the moment!
 +
 +
===Install mantis driver (Testing based on revision 7348)===
 +
cd /usr/src
 +
sudo apt-get install mercurial
 +
sudo hg clone http://jusst.de/hg/mantis 
 +
sudo nano -w mantis/linux/drivers/media/dvb/mantis/mantis_vp1041.h
 +
  #define MANTIS_VP_1041_DVB_S2    0x0031
 +
  <<change to>>
 +
  #define MANTIS_VP_1041_DVB_S2    0x1179
 +
cd /usr/src/mantis
 +
sudo make
 +
sudo make install
 +
sudo reboot
 +
 +
===Installing dvb-apps, replacing scan/szap2 with versions based on the multiproto API (Testing based on revision 1200)===
 +
cd /usr/src
 +
sudo hg clone http://linuxtv.org/hg/dvb-apps
 +
cd dvb-apps
 +
make 
 +
cd util 
 +
sudo rm -R scan
 +
sudo wget http://jusst.de/manu/scan.tar.bz2 
 +
sudo tar xjvf scan.tar.bz2 
 +
cd scan 
 +
sudo wget http://www.linuxtv.org/pipermail/linux-dvb/attachments/20080406/a365d65c/attachment.txt
 +
sudo patch -p1 < attachment.txt
 +
 +
sudo nano -w Makefile
 +
add line
 +
      CPPFLAGS += -I/usr/src/mantis/linux/include 
 +
under line
 +
      CPPFLAGS += -I/usr/include/ -DDATADIR=\"$(prefix)/share\"
 +
 +
sudo make clean
 +
sudo make
 +
mkdir ~/.szap
 +
./scan dvb-s/Astra-19.2E > ~/.szap/channels.conf
 +
 +
=== Use szap2 for tuning ===
 +
 +
cd /usr/src/dvb-apps/test
 +
./szap2 -r -n 001
 +
 +
=== Test with mplayer ===
 +
When szap2 gives you FE_HAS_LOCK then open mplayer:
 +
mplayer /dev/dvb/adapter0/dvr0
 +
 +
 +
 +
==Installing on Debian etch with Multiproto driver ==
 +
=== updating to lenny===
 +
  vi /etc/apt/sources.list
 +
    change:
 +
        etch -> lenny
 +
  apt-get update
 +
  apt-get upgrade
 +
  reboot
 +
 
 +
  apt-get install linux-headers-2.6.22-3-686
 +
 +
 +
 +
  
working on it ;)
+
=== DVB Utils für DVB-S2===
 +
====Scan====
 +
  wget http://jusst.de/manu/scan.tar.bz2
 +
  tar xjvf scan.tar.bz2
 +
  cd scan
 +
  ./scan dvb-s/Astra-19.2E > ~/channels.conf
  
=Failed attempts=
+
If this version of scan gives the following error:
==Installing on Debian etch with Twinhan driver - FAILS==
+
   ioctl DVBFE_GET_INFO failed: Operation not supported
   get latest kernel from apt-get
+
   ERROR: initial tuning failed
   cd /usr/src
+
Then use the following version of scan:
   wget http://www.twinhan.com/files/AW/Linux/AZLinux_v1.4.2_CI_FC6.tar.gz
+
   http://www.zshare.net/download/1322006118c9c70a/
  tar zxvf AZLinux_v1.4.2_CI_FC6.tar.gz
+
  cd AZLinux_v1.4.2_CI_FC6
+
  apt-get install dvb-utils make gcc binutils autoconf linux-headers-2.6.18-4-all      # Readme sagt, dass XFree86 requirement ist!
+
  
Install Linux DVB API applications and utilities
+
Wichtig: auf Zeilen wie folgende achten, dann wird auch DVB-S2 erkannt:
  cd dvb-apps-997424a1799e
+
----------------------------------> Using 'STB0899 Multistandard' DVB-S2
  make clean
+
Tune to frequency 11914500
  make
+
DVB-S IF freq is 1314500
  make install
+
0x0006 0x0081: pmt_pid 0x0062 PREMIERE -- PREMIERE HD (running, scrambled)
  cd ..
+
0x0006 0x0082: pmt_pid 0x0063 PREMIERE -- DISCOVERY HD (running, scrambled)
 +
0x0006 0x0084: pmt_pid 0x0065 BetaDigital -- ANIXE HD (running)
 +
0x0006 0x0083: pmt_pid 0x0064 BetaDigital -- ASTRA HD+ (running)
  
Install Azurewave card driver
+
====Szap2====
  cd linuxdriver
+
  wget http://www.makhutov.org/downloads/dvb/szap2-20070727.tgz
  cd linux/drivers/media/dvb/mantis/
+
tar zxvf szap2-20070727.tgz
  vi mantis_dvb.c
+
cd szap2
          <nowiki>#define MANTIS_VP_1041_DVB_S2  0x0031</nowiki>
+
          change to
+
          <nowiki>#define MANTIS_VP_1041_DVB_S2  0x1179</nowiki>
+
  ln -s /usr/src/linux-headers-2.6.18-4-686 /lib/modules/2.6.18-6-686/build
+
  make fails, because ci-odule is missing. See also:
+
  http://www.linuxtv.org/pipermail/linux-dvb/2007-May/018034.html tells, that it is only copilable against fedora cor 6 :(.
+

Latest revision as of 01:50, 13 March 2010

Overview

Cinergy S2 PCI HD CI.jpg

Seems to be clone of AD-SP400 CI (Twinhan VP-1041) with other subsystemid.

Product information from Terratec and Terratec linux site

Identification

lspci -vvn

 01:01.0 0480: 1822:4e35 (rev 01)
       Subsystem: 153b:1179
       Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
       Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
       Latency: 64 (2000ns min, 63750ns max)
       Interrupt: pin A routed to IRQ 5
       Region 0: Memory at beaff000 (32-bit, prefetchable) [size=4K]

Making it work

Mantis driver is included in kernel version => 2.6.33-rc6.
If you use a lower kernel version, there exists two different drivers you can download and compile. One driver is available at http://jusst.de/hg/mantis-v4l-dvb, and another at http://linuxtv.org/hg/v4l-dvb.

Installing on Ubuntu Lucid

Well i found that the old liplianin works far better on Lucid + Kaffeine pre3 then the code from jusst.de .Take it or leave it :)

sudo apt-get install build-essential
sudo apt-get install libncurses5-dev
sudo apt-get install mercurial
cd /usr/src
sudo hg clone http://mercurial.intuxication.org/hg/s2-liplianin
sudo ln -s s2-liplianin s2
cd s2-liplianin

sudo make menuconfig
Find Firedtv and remove it, save and exit.
sudo make -j 10
sudo make install
sudo reboot

Installing on Ubuntu Karmic Koala with Mantis driver

sudo apt-get install build-essential
sudo apt-get install libncurses5-dev
sudo apt-get install mercurial
cd /usr/src
sudo hg clone http://jusst.de/hg/mantis-v4l-dvb
cd mantis-v4l-dvb/v4l
make menuconfig
Find Firedtv and disable it.Save and exit.
sudo make -j 10
sudo make install
sudo reboot
after reboot
sudo modprobe stb0899
sudo modprobe stb6100
sudo modprobe lnbp21
sudo modprobe mantis_core
sudo modprobe mantis
To make the modules autoload on system boot you need to edit /etc/modules
gksu gedit /etc/modules
Add the names of the modules and make sure they are in the correct order!
stb0899
stb6100
lnbp21
mantis_core
mantis
Save/exit and reboot

Installing on Ubuntu Intrepid with Mantis driver

As of Dec 2009, the card works with the latest v4l-dvb revision.

The procedure is the same as with the AD-SP400 CI (Twinhan VP-1041).

Install driver

cd /usr/src
sudo apt-get install mercurial
sudo hg clone http://jusst.de/hg/mantis-v4l-dvb
cd mantis-v4l-dvb/v4l
sudo make
sudo make install
sudo reboot

Installing on Ubuntu Hardy with Mantis-Multiproto driver

Foreword

This has been tested the 08.06.2008. CAM/CI is not working with current mantis for me. I have a crash when scanning or zapping with the CAM inserted. Take the CAM module out if you have one for the moment!

Install mantis driver (Testing based on revision 7348)

cd /usr/src
sudo apt-get install mercurial
sudo hg clone http://jusst.de/hg/mantis  
sudo nano -w mantis/linux/drivers/media/dvb/mantis/mantis_vp1041.h
  #define MANTIS_VP_1041_DVB_S2    0x0031
  <<change to>>
  #define MANTIS_VP_1041_DVB_S2    0x1179
cd /usr/src/mantis
sudo make
sudo make install
sudo reboot

Installing dvb-apps, replacing scan/szap2 with versions based on the multiproto API (Testing based on revision 1200)

cd /usr/src
sudo hg clone http://linuxtv.org/hg/dvb-apps
cd dvb-apps
make  
cd util  
sudo rm -R scan
sudo wget http://jusst.de/manu/scan.tar.bz2  
sudo tar xjvf scan.tar.bz2  
cd scan  
sudo wget http://www.linuxtv.org/pipermail/linux-dvb/attachments/20080406/a365d65c/attachment.txt
sudo patch -p1 < attachment.txt
sudo nano -w Makefile
add line
     CPPFLAGS += -I/usr/src/mantis/linux/include  
under line
     CPPFLAGS += -I/usr/include/ -DDATADIR=\"$(prefix)/share\"
sudo make clean
sudo make
mkdir ~/.szap
./scan dvb-s/Astra-19.2E > ~/.szap/channels.conf

Use szap2 for tuning

cd /usr/src/dvb-apps/test
./szap2 -r -n 001

Test with mplayer

When szap2 gives you FE_HAS_LOCK then open mplayer:

mplayer /dev/dvb/adapter0/dvr0


Installing on Debian etch with Multiproto driver

updating to lenny

 vi /etc/apt/sources.list 
    change:
       etch -> lenny 
 apt-get update
 apt-get upgrade
 reboot
 
 apt-get install linux-headers-2.6.22-3-686



DVB Utils für DVB-S2

Scan

 wget http://jusst.de/manu/scan.tar.bz2
 tar xjvf scan.tar.bz2
 cd scan
 ./scan dvb-s/Astra-19.2E > ~/channels.conf

If this version of scan gives the following error:

 ioctl DVBFE_GET_INFO failed: Operation not supported
 ERROR: initial tuning failed

Then use the following version of scan:

 http://www.zshare.net/download/1322006118c9c70a/

Wichtig: auf Zeilen wie folgende achten, dann wird auch DVB-S2 erkannt:

----------------------------------> Using 'STB0899 Multistandard' DVB-S2
Tune to frequency 11914500
DVB-S IF freq is 1314500
0x0006 0x0081: pmt_pid 0x0062 PREMIERE -- PREMIERE HD (running, scrambled)
0x0006 0x0082: pmt_pid 0x0063 PREMIERE -- DISCOVERY HD (running, scrambled)
0x0006 0x0084: pmt_pid 0x0065 BetaDigital -- ANIXE HD (running)
0x0006 0x0083: pmt_pid 0x0064 BetaDigital -- ASTRA HD+ (running)

Szap2

wget http://www.makhutov.org/downloads/dvb/szap2-20070727.tgz
tar zxvf szap2-20070727.tgz
cd szap2