[linux-dvb] Kenerl 2.6.20, mantis and vp-1034

Michel Verbraak michel at verbraak.org
Fri Feb 23 13:56:09 CET 2007


Just bought a new cpu and motherboard and made a clean install of FC6 
and made a vanilla 2.6.20 kernel.

tried to merge the kromtek.com/dvb/mantis.tar.bz2 driver into the 2.6.20 
kernel.

I copied the directory "linux/driver/media/dvb/mantis" to 
"<2.6.20-source>/driver/media/dvb"
Modified the Kconfig and Makefile in "<2.6.20-source>/driver/media/dvb"
Copied the file mb86* and cu1216* to 
"<2.6.20-source>/driver/media/dvb/frontends"
And modified the Kconfig and Makefile in 
"<2.6.20-source>/driver/media/dvb/frontends"

Did a make menuconfig to compile the Mantis driver as a module and did a 
make modules.
I received the following two problems and some warnings:

1. Had to remove one line in cu1216.c file (#include <linux/config.h>)
2. and had to modify the line #include "mantis_core.h" into  #include 
"../mantis/mantis_core.h".

I installed the modules (make modules_install) and loaded the modules 
(modprobe mantis)
Following is the result in the messagelog:

ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 16
ACPI: PCI Interrupt 0000:02:05.0[A] -> Link [LNKB] -> GSI 16 (level, 
low) -> IRQ 16
irq: 16, latency: 32
 memory: 0xf68ff000, mmio: 0xffffc20000026000
found a VP-1034 PCI DVB-S/DSS device on (02:05.0),
    Mantis Rev 1 [1822:0014], irq: 16, latency: 32
    memory: 0xf68ff000, mmio: 0xffffc20000026000
**WARNING** I2C adapter driver [Mantis I2C] forgot to specify physical 
device; fix it!
    MAC Address=[00:08:ca:19:9f:0b]
mantis_alloc_buffers (0): DMA=0x2d310000 cpu=0xffff81002d310000 size=65536
mantis_alloc_buffers (0): RISC=0x282c5000 cpu=0xffff8100282c5000 size=1000
DVB: registering new adapter (Mantis dvb adapter).
mantis_frontend_init (0): Probing for MB86A16 (DVB-S/DSS)
mantis_frontend_init (0): found MB86A16 DVB-S/DSS frontend @0x08
DVB: registering frontend 0 (Fujitsu MB86A16 DVB-S)...

Just one WARNING line which I have never seen before.
Removed the modules and loaded the mb86a16 and the mantis module with 
verbose=255 and had the following output in messagelog:

ACPI: PCI Interrupt 0000:02:05.0[A] -> Link [LNKB] -> GSI 16 (level, 
low) -> IRQ 16

gpif status: 6080  irqcfg: 0002
mantis_set_direction (0): TS direction setup
irq: 16, latency: 32
 memory: 0xf68ff000, mmio: 0xffffc20000062000
found a VP-1034 PCI DVB-S/DSS device on (02:05.0),
    Mantis Rev 1 [1822:0014], irq: 16, latency: 32
    memory: 0xf68ff000, mmio: 0xffffc20000062000
**WARNING** I2C adapter driver [Mantis I2C] forgot to specify physical 
device; fix it!
mantis_i2c_init (0): Initializing I2C ..
mantis_i2c_init (0): [0x04080000/00000000]
        mantis_i2c_write: Address=[0x50] <W>[ 08 === 
Interrupts[4080001/0001]= [* I2C R-ACK ** PCMCIA-07 ** I2C DONE  *] ===
]
        mantis_i2c_read:  Address=[0x50] <R>[ === 
Interrupts[4080001/0001]= [* I2C R-ACK ** PCMCIA-07 ** I2C DONE  *] ===
00 === Interrupts[4080001/0001]= [* I2C R-ACK ** PCMCIA-07 ** I2C DONE  
*] ===
08 === Interrupts[4080001/0001]= [* I2C R-ACK ** PCMCIA-07 ** I2C DONE  
*] ===
ca === Interrupts[4080001/0001]= [* I2C R-ACK ** PCMCIA-07 ** I2C DONE  
*] ===
19 === Interrupts[4080001/0001]= [* I2C R-ACK ** PCMCIA-07 ** I2C DONE  
*] ===
9f === Interrupts[4080001/0001]= [* I2C R-ACK ** PCMCIA-07 ** I2C DONE  
*] ===
0b ]
    MAC Address=[00:08:ca:19:9f:0b]
mantis_dma_init (0): Mantis DMA init
mantis_alloc_buffers (0): DMA=0x2d310000 cpu=0xffff81002d310000 size=65536
mantis_alloc_buffers (0): RISC=0xe465000 cpu=0xffff81000e465000 size=1000
mantis_calc_lines (0): Mantis RISC block bytes=[4096], line 
bytes=[2048], line count=[32]
mantis_dvb_init (0): dvb_register_adapter
DVB: registering new adapter (Mantis dvb adapter).
mantis_dvb_init (0): dvb_dmx_init
mantis_dvb_init (0): dvb_dmxdev_init
mantis_frontend_init (0): Mantis frontend Init
mantis_fe_powerup (0): Frontend Power ON
mantis_frontend_reset (0): Frontend Reset
mantis_frontend_init (0): Device ID=14
mantis_frontend_init (0): Probing for MB86A16 (DVB-S/DSS)
        mantis_i2c_write: Address=[0x08] <W>[ 7f === 
Interrupts[4080001/0001]= [* I2C R-ACK ** PCMCIA-07 ** I2C DONE  *] ===
]
        mantis_i2c_read:  Address=[0x08] <R>[ === 
Interrupts[4080001/0001]= [* I2C R-ACK ** PCMCIA-07 ** I2C DONE  *] ===
fe ]
mantis_frontend_init (0): found MB86A16 DVB-S/DSS frontend @0x08
DVB: registering frontend 0 (Fujitsu MB86A16 DVB-S)...

I can scan channels and watch channels without a problem. Currently not 
able to rotate my rotor but I'm still investigating what the problem 
might be.

Regards,

  Michel.

Some info about the environment:
[root at garfield linux-2.6.20]# uname -a
Linux garfield.verbraak.thuis 2.6.20 #3 SMP Sun Feb 18 11:33:30 CET 2007 
x86_64 x86_64 x86_64 GNU/Linux

[root at garfield linux-2.6.20]# lspci -v
00:00.0 Host bridge: nVidia Corporation nForce3 250Gb Host Bridge (rev a1)
        Subsystem: ASRock Incorporation Unknown device 00e1
        Flags: bus master, 66MHz, fast devsel, latency 0
        Memory at f8000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [44] HyperTransport: Slave or Primary Interface
        Capabilities: [c0] AGP version 3.0

00:01.0 ISA bridge: nVidia Corporation nForce3 250Gb LPC Bridge (rev a2)
        Subsystem: ASRock Incorporation Unknown device 00e0
        Flags: bus master, 66MHz, fast devsel, latency 0

00:01.1 SMBus: nVidia Corporation nForce 250Gb PCI System Management 
(rev a1)
        Subsystem: ASRock Incorporation Unknown device 00e4
        Flags: 66MHz, fast devsel
        I/O ports at 5080 [size=32]
        I/O ports at 5000 [size=64]
        I/O ports at 5040 [size=64]
        Capabilities: [44] Power Management version 2

00:02.0 USB Controller: nVidia Corporation CK8S USB Controller (rev a1) 
(prog-if 10 [OHCI])
        Subsystem: ASRock Incorporation Unknown device 00e7
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 22
        Memory at febff000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [44] Power Management version 2

00:02.1 USB Controller: nVidia Corporation CK8S USB Controller (rev a1) 
(prog-if 10 [OHCI])
        Subsystem: ASRock Incorporation Unknown device 00e7
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 21
        Memory at febfe000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [44] Power Management version 2

00:02.2 USB Controller: nVidia Corporation nForce3 EHCI USB 2.0 
Controller (rev a2) (prog-if 20 [EHCI])
        Subsystem: ASRock Incorporation Unknown device 00e8
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 20
        Memory at febfdc00 (32-bit, non-prefetchable) [size=256]
        Capabilities: [44] Debug port
        Capabilities: [80] Power Management version 2

00:05.0 Bridge: nVidia Corporation CK8S Ethernet Controller (rev a2)
        Subsystem: ASRock Incorporation Unknown device 00df
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 22
        Memory at febfc000 (32-bit, non-prefetchable) [size=4K]
        I/O ports at ec00 [size=8]
        Capabilities: [44] Power Management version 2

00:08.0 IDE interface: nVidia Corporation CK8S Parallel ATA Controller 
(v2.5) (rev a2) (prog-if 8a [Master SecP PriP])
        Subsystem: ASRock Incorporation Unknown device 00e5
        Flags: bus master, 66MHz, fast devsel, latency 0
        [virtual] Memory at 000001f0 (32-bit, non-prefetchable) 
[disabled] [size=8]
        [virtual] Memory at 000003f0 (type 3, non-prefetchable) 
[disabled] [size=1]
        [virtual] Memory at 00000170 (32-bit, non-prefetchable) 
[disabled] [size=8]
        [virtual] Memory at 00000370 (type 3, non-prefetchable) 
[disabled] [size=1]
        I/O ports at ffa0 [size=16]
        Capabilities: [44] Power Management version 2

00:0b.0 PCI bridge: nVidia Corporation nForce3 250Gb AGP Host to PCI 
Bridge (rev a2) (prog-if 00 [Normal decode])
        Flags: bus master, 66MHz, medium devsel, latency 16
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=10
        I/O behind bridge: 0000b000-0000dfff
        Memory behind bridge: fea00000-feafffff
        Prefetchable memory behind bridge: c6800000-e67fffff

00:0e.0 PCI bridge: nVidia Corporation nForce3 250Gb PCI-to-PCI Bridge 
(rev a2) (prog-if 00 [Normal decode])
        Flags: bus master, 66MHz, fast devsel, latency 0
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=128
        Prefetchable memory behind bridge: e6800000-f68fffff

00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
HyperTransport Technology Configuration
        Flags: fast devsel
        Capabilities: [80] HyperTransport: Host or Secondary Interface

00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
Address Map
        Flags: fast devsel

00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
DRAM Controller
        Flags: fast devsel

00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
Miscellaneous Control
        Flags: fast devsel
        Capabilities: [f0] #0f [0010]

01:00.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon 
9200 PRO] (rev 01) (prog-if 00 [VGA])
        Subsystem: ASUSTeK Computer Inc. Unknown device 004c
        Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 17
        Memory at d8000000 (32-bit, prefetchable) [size=128M]
        I/O ports at d000 [size=256]
        Memory at feaf0000 (32-bit, non-prefetchable) [size=64K]
        Expansion ROM at feac0000 [disabled] [size=128K]
        Capabilities: [58] AGP version 3.0
        Capabilities: [50] Power Management version 2

