Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: DVB drivers in 2.6 kernel, VDR 1.3.8 and TT DVB-C2.1?



On Fri, 04 Jun 2004 23:22:33 +0300
hagrid <hagrid@welho.com> wrote:

> hagrid wrote:
> Another attempt, new kernel from kernel.org:
> 
> [root@cs78174054 VDR]# uname -r
> 2.6.6AH
> [root@cs78174054 VDR]# modprobe dvb-ttpci
> [root@cs78174054 VDR]# lsmod | grep dvb
> dvb_ttpci              86288  0
> dvb_core               88968  1 dvb_ttpci
> saa7146_vv             52960  1 dvb_ttpci
> saa7146                20520  2 dvb_ttpci,saa7146_vv
> firmware_class         10976  1 dvb_ttpci
> ttpci_eeprom            3776  1 dvb_ttpci
> [root@cs78174054 VDR]# ./vdr
> vdr: no primary device found - using first device!

Try with this script "makedev.napi" taken from linuxtv.org drivers, it
creates the needed devices for you:

---------------------- cut here ----------------------
#!/bin/sh
# Create device nodes for the Linux DVB API with DVB_API_VERSION 2.
# The devices created are suitable for most current PC DVB cards,
# i.e. cards having one frontend, one demux and optionally one
# MPEG decoder.
# The script creates devices for four cards by default.

if [ -e /dev/.devfsd ]; then
        echo "It seems you are using devfs. Good!"
	exit 0
fi

# get rid of old DVB API devices; do it twice for good measure...
rm -rf /dev/ost
rm -rf /dev/ost
rm -rf /dev/dvb
rm -rf /dev/dvb

mkdir /dev/dvb
chmod 755 /dev/dvb

for i in `seq 0 3`; do
	echo "Creating DVB devices in /dev/dvb/adapter$i"
	mkdir /dev/dvb/adapter$i
	chmod 755 /dev/dvb/adapter$i
	mknod -m 0660 /dev/dvb/adapter$i/video0    c 250   `expr 64 \* $i + 0`
	mknod -m 0660 /dev/dvb/adapter$i/audio0    c 250   `expr 64 \* $i + 1`
	mknod -m 0660 /dev/dvb/adapter$i/frontend0 c 250   `expr 64 \* $i + 3`
	mknod -m 0660 /dev/dvb/adapter$i/demux0    c 250   `expr 64 \* $i + 4`
	mknod -m 0660 /dev/dvb/adapter$i/dvr0      c 250   `expr 64 \* $i + 5`
	mknod -m 0660 /dev/dvb/adapter$i/ca0       c 250   `expr 64 \* $i + 6`
	mknod -m 0660 /dev/dvb/adapter$i/net0      c 250   `expr 64 \* $i + 7`
	mknod -m 0660 /dev/dvb/adapter$i/osd0      c 250   `expr 64 \* $i + 8`
	chown root.video /dev/dvb/adapter$i/*
done
---------------------- cut here ----------------------

Bye,
   ANgelus.




Home | Main Index | Thread Index