[linux-dvb] does Linux-2.6.13 support CableStar 2 PCI?

Innocenti Maresin qq at inCTV.ru
Sun Sep 18 19:05:31 CEST 2005


Hello!

As far as I know, CableStar 2 _officially_ is not supported yet by Linux. 
But there is a "modified dvb-kernel-snapshot" by Patrick Boettcher 
( see http://www.linuxtv.org/pipermail/linux-dvb/2005-July/003215.html , 
  http://www.wi-bw.tfh-wildau.de/~pboettch/home/index.php?site=cable4pc ) 
that give a CableStar 2 support on the base of b2c2-flexcop driver. 

One month ago I got Linux-2.6.13-rc6 from kernel.org
(Patrick Boettcher wrote that the driver should work with 2.6.9-2.6.11 though), 
then replaced Linux's drivers/media/dvb/b2c2 and drivers/media/dvb/frontends 
by ones from Patrick Boettcher's tarball and built the kernel. 

When I load b2c2-flexcop-pci module, following messages appear: 
flexcop-pci: will use the HW PID filter.
flexcop-pci: card revision 2
PCI: Found IRQ 10 for device 0000:01:02.0
PCI: Sharing IRQ 10 with 0000:00:1f.3
PCI: Sharing IRQ 10 with 0000:00:1f.5
DVB: registering new adapter (FlexCop Digital TV device).
b2c2-flexcop: MAC address = 00:d0:d7:08:07:ee
b2c2-flexcop: i2c master_xfer failed
b2c2-flexcop: i2c master_xfer failed
b2c2-flexcop: i2c master_xfer failed
mt352_read_register: readreg error (reg=127, ret==-121)
b2c2-flexcop: i2c master_xfer failed
i2c_readbytes: i2c read error (addr 0a, err == -121)
b2c2-flexcop: i2c master_xfer failed
b2c2-flexcop: found the stv0297 at i2c address: 0x1c
DVB: registering frontend 0 (ST STV0297 DVB-C)...
b2c2-flexcop: initialization of 'Cable2PC/CableStar 2 DVB-C' at the 'PCI' bus controlled by a 'FlexCopIIb' complete

I tried to receive TV, "czap" seems to work:
status 1f | signal 00b4 | snr 0dfe | ber 000004d3 | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00ab | snr 0c2c | ber 0000052d | unc 0000060a | FE_HAS_LOCK
status 1f | signal 00ab | snr 0c17 | ber 0000052d | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00aa | snr 0ccf | ber 0000052d | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00ac | snr 0ec0 | ber 0000052d | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00ac | snr 0c8d | ber 000002c5 | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00a9 | snr 101e | ber 000002c5 | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00ab | snr 0c37 | ber 000002c5 | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00aa | snr 0c0d | ber 000002c5 | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00ab | snr 0ca6 | ber 00000325 | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00ac | snr 0c44 | ber 00000325 | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00aa | snr 0c36 | ber 00000325 | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00aa | snr 0c4d | ber 00000325 | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00a9 | snr 0cb4 | ber 0000028e | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00aa | snr 0cc0 | ber 0000028e | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00aa | snr 0c6a | ber 0000028e | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00aa | snr 0dd5 | ber 0000028e | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00aa | snr 0baf | ber 000002da | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00aa | snr 0ba0 | ber 000002da | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00ab | snr 0e80 | ber 000002da | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00aa | snr 0dc3 | ber 000002da | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00a9 | snr 0c6e | ber 000002c4 | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00a9 | snr 0cd3 | ber 000002c4 | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00a8 | snr 0d25 | ber 000002c4 | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00ab | snr 0ccd | ber 000002c4 | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00ab | snr 0e4c | ber 00000327 | unc 00000000 | FE_HAS_LOCK
status 1f | signal 00aa | snr 0d4e | ber 00000327 | unc 00000000 | FE_HAS_LOCK

, but no data can be read via /dev/dvb/adapter0/:
$ cat /dev/dvb/adapter0/video0
cat: /dev/dvb/adapter0/video0: No such device or address
$ cat /dev/dvb/adapter0/audio0 
cat: /dev/dvb/adapter0/audio0: No such device or address

All needed modules are loaded.

Additional information from  lspci -v -d 13d0:2103
0000:01:02.0 Network controller: Techsan Electronics Co Ltd B2C2 FlexCopII DVB chip / Technisat SkyStar2 DVB card (rev 02)
        Subsystem: Techsan Electronics Co Ltd B2C2 FlexCopII DVB chip / Technisat SkyStar2 DVB card
        Flags: bus master, slow devsel, latency 32, IRQ 10
        Memory at f8400000 (32-bit, non-prefetchable) [size=64K]
        I/O ports at d000 [size=32]


When I used original drivers from Linux-2.6.13-rc6, I give similar messages:
flexcop-pci: will use the HW PID filter.
flexcop-pci: card revision 2
PCI: Found IRQ 10 for device 0000:01:02.0
PCI: Sharing IRQ 10 with 0000:00:1f.3
PCI: Sharing IRQ 10 with 0000:00:1f.5
setting pid:  8191 1fff at index 0 'off'
setting pid:  8191 1fff at index 1 'off'
setting pid:  8191 1fff at index 2 'off'
[skip]
setting pid:  8191 1fff at index 37 'off'
DVB: registering new adapter (FlexCop Digital TV device).
b2c2-flexcop: MAC address = 00:d0:d7:08:07:ee
b2c2-flexcop: i2c master_xfer failed
b2c2-flexcop: i2c master_xfer failed
b2c2-flexcop: i2c master_xfer failed
mt352_read_register: readreg error (reg=127, ret==-121)
b2c2-flexcop: i2c master_xfer failed
i2c_readbytes: i2c read error (addr 0a, err == -121)
b2c2-flexcop: i2c master_xfer failed
b2c2-flexcop: i2c master_xfer failed
stv0297_readreg: readreg error (reg == 0x80, ret == -22)
b2c2-flexcop: i2c master_xfer failed
mt312_read: ret == -121
b2c2-flexcop: no frontend driver found for this B2C2/FlexCop adapter

, and even "czap" does not work, although the module seems to be loaded: 
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
 42 TV5:778000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:811:812:81
 42 TV5: f 778000000, s 6875000, i 2, fec 0, qam 3, v 0x32b, a 0x32c
ERROR: failed opening '/dev/dvb/adapter0/frontend0' (No such file or directory)

linux-2.6.13-rc6/Documentation/dvb/README.flexcop states that 
   - add support for CableStar (stv0297 Microtune 203x/ALPS)
     (almost done, incompatibilities with the Nexus-CA)
, but I think it does not mean CableStar _2_ PCI (so named budget) cards. 


Unfortunally, Patrick Boettcher gives a tarball of sources, 
not *patch* to [mainstream] drivers. 

Perhaps some kernel's internal structures was changed in 2.6.12
( some information can be found 
  in ftp://ftp.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.12 ) 
and the driver for CableStar 2 PCI is not compatible with 2.6.12+. 

Should I try to use Linux-2.6.11 
or somebody know what I can to to enable CableStar 2 in 2.6.13? 

I'll appreciate any suggestion or link which helps me to realize better 
the current situation of supporting CableStar 2 PCI in Linux. 


-- 
qq~~~~\  [ ЗА IP БЕЗ ЦЕНЗУРЫ ]
/ /\   \        [ inCTV News ]  news://news1.inCTV.ru/
\  /_/ /
 \____/



More information about the linux-dvb mailing list