01:00.1 Display controller: ATI Technologies Inc RV280 [Radeon 9200 PRO] 
(Secondary) (rev 01)
        Subsystem: ASUSTeK Computer Inc. Unknown device 004d
        Flags: bus master, 66MHz, medium devsel, latency 32
        Memory at d0000000 (32-bit, prefetchable) [size=128M]
        Memory at feae0000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: [50] Power Management version 2

02:05.0 Multimedia controller: Twinhan Technology Co. Ltd Mantis DTV PCI 
Bridge Controller [Ver 1.0] (rev 01)
        Subsystem: Twinhan Technology Co. Ltd Unknown device 0014
        Flags: bus master, medium devsel, latency 32, IRQ 16
        Memory at f68ff000 (32-bit, prefetchable) [size=4K]

02:06.0 Multimedia video controller: Internext Compression Inc iTVC15 
MPEG-2 Encoder (rev 01)
        Subsystem: Hauppauge computer works Inc. WinTV PVR-350
        Flags: bus master, medium devsel, latency 64, IRQ 19
        Memory at f0000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [44] Power Management version 2

02:08.0 Multimedia video controller: Internext Compression Inc iTVC16 
(CX23416) MPEG-2 Encoder (rev 01)
        Subsystem: Hauppauge computer works Inc. WinTV PVR 150
        Flags: bus master, medium devsel, latency 64, IRQ 18
        Memory at ec000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [44] Power Management version 2

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.linuxtv.org/pipermail/linux-dvb/attachments/20070223/073f9e57/attachment-0001.htm


More information about the linux-dvb mailing list