<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Riscy Business</title>
  <subtitle>My personal information repository</subtitle>
  <link rel="alternate" type="text/html" href="http://riscy.biz/node/165"/>
  <link rel="self" type="application/atom+xml" href="http://riscy.biz/node/165/atom/feed"/>
  <id>http://riscy.biz/node/165/atom/feed</id>
  <updated>2008-05-04T13:41:07+10:00</updated>
  <entry>
    <title>Mantis drivers</title>
    <link rel="alternate" type="text/html" href="http://riscy.biz/node/165" />
    <id>http://riscy.biz/node/165</id>
    <published>2008-05-04T12:51:44+10:00</published>
    <updated>2008-05-04T13:41:07+10:00</updated>
    <author>
      <name>Riscy</name>
    </author>
    <summary type="html"><![CDATA[<p>
This is from <a href="http://www.verbraak.org/wiki/index.php/Linux_Mantis_driver" title="www.verbraak.org/wiki/index.php/Linux_Mantis_driver">www.verbraak.org/wiki/index.php/Linux_Mantis_driver</a> but his site seems to be down a lot so I have mirrored it here because I am trying to get my 1034 card to work with Linux.
</p>
<p>
&nbsp;
</p>
<p>Linux Mantis driver</p>
<div id="bodyContent">
From My Interesting Version
<div id="jump-to-nav">
Jump to: <a href="http://www.verbraak.org/wiki/index.php/Linux_Mantis_driver#column-one">navigation</a>, <a href="http://www.verbraak.org/wiki/index.php/Linux_Mantis_driver#searchInput">search</a>
</div>
<p>
Currently the Mantis chipset driver for linux is in Alpha state.
</p>
<p>
This Mantis chipset is used on DVB board for reception of DVB-T, DVB-S, DVB-S2, DVB-C signals.
</p>
<p>
In this small Howto i explain how I got the mantis driver up and<br />
running in my vanilla linux kernel.<br />
I had to do it in this way because I also own two Hauppauge PVR cards<br />
(PVR-350 and PVR-150) which do not work well with the mantis module.
</p>
<p>
This example has been tested with linux kernel source 2.6.22<br />
and the ivtv driver from the linuxtv.org hg reposititory and the one<br />
included in the kernel on a Fedora Core 6 setup.
</p>
<p><strong>WARNING:</strong> IVTV 0.10.3 and Mantis and kernel 2.6.21 and up do not work together.<br />
From kernel 2.6.22 the ivtv module is part of the kernel and you do not need to download it from the ivtvdriver.org website.<br />
To get ivtv and the mantis working in kernel 2.6.21 and up you need to add <strong>extra</strong> module parameters to the <em>saa7115</em> module.<br />
See the instructions at the end for this.</p>
<p><a name="" title=""></a><br />
[<a href="http://www.verbraak.org/wiki/index.php?title=Linux_Mantis_driver&amp;action=edit&amp;section=1" title="">edit</a>] Following steps you need to take (<strong>short</strong> ways for kernel 2.6.23.1):</p>
<ul>
<li> Download the <a href="http://www.verbraak.org/mantis-2.6.23.1.patch" title="http://www.verbraak.org/mantis-2.6.23.1.patch">patch file</a> for kernel 2.6.23.1.
	</li>
<li> use your current kernel or take a kernel source tree from <a href="http://www.kernel.org/" title="http://www.kernel.org">http://www.kernel.org</a>. Make sure you have the kernel headers/sources files/packages installed and you have the kernel up and running.
	</li>
<li> Apply the patch.
	</li>
</ul>
<p>#&gt; cd &lt;path to kernel source&gt;<br />
#&gt; patch -p1 &lt; &lt;path to mantis-2.6.23.1.patch file&gt;/mantis-2.6.23.1.patch</p>
<ul>
<li> Activate the mantis modules in your kernel config. Answer yes to the Mantis parts.
	</li>
</ul>
<p>#&gt; make oldconfig</p>
<ul>
<li> Compile.
	</li>
</ul>
<p>#&gt; make<br />
#&gt; make modules_install</p>
<ul>
<li> When you use your current kernel sources do load the modules
	</li>
</ul>
<p>#&gt; modprobe mantis<br />
#&gt; dmesg | grep -i dvb<br />
found a VP-1034 PCI DVB-S/DSS device on (02:05.0),<br />
DVB: registering new adapter (Mantis dvb adapter).<br />
mantis_frontend_init (0): Probing for MB86A16 (DVB-S/DSS)<br />
mantis_frontend_init (0): found MB86A16 DVB-S/DSS frontend @0x08<br />
DVB: registering frontend 0 (Fujitsu MB86A16 DVB-S)...</p>
<p><a name="" title=""></a><br />
[<a href="http://www.verbraak.org/wiki/index.php?title=Linux_Mantis_driver&amp;action=edit&amp;section=2" title="">edit</a>] Following steps you need to take (<strong>long</strong> way for kernels 2.6.21 and up):</p>
<ul>
<li> use your current kernel or take a kernel source tree from <a href="http://www.kernel.org/" title="http://www.kernel.org">http://www.kernel.org</a>. Make sure you have the kernel headers/sources files/packages installed and you have the kernel up and running.
	</li>
<li> Get the mantis dvb source tree from <a href="http://jusst.de/hg/mantis/archive/tip.tar.bz2" title="http://jusst.de/hg/mantis/archive/tip.tar.bz2">http://jusst.de/hg/mantis/archive/tip.tar.bz2</a>
	</li>
<li> Copy the directory &lt;path to mantis<br />
	tree&gt;/linux/drivers/media/dvb/mantis to &lt;path to kernel<br />
	source&gt;/drivers/media/dvb/
	</li>
<li> Add the following three lines to the file &lt;path to kernel<br />
	source&gt;/drivers/media/dvb/Kconfig. Add them before the last entry in<br />
	this file.
	</li>
</ul>
<p>comment &quot;Supported Mantis Adapters&quot;<br />
depends on DVB_CORE &amp;&amp; PCI &amp;&amp; I2C<br />
source &quot;drivers/media/dvb/mantis/Kconfig&quot;</p>
<ul>
<li> Add the following option &quot;<strong>mantis/</strong>&quot; to the file path to kernel source&gt;/drivers/media/dvb/Makefile. It should look like this
	</li>
</ul>
<p>#<br />
# Makefile for the kernel multimedia device drivers.<br />
#<br />
obj-y        := dvb-core/ frontends/ ttpci/ ttusb-dec/ ttusb-budget/ b2c2/ bt8xx/ cinergyT2/ dvb-usb/ pluto2/ mantis/</p>
<ul>
<li> Copy the files &lt;path to mantis<br />
	tree&gt;/linux/drivers/media/dvb/frontends/mb86a16* to &lt;path to<br />
	kernel source&gt;/drivers/media/dvb/frontends
	</li>
<li> Copy the files &lt;path to mantis<br />
	tree&gt;/linux/drivers/media/dvb/frontends/cu1216* to &lt;path to<br />
	kernel source&gt;/drivers/media/dvb/frontends
	</li>
<li> Add the following lines to the file &lt;path to kernel source&gt;/drivers/media/dvb/frontends/Kconfig just after the <strong>config DVB_TDA10086</strong>
	</li>
</ul>
<p>config DVB_MB86A16<br />
tristate &quot;Fujitsu MB86A16 based&quot;<br />
depends on DVB_CORE &amp;&amp; I2C<br />
default m<br />
help<br />
A DVB-S/DSS tuner module. Say Y when you want to support this frontend.<br />
config DVB_CU1216<br />
tristate &quot;Philips CU1216 tuner based&quot;<br />
depends on DVB_CORE &amp;&amp; I2C<br />
default m<br />
help<br />
A DVB-C tuner module. Say Y when you want to support this frontend.</p>
<ul>
<li> Add the following two lines to the file &lt;path to kernel source&gt;/drivers/media/dvb/frontends/Makefile
	</li>
</ul>
<p>obj-$(CONFIG_DVB_MB86A16) += mb86a16.o<br />
obj-$(CONFIG_DVB_CU1216) += cu1216.o</p>
<ul>
<li> Change in the file &lt;path to kernel<br />
	source&gt;/drivers/media/dvb/frontends/cu1216.c line 37 to look like<br />
	this (ignore the line numbers)
	</li>
</ul>
<p>     34 #include &lt;linux/slab.h&gt;<br />
35<br />
36 #include &quot;dvb_frontend.h&quot;<br />
37 #include &quot;../mantis/mantis_core.h&quot;<br />
38 #include &quot;cu1216.h&quot;<br />
39 #include &quot;cu1216_regs.h&quot;</p>
<ul>
<li> You can now compile your kernel in the normal way and install<br />
	the modules. If you wish to make sure the Mantis modules have been<br />
	selected do a <em>make menuconfig</em>
	</li>
</ul>
<p>#&gt; cd &lt;path to kernelsource&gt;<br />
#&gt; make menuconfig<br />
#&gt; make<br />
#&gt; make modules_install</p>
<ul>
<li> When you use your current kernel sources do load the modules
	</li>
</ul>
<p>#&gt; modprobe mantis<br />
#&gt; dmesg | grep -i dvb<br />
found a VP-1034 PCI DVB-S/DSS device on (02:05.0),<br />
DVB: registering new adapter (Mantis dvb adapter).<br />
mantis_frontend_init (0): Probing for MB86A16 (DVB-S/DSS)<br />
mantis_frontend_init (0): found MB86A16 DVB-S/DSS frontend @0x08<br />
DVB: registering frontend 0 (Fujitsu MB86A16 DVB-S)...</p>
<ul>
<li> Check the output of the dmesg command to see if the mantis modules loaded. Sometimes a reboot of the system is needed.
	</li>
<li> <strong>IMPORTANT:</strong> For kernels 2.6.21 and below the order in which you do the installations is also important. Every time you perform a <strong>make modules_install</strong> for the kernel you need to do the <strong>make install</strong> for the ivtv driver as well.
	</li>
</ul>
<p>
<br />
To get the Hauppauge cards working do the following:
</p>
<ul>
<li> The ivtv module is now part of the kernel since 2.6.22. So<br />
	check your kernel. If you have a kernel below 2.6.22 then do the<br />
	following </li>
<li> Get the ivtv source from <a href="http://dl.ivtvdriver.org/ivtv/archive/0.10.x/ivtv-0.10.5.tar.gz" title="http://dl.ivtvdriver.org/ivtv/archive/0.10.x/ivtv-0.10.5.tar.gz">http://dl.ivtvdriver.org/ivtv/archive/0.10.x/ivtv-0.10.5.tar.gz</a>. See <a href="http://www.ivtvdriver.org/" title="http://www.ivtvdriver.org">http://www.ivtvdriver.org</a> for latest version.
	</li>
<li> Extract the source, build and install it.
	</li>
</ul>
<p>#&gt; tar -zxvpf ivtv-0.10.5.tar.gz<br />
#&gt; cd ivtv-0.10.5<br />
#&gt; make; make install</p>
<ul>
<li> Install the <a href="http://dl.ivtvdriver.org/ivtv/firmware/firmware.tar.gz" title="http://dl.ivtvdriver.org/ivtv/firmware/firmware.tar.gz">ivtv firmware</a> files in /lib/firmware
	</li>
</ul>
<p>#&gt; cd /lib/firmware<br />
#&gt; wget <a href="http://dl.ivtvdriver.org/ivtv/firmware/firmware.tar.gz" title="http://dl.ivtvdriver.org/ivtv/firmware/firmware.tar.gz">http://dl.ivtvdriver.org/ivtv/firmware/firmware.tar.gz</a><br />
#&gt; tar -zxvpf firmware.tar.gz</p>
<ul>
<li> Load the ivtv modules:
	</li>
</ul>
<p>#&gt; modprobe ivtv<br />
#&gt; dmesg | grep -i ivtv<br />
ivtv:  ==================== START INIT IVTV ====================<br />
ivtv:  version 0.10.3 (development snapshot compiled on zo 20 mei 2007 08:57:55 CEST) loading<br />
ivtv:  Linux version: 2.6.21.1 SMP mod_unload PENTIUM4 4KSTACKS<br />
ivtv:  In case of problems please include the debug info between<br />
ivtv:  the START INIT IVTV and END INIT IVTV lines, along with<br />
ivtv:  any module options, when mailing the ivtv-users mailinglist.<br />
ivtv0: Autodetected Hauppauge card (cx23415 based)<br />
ivtv0: loaded v4l-cx2341x-enc.fw firmware (376836 bytes)<br />
ivtv0: loaded v4l-cx2341x-dec.fw firmware (262144 bytes)<br />
ivtv0: Encoder revision: 0x02060039<br />
ivtv0: Decoder revision: 0x02020023<br />
ivtv0: Autodetected Hauppauge WinTV PVR-350<br />
tuner 1-0061: chip found @ 0xc2 (ivtv i2c driver #0)<br />
saa7115 1-0021: saa7115 found (1f7115d0e100000) @ 0x42 (ivtv i2c driver #0)<br />
saa7127 1-0044: saa7127 found @ 0x88 (ivtv i2c driver #0)<br />
msp3400 1-0040: MSP4418G-A2 found @ 0x80 (ivtv i2c driver #0)<br />
ivtv0: Registered device video0 for encoder MPEG (4 MB)<br />
ivtv0: Registered device video32 for encoder YUV (2 MB)<br />
ivtv0: Registered device vbi0 for encoder VBI (1 MB)<br />
ivtv0: Registered device video24 for encoder PCM audio (1 MB)<br />
ivtv0: Registered device radio0 for encoder radio<br />
ivtv0: Registered device video16 for decoder MPEG (1 MB)<br />
ivtv0: Registered device vbi8 for decoder VBI (1 MB)<br />
ivtv0: Registered device vbi16 for decoder VOUT<br />
ivtv0: Registered device video48 for decoder YUV (1 MB)<br />
ivtv0: loaded v4l-cx2341x-init.mpg firmware (155648 bytes)<br />
ivtv0: Initialized Hauppauge WinTV PVR-350, card #0<br />
ivtv:  ======================  NEXT CARD  ======================<br />
ivtv1: Autodetected Hauppauge card (cx23416 based)<br />
ivtv1: loaded v4l-cx2341x-enc.fw firmware (376836 bytes)<br />
ivtv1: Encoder revision: 0x02060039<br />
tuner 2-0043: chip found @ 0x86 (ivtv i2c driver #1)<br />
tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #1)<br />
ivtv1: Autodetected Hauppauge WinTV PVR-150<br />
ivtv1: reopen i2c bus for IR-blaster support<br />
tuner 2-0043: chip found @ 0x86 (ivtv i2c driver #1)<br />
tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #1)<br />
cx25840 2-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #1)<br />
wm8775 2-001b: chip found @ 0x36 (ivtv i2c driver #1)<br />
ivtv1: Registered device video1 for encoder MPEG (4 MB)<br />
ivtv1: Registered device video33 for encoder YUV (2 MB)<br />
ivtv1: Registered device vbi1 for encoder VBI (1 MB)<br />
ivtv1: Registered device video25 for encoder PCM audio (1 MB)<br />
ivtv1: Initialized Hauppauge WinTV PVR-150, card #1<br />
ivtv:  ====================  END INIT IVTV  ====================</p>
<ul>
<li> Check the output of the dmesg command. Sometimes a reboot is needed.
	</li>
</ul>
<p>
<strong>When you are using kernel 2.6.21 and higher ivtv and mantis will<br />
nog work together. Depening on which module loads first the mantis<br />
module will freeze.</strong>
</p>
<p>
To resolve this problem you will have to add extra module parameters to the saa7115 module.<br />
Do the following to determine the values for the module parameters:
</p>
<ul>
<li> Get i2c bus number used by the Mantis driver.
	</li>
</ul>
<p>#&gt; modprobe i2c-dev<br />
#&gt; i2cdetect -l<br />
i2c-3   i2c             ivtv i2c driver #1                      I2C adapter<br />
i2c-2   i2c             ivtv i2c driver #0                      I2C adapter<br />
i2c-1   smbus           Mantis I2C                              SMBus adapter<br />
i2c-0   smbus           SMBus I801 adapter at 0400              SMBus adapter</p>
<ul>
<li> The i2c bus used by the Mantis driver is bus 1 (see i2c-1 part) in this example.
	</li>
<li> Add the following line to your /etc/modprobe.conf
	</li>
</ul>
<p>options saa7115 ignore=1,0x25,1,0x24,1,0x21,1,0x20</p>
<ul>
<li> Replace all the 1's (one's) with your i2c bus number leave the hexadecimal numbers intact.
	</li>
<li> Now reboot your machine and both the mantis and the ivtv modules should load without a problem and work without a problem.
	</li>
</ul>
</div>
    ]]></summary>
    <content type="html"><![CDATA[<p>
This is from <a href="http://www.verbraak.org/wiki/index.php/Linux_Mantis_driver" title="www.verbraak.org/wiki/index.php/Linux_Mantis_driver">www.verbraak.org/wiki/index.php/Linux_Mantis_driver</a> but his site seems to be down a lot so I have mirrored it here because I am trying to get my 1034 card to work with Linux.
</p>
<p>
&nbsp;
</p>
<p>Linux Mantis driver</p>
<div id="bodyContent">
From My Interesting Version
<div id="jump-to-nav">
Jump to: <a href="http://www.verbraak.org/wiki/index.php/Linux_Mantis_driver#column-one">navigation</a>, <a href="http://www.verbraak.org/wiki/index.php/Linux_Mantis_driver#searchInput">search</a>
</div>
<p>
Currently the Mantis chipset driver for linux is in Alpha state.
</p>
<p>
This Mantis chipset is used on DVB board for reception of DVB-T, DVB-S, DVB-S2, DVB-C signals.
</p>
<p>
In this small Howto i explain how I got the mantis driver up and<br />
running in my vanilla linux kernel.<br />
I had to do it in this way because I also own two Hauppauge PVR cards<br />
(PVR-350 and PVR-150) which do not work well with the mantis module.
</p>
<p>
This example has been tested with linux kernel source 2.6.22<br />
and the ivtv driver from the linuxtv.org hg reposititory and the one<br />
included in the kernel on a Fedora Core 6 setup.
</p>
<p><strong>WARNING:</strong> IVTV 0.10.3 and Mantis and kernel 2.6.21 and up do not work together.<br />
From kernel 2.6.22 the ivtv module is part of the kernel and you do not need to download it from the ivtvdriver.org website.<br />
To get ivtv and the mantis working in kernel 2.6.21 and up you need to add <strong>extra</strong> module parameters to the <em>saa7115</em> module.<br />
See the instructions at the end for this.</p>
<p><a name="" title=""></a><br />
[<a href="http://www.verbraak.org/wiki/index.php?title=Linux_Mantis_driver&amp;action=edit&amp;section=1" title="">edit</a>] Following steps you need to take (<strong>short</strong> ways for kernel 2.6.23.1):</p>
<ul>
<li> Download the <a href="http://www.verbraak.org/mantis-2.6.23.1.patch" title="http://www.verbraak.org/mantis-2.6.23.1.patch">patch file</a> for kernel 2.6.23.1.
	</li>
<li> use your current kernel or take a kernel source tree from <a href="http://www.kernel.org/" title="http://www.kernel.org">http://www.kernel.org</a>. Make sure you have the kernel headers/sources files/packages installed and you have the kernel up and running.
	</li>
<li> Apply the patch.
	</li>
</ul>
<p>#&gt; cd &lt;path to kernel source&gt;<br />
#&gt; patch -p1 &lt; &lt;path to mantis-2.6.23.1.patch file&gt;/mantis-2.6.23.1.patch</p>
<ul>
<li> Activate the mantis modules in your kernel config. Answer yes to the Mantis parts.
	</li>
</ul>
<p>#&gt; make oldconfig</p>
<ul>
<li> Compile.
	</li>
</ul>
<p>#&gt; make<br />
#&gt; make modules_install</p>
<ul>
<li> When you use your current kernel sources do load the modules
	</li>
</ul>
<p>#&gt; modprobe mantis<br />
#&gt; dmesg | grep -i dvb<br />
found a VP-1034 PCI DVB-S/DSS device on (02:05.0),<br />
DVB: registering new adapter (Mantis dvb adapter).<br />
mantis_frontend_init (0): Probing for MB86A16 (DVB-S/DSS)<br />
mantis_frontend_init (0): found MB86A16 DVB-S/DSS frontend @0x08<br />
DVB: registering frontend 0 (Fujitsu MB86A16 DVB-S)...</p>
<p><a name="" title=""></a><br />
[<a href="http://www.verbraak.org/wiki/index.php?title=Linux_Mantis_driver&amp;action=edit&amp;section=2" title="">edit</a>] Following steps you need to take (<strong>long</strong> way for kernels 2.6.21 and up):</p>
<ul>
<li> use your current kernel or take a kernel source tree from <a href="http://www.kernel.org/" title="http://www.kernel.org">http://www.kernel.org</a>. Make sure you have the kernel headers/sources files/packages installed and you have the kernel up and running.
	</li>
<li> Get the mantis dvb source tree from <a href="http://jusst.de/hg/mantis/archive/tip.tar.bz2" title="http://jusst.de/hg/mantis/archive/tip.tar.bz2">http://jusst.de/hg/mantis/archive/tip.tar.bz2</a>
	</li>
<li> Copy the directory &lt;path to mantis<br />
	tree&gt;/linux/drivers/media/dvb/mantis to &lt;path to kernel<br />
	source&gt;/drivers/media/dvb/
	</li>
<li> Add the following three lines to the file &lt;path to kernel<br />
	source&gt;/drivers/media/dvb/Kconfig. Add them before the last entry in<br />
	this file.
	</li>
</ul>
<p>comment &quot;Supported Mantis Adapters&quot;<br />
depends on DVB_CORE &amp;&amp; PCI &amp;&amp; I2C<br />
source &quot;drivers/media/dvb/mantis/Kconfig&quot;</p>
<ul>
<li> Add the following option &quot;<strong>mantis/</strong>&quot; to the file path to kernel source&gt;/drivers/media/dvb/Makefile. It should look like this
	</li>
</ul>
<p>#<br />
# Makefile for the kernel multimedia device drivers.<br />
#<br />
obj-y        := dvb-core/ frontends/ ttpci/ ttusb-dec/ ttusb-budget/ b2c2/ bt8xx/ cinergyT2/ dvb-usb/ pluto2/ mantis/</p>
<ul>
<li> Copy the files &lt;path to mantis<br />
	tree&gt;/linux/drivers/media/dvb/frontends/mb86a16* to &lt;path to<br />
	kernel source&gt;/drivers/media/dvb/frontends
	</li>
<li> Copy the files &lt;path to mantis<br />
	tree&gt;/linux/drivers/media/dvb/frontends/cu1216* to &lt;path to<br />
	kernel source&gt;/drivers/media/dvb/frontends
	</li>
<li> Add the following lines to the file &lt;path to kernel source&gt;/drivers/media/dvb/frontends/Kconfig just after the <strong>config DVB_TDA10086</strong>
	</li>
</ul>
<p>config DVB_MB86A16<br />
tristate &quot;Fujitsu MB86A16 based&quot;<br />
depends on DVB_CORE &amp;&amp; I2C<br />
default m<br />
help<br />
A DVB-S/DSS tuner module. Say Y when you want to support this frontend.<br />
config DVB_CU1216<br />
tristate &quot;Philips CU1216 tuner based&quot;<br />
depends on DVB_CORE &amp;&amp; I2C<br />
default m<br />
help<br />
A DVB-C tuner module. Say Y when you want to support this frontend.</p>
<ul>
<li> Add the following two lines to the file &lt;path to kernel source&gt;/drivers/media/dvb/frontends/Makefile
	</li>
</ul>
<p>obj-$(CONFIG_DVB_MB86A16) += mb86a16.o<br />
obj-$(CONFIG_DVB_CU1216) += cu1216.o</p>
<ul>
<li> Change in the file &lt;path to kernel<br />
	source&gt;/drivers/media/dvb/frontends/cu1216.c line 37 to look like<br />
	this (ignore the line numbers)
	</li>
</ul>
<p>     34 #include &lt;linux/slab.h&gt;<br />
35<br />
36 #include &quot;dvb_frontend.h&quot;<br />
37 #include &quot;../mantis/mantis_core.h&quot;<br />
38 #include &quot;cu1216.h&quot;<br />
39 #include &quot;cu1216_regs.h&quot;</p>
<ul>
<li> You can now compile your kernel in the normal way and install<br />
	the modules. If you wish to make sure the Mantis modules have been<br />
	selected do a <em>make menuconfig</em>
	</li>
</ul>
<p>#&gt; cd &lt;path to kernelsource&gt;<br />
#&gt; make menuconfig<br />
#&gt; make<br />
#&gt; make modules_install</p>
<ul>
<li> When you use your current kernel sources do load the modules
	</li>
</ul>
<p>#&gt; modprobe mantis<br />
#&gt; dmesg | grep -i dvb<br />
found a VP-1034 PCI DVB-S/DSS device on (02:05.0),<br />
DVB: registering new adapter (Mantis dvb adapter).<br />
mantis_frontend_init (0): Probing for MB86A16 (DVB-S/DSS)<br />
mantis_frontend_init (0): found MB86A16 DVB-S/DSS frontend @0x08<br />
DVB: registering frontend 0 (Fujitsu MB86A16 DVB-S)...</p>
<ul>
<li> Check the output of the dmesg command to see if the mantis modules loaded. Sometimes a reboot of the system is needed.
	</li>
<li> <strong>IMPORTANT:</strong> For kernels 2.6.21 and below the order in which you do the installations is also important. Every time you perform a <strong>make modules_install</strong> for the kernel you need to do the <strong>make install</strong> for the ivtv driver as well.
	</li>
</ul>
<p>
<br />
To get the Hauppauge cards working do the following:
</p>
<ul>
<li> The ivtv module is now part of the kernel since 2.6.22. So<br />
	check your kernel. If you have a kernel below 2.6.22 then do the<br />
	following </li>
<li> Get the ivtv source from <a href="http://dl.ivtvdriver.org/ivtv/archive/0.10.x/ivtv-0.10.5.tar.gz" title="http://dl.ivtvdriver.org/ivtv/archive/0.10.x/ivtv-0.10.5.tar.gz">http://dl.ivtvdriver.org/ivtv/archive/0.10.x/ivtv-0.10.5.tar.gz</a>. See <a href="http://www.ivtvdriver.org/" title="http://www.ivtvdriver.org">http://www.ivtvdriver.org</a> for latest version.
	</li>
<li> Extract the source, build and install it.
	</li>
</ul>
<p>#&gt; tar -zxvpf ivtv-0.10.5.tar.gz<br />
#&gt; cd ivtv-0.10.5<br />
#&gt; make; make install</p>
<ul>
<li> Install the <a href="http://dl.ivtvdriver.org/ivtv/firmware/firmware.tar.gz" title="http://dl.ivtvdriver.org/ivtv/firmware/firmware.tar.gz">ivtv firmware</a> files in /lib/firmware
	</li>
</ul>
<p>#&gt; cd /lib/firmware<br />
#&gt; wget <a href="http://dl.ivtvdriver.org/ivtv/firmware/firmware.tar.gz" title="http://dl.ivtvdriver.org/ivtv/firmware/firmware.tar.gz">http://dl.ivtvdriver.org/ivtv/firmware/firmware.tar.gz</a><br />
#&gt; tar -zxvpf firmware.tar.gz</p>
<ul>
<li> Load the ivtv modules:
	</li>
</ul>
<p>#&gt; modprobe ivtv<br />
#&gt; dmesg | grep -i ivtv<br />
ivtv:  ==================== START INIT IVTV ====================<br />
ivtv:  version 0.10.3 (development snapshot compiled on zo 20 mei 2007 08:57:55 CEST) loading<br />
ivtv:  Linux version: 2.6.21.1 SMP mod_unload PENTIUM4 4KSTACKS<br />
ivtv:  In case of problems please include the debug info between<br />
ivtv:  the START INIT IVTV and END INIT IVTV lines, along with<br />
ivtv:  any module options, when mailing the ivtv-users mailinglist.<br />
ivtv0: Autodetected Hauppauge card (cx23415 based)<br />
ivtv0: loaded v4l-cx2341x-enc.fw firmware (376836 bytes)<br />
ivtv0: loaded v4l-cx2341x-dec.fw firmware (262144 bytes)<br />
ivtv0: Encoder revision: 0x02060039<br />
ivtv0: Decoder revision: 0x02020023<br />
ivtv0: Autodetected Hauppauge WinTV PVR-350<br />
tuner 1-0061: chip found @ 0xc2 (ivtv i2c driver #0)<br />
saa7115 1-0021: saa7115 found (1f7115d0e100000) @ 0x42 (ivtv i2c driver #0)<br />
saa7127 1-0044: saa7127 found @ 0x88 (ivtv i2c driver #0)<br />
msp3400 1-0040: MSP4418G-A2 found @ 0x80 (ivtv i2c driver #0)<br />
ivtv0: Registered device video0 for encoder MPEG (4 MB)<br />
ivtv0: Registered device video32 for encoder YUV (2 MB)<br />
ivtv0: Registered device vbi0 for encoder VBI (1 MB)<br />
ivtv0: Registered device video24 for encoder PCM audio (1 MB)<br />
ivtv0: Registered device radio0 for encoder radio<br />
ivtv0: Registered device video16 for decoder MPEG (1 MB)<br />
ivtv0: Registered device vbi8 for decoder VBI (1 MB)<br />
ivtv0: Registered device vbi16 for decoder VOUT<br />
ivtv0: Registered device video48 for decoder YUV (1 MB)<br />
ivtv0: loaded v4l-cx2341x-init.mpg firmware (155648 bytes)<br />
ivtv0: Initialized Hauppauge WinTV PVR-350, card #0<br />
ivtv:  ======================  NEXT CARD  ======================<br />
ivtv1: Autodetected Hauppauge card (cx23416 based)<br />
ivtv1: loaded v4l-cx2341x-enc.fw firmware (376836 bytes)<br />
ivtv1: Encoder revision: 0x02060039<br />
tuner 2-0043: chip found @ 0x86 (ivtv i2c driver #1)<br />
tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #1)<br />
ivtv1: Autodetected Hauppauge WinTV PVR-150<br />
ivtv1: reopen i2c bus for IR-blaster support<br />
tuner 2-0043: chip found @ 0x86 (ivtv i2c driver #1)<br />
tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #1)<br />
cx25840 2-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #1)<br />
wm8775 2-001b: chip found @ 0x36 (ivtv i2c driver #1)<br />
ivtv1: Registered device video1 for encoder MPEG (4 MB)<br />
ivtv1: Registered device video33 for encoder YUV (2 MB)<br />
ivtv1: Registered device vbi1 for encoder VBI (1 MB)<br />
ivtv1: Registered device video25 for encoder PCM audio (1 MB)<br />
ivtv1: Initialized Hauppauge WinTV PVR-150, card #1<br />
ivtv:  ====================  END INIT IVTV  ====================</p>
<ul>
<li> Check the output of the dmesg command. Sometimes a reboot is needed.
	</li>
</ul>
<p>
<strong>When you are using kernel 2.6.21 and higher ivtv and mantis will<br />
nog work together. Depening on which module loads first the mantis<br />
module will freeze.</strong>
</p>
<p>
To resolve this problem you will have to add extra module parameters to the saa7115 module.<br />
Do the following to determine the values for the module parameters:
</p>
<ul>
<li> Get i2c bus number used by the Mantis driver.
	</li>
</ul>
<p>#&gt; modprobe i2c-dev<br />
#&gt; i2cdetect -l<br />
i2c-3   i2c             ivtv i2c driver #1                      I2C adapter<br />
i2c-2   i2c             ivtv i2c driver #0                      I2C adapter<br />
i2c-1   smbus           Mantis I2C                              SMBus adapter<br />
i2c-0   smbus           SMBus I801 adapter at 0400              SMBus adapter</p>
<ul>
<li> The i2c bus used by the Mantis driver is bus 1 (see i2c-1 part) in this example.
	</li>
<li> Add the following line to your /etc/modprobe.conf
	</li>
</ul>
<p>options saa7115 ignore=1,0x25,1,0x24,1,0x21,1,0x20</p>
<ul>
<li> Replace all the 1's (one's) with your i2c bus number leave the hexadecimal numbers intact.
	</li>
<li> Now reboot your machine and both the mantis and the ivtv modules should load without a problem and work without a problem.
	</li>
</ul>
</div>
    ]]></content>
  </entry>
</feed>
