Twinhan VP-1020A

From LinuxTVWiki
Revision as of 16:24, 19 June 2007 by CityK (talk | contribs) (some reorg, minor touch ups)
Jump to navigation Jump to search
VP-1020A
VP-1020A ASIC ... Identify your card model

A DVB-S Budget PCI card by TwinHan Technology Co. Ltd

Effectively, the VP-1020A is the oldest card design in the DVB-S family from Twinhan -- although it was preceeded by the VP-1020 model, the only differences between the VP-1020 and the VP-1020A are the color of the board and the firmware contained in the ASIC.

Overview

("DST-03T") (dst)

 features: Card is capable of delivering the full unmodified TS stream to userspace. 
 card driver: dvb-bt8xx
 interface: PCI
 PCI device id: 14f1:8804
 PCI subsystem id: 1822:0001
 Bridge: bt8xx
 frontend 1: LG
   frontend driver: dst
 Notes: The frontends on these cards are hidden behind an ASIC - no need to know the full details.
        The actual card type is determined by interrogating the onboard EEPROM.

Required modules and parameters:
The only frontend driver for this card is the dst module. The tuner component initialization routines are held in the ASIC in the form of firmware (not reloadable through software).

This card uses the bttv driver. Well suppported by LinuxTV drivers.

dvb_core dvb_shutdown_timeout=0 
bttv i2c_hw=1 card=0x71 
bt878 
dst 
dvb-bt8xx

Loading just dvb-bt8xx will normally autodetect the card and load all the above modules with the required parameters. See the following section for one potential problem area.

Kernel Hangup Problems with Twinhan / Brooktree 1020A

If your kernel freezes at startup with the following last messages:

bttv0: subsystem: fefe:0001 (UNKNOWN)
bttv0: using: *** UNKNOWN/GENERIC *** [card=0,autodetected]

This means your card's eeprom has been corrupted. The card takes it subsystem id from this eeprom, fefe:0001 is an unknown id, which makes the bttv driver hang. Due to unknown reasons (or cheapness on TwinHan's part) the eeprom is not write protected, and something (maybe a buggy driver?) stomped over it.

But the eeprom being writable also means that one can fix the problem relatively easy. You need the i2c* programs from lm-sensors. Run

modprobe i2c_dev
i2cdetect -l

to list all busses. IMPORTANT: to fix eeprom you must load all modules for your card except dvb-bt8xx. Find the right one for your card and do

i2cdetect BUS

(Replace BUS with the bus you determined from now on.) The above should list available address spaces. This can be dangerous if BUS is wrong, but usually it is safe. The 1020 normally has only one active chip at 0x50. If this looks right try

i2cdump BUS 0x50

to dump the eeprom (usually safe). The (wrong) subsystem id will reside in the last 4 bytes, make sure it matches the one your system prints before the hang -- if you saw fefe:0001 that means 00 01 fe fe. If do not see the id there, or nothing resides at 0x50, stop here! The next command will write to the chip, and may damage the respective hardware irreperably! NO GUARANTEES! That said, a card with this symptoms is a doorstop anyway, so if you are sure you are not looking at another hardware, go ahead. To put the right id 1822:0001 there, run the following commands

i2cset -y BUS 0x50 0xfc 0x00 b
i2cset -y BUS 0x50 0xfd 0x01 b
i2cset -y BUS 0x50 0xfe 0x18 b
i2cset -y BUS 0x50 0xff 0x22 b

The commands will complain about failing readback, but it should work anyway. Cross-check with another

i2cdump -y BUS 0x50

Once the bttv module is loaded again (e.g. at the next reboot) it should detect your card correctly. The same goes for the dvb-bt8xx module.