|
|
MythTV talk.com - The MythTV forum Where the World comes to speak about MythTV !!
Welcome on the MythTV users community forum archive, 2060 users already joined the helping and friendly MythTV community! What are you waiting to be the next one?
Click HERE to view the official MythTV users community forum
|
| Twinhan VisionPlus DVB-T device issues on Fedora Core 4 |
skiman65
|
After having some battles this week with getting my Twinhan VisionPlus DVB-T card to work with Fedora Core 4 (2.6.12-1.1447_FC4), I thought I would post a summary of what I had to do to get it going. Basically I wanted to get everything going from a TV card perspective before delving into the MythTV setup (which BTW is about 80% done now).
lspci -v:
Code:
...
02:0b.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
Subsystem: Twinhan Technology Co. Ltd VisionPlus DVB card
...
02:0b.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Subsystem: Twinhan Technology Co. Ltd VisionPlus DVB Card
First off, the card - a Bt878 chipset card - is recognised fine by the kernel. However, /dev/video0 was not being created as a device, and the DVB drivers were not being loaded.
1. /dev/video0 not created when Bt878 driver loaded with modprobe
I read several other posts elsewhere saying "just run 'mknod /dev/video0 c 81'. Well let me just say this just did not work! To test it, I ran 'xawtv-3.94 -debug 2' as root:
Code:
v4l-conf had some trouble, trying to continue anyway
vid-open: trying: v4l2-old...
v4l2: open /dev/video0: No such file or directory
vid-open: failed: v4l2-old
vid-open: trying: v4l2...
v4l2: open /dev/video0: No such file or directory
vid-open: failed: v4l2
vid-open: trying: v4l...
v4l: open /dev/video0: No such file or directory
vid-open: failed: v4l
no video grabber device available
After a lot of seeking in /sys, diving in /dev and bashing with udev, this change got it working:
- Create /etc/udev/rules.d/06-dvb.rules and add the following lines:
Code:
KERNEL="dvb*", PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="%c"
SYSFS{vendor}="0x109e", PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="video0"
- Edit /etc/udev/scripts/dvb.sh and check it has the following
Code:
#!/bin/sh
/bin/echo $1 | /bin/sed -e 's,dvb\([0-9]\)\.\([^0-9]*\)\([0-9]\),dvb/adapter\1/\2\3,'
Notes:
- the second line in the rules file matches the vendor ID from the card and tells udev to create /dev/video0, properly (as opposed to using mknod, which doesn't)
- the vendor ID is obtained by running 'udevinfo -a -p /sys/devices/pci0000:00/0000:00:1e.0/0000:02:0b.0/', or by just poking around in /sys
- the 02:0b.0 comes from the lspci entry for the TV card
- Run 'modprobe -v i2c_dev'
Even after adding the rules file above, /dev/video0 still wan't created by udev. After 'modprobe i2c_dev' was run, this appears in /var/log/messages:
Code:
Sep 14 16:40:52 localhost kernel: i2c /dev entries driver
Sep 14 16:40:52 localhost udev[10401]: udev_rules.c: configured rule in '/etc/udev/rules.d/06-dvb.rules[2]' applied, 'i2c-0' becomes 'video0'
Sep 14 16:40:52 localhost udev[10401]: udev_add.c: creating device node '/dev/video0'
- Check that /dev/video0 is there and permissions etc are correct
# ls -l /dev/video0
Code:
crw-rw---- 1 root root 89, 0 Sep 14 16:44 /dev/video0
Note I also then had to 'chown mythtv:users /dev/video0' and 'chown mythtv:users /dev/dvb/adapter0/*'
2. 'modprobe bt878' does not load all the DVB drivers!
- Run 'modprobe -v dvb-bt8xx'
A 'modprobe bt878' does not automagically load the DVB drivers, only the standard Bt8x8 drivers.
'modprobe -v dvb-bt8xx' loads the following modules:
Code:
insmod /lib/modules/2.6.12-1.1447_FC4/kernel/drivers/media/dvb/frontends/or51211.ko
insmod /lib/modules/2.6.12-1.1447_FC4/kernel/drivers/media/dvb/frontends/cx24110.ko
insmod /lib/modules/2.6.12-1.1447_FC4/kernel/drivers/media/dvb/dvb-core/dvb-core.ko
insmod /lib/modules/2.6.12-1.1447_FC4/kernel/drivers/media/video/videodev.ko
insmod /lib/modules/2.6.12-1.1447_FC4/kernel/drivers/media/video/tveeprom.ko
insmod /lib/modules/2.6.12-1.1447_FC4/kernel/drivers/media/video/btcx-risc.ko
insmod /lib/modules/2.6.12-1.1447_FC4/kernel/drivers/media/video/v4l2-common.ko
insmod /lib/modules/2.6.12-1.1447_FC4/kernel/drivers/i2c/algos/i2c-algo-bit.ko
insmod /lib/modules/2.6.12-1.1447_FC4/kernel/drivers/media/video/video-buf.ko
insmod /lib/modules/2.6.12-1.1447_FC4/kernel/drivers/media/video/bttv.ko
insmod /lib/modules/2.6.12-1.1447_FC4/kernel/drivers/media/dvb/bt8xx/bt878.ko
insmod /lib/modules/2.6.12-1.1447_FC4/kernel/drivers/media/dvb/bt8xx/dst.ko
insmod /lib/modules/2.6.12-1.1447_FC4/kernel/drivers/media/dvb/bt8xx/dst_ca.ko
insmod /lib/modules/2.6.12-1.1447_FC4/kernel/drivers/media/dvb/frontends/sp887x.ko
insmod /lib/modules/2.6.12-1.1447_FC4/kernel/drivers/media/dvb/frontends/mt352.ko
insmod /lib/modules/2.6.12-1.1447_FC4/kernel/drivers/media/dvb/frontends/nxt6000.ko
insmod /lib/modules/2.6.12-1.1447_FC4/kernel/drivers/media/dvb/bt8xx/dvb-bt8xx.ko
---
After all that, I finally got xawtv to at least recognise /dev/video0. However, xawtv 3.94 doesn't seem to fully support DVB, so I installed kaffeine-0.6-1.1.fc3.rf.i386.rpm.
The MythTV box in question does not (yet) have a working sound card (another saga) so I edited the xine config: ~/.kde/share/apps/kaffeine/xine-config: audio.driver:none
After that, Kaffeine started up fine. Note that adding the sound card in causes Kaffeine to hang when double-clicking a program to view - this will be investigated further.
Note that you may NOT need to perform all of the above to get it working; this is just a summary of what *I* had to do. Also regarding the udev changes, it may not be the *correct* way to do it, so comments are welcome. Hopefully all this is of help to someone else! |
|
juski
|
| Well done.... editing udev rules really isn't for the faint-hearted, as you've no doubt discovered! |
|
| Go to the original "Twinhan VisionPlus DVB-T device issues on Fedora Core 4" thread |
|