DVB Installation 1.1.1 (Kernel 2.4)

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
Zeile 56: Zeile 56:
 
done
 
done
 
done
 
done
 +
</pre>
 +
 +
==Scripts==
 +
<pre>
 +
#!/bin/sh
 +
# insmod modules from current directory without having to install them first
 +
# KERNELVER=`uname -r`
 +
# KERNELDIR="/lib/modules/$KERNELVER/misc"
 +
 +
sync
 +
 +
case "$1" in
 +
    load)
 +
echo -n -e "\nInserting DVB modules into kernel\n"
 +
# make sure input stuff is there for IR remote controls
 +
# modprobe input
 +
# modprobe evdev
 +
# modprobe crc32
 +
# vide4linux for av7110 based "full featured" cards
 +
# modprobe videodev
 +
# insmod $KERNELDIR/v4l1-compat.o
 +
# insmod $KERNELDIR/v4l2-common.o
 +
# insmod $KERNELDIR/video-buf.o
 +
# DVB core
 +
# insmod $KERNELDIR/dvb-core.o
 +
# frontend drivers
 +
# insmod $KERNELDIR/stv0299.o
 +
modprobe stv0299
 +
# saa7146 based siemens/technotrend/hauppauge cards
 +
# insmod $KERNELDIR/saa7146.o
 +
# insmod $KERNELDIR/saa7146_vv.o
 +
# insmod $KERNELDIR/ttpci-eeprom.o
 +
# insmod $KERNELDIR/dvb-ttpci.o
 +
modprobe dvb-ttpci
 +
echo
 +
;;
 +
    debug)
 +
echo -n -e "\nInserting DVB modules (debug) into kernel\n"
 +
# modprobe videodev
 +
# modprobe crc32
 +
# insmod $KERNELDIR/v4l1-compat.o
 +
# insmod $KERNELDIR/v4l2-common.o
 +
# insmod $KERNELDIR/video-buf.o
 +
# insmod $KERNELDIR/dvb-core.o
 +
# insmod $KERNELDIR/stv0299.o
 +
modprobe stv0299
 +
# insmod $KERNELDIR/saa7146.o
 +
# insmod $KERNELDIR/saa7146_vv.o saa7146_debug=247
 +
modprobe saa7146_vv saa7146_debug=247
 +
# insmod $KERNELDIR/ttpci-eeprom.o
 +
# insmod $KERNELDIR/dvb-ttpci.o av7110_debug=247
 +
modprobe dvb-ttpci av7110_debug=247
 +
echo
 +
;;
 +
    unload)
 +
echo -n -e "\nDeleting DVB modules from kernel\n"
 +
rmmod stv0299 dvb-ttpci \
 +
ttpci-eeprom \
 +
saa7146_vv saa7146 \
 +
video-buf v4l2-common v4l1-compat dvb-core videodev crc32 i2c_core
 +
echo
 +
;;
 +
    reload)
 +
$0 unload && $0 load
 +
;;
 +
    *)
 +
echo "Usage$0 {load|unload|debug|reload}"
 +
exit 1
 +
esac
 +
 +
sync
 
</pre>
 
</pre>

Version vom 17. Dezember 2004, 08:20 Uhr

Inhaltsverzeichnis

Download

Das Archiv wird im selben Verzeichnis in welches später auch VDR kommt entpackt und ein symbolischer Link auf DVB angelegt.

  • Standard

http://www.linuxtv.org/download/dvb

cd $SOURCEDIR
tar zxvf /path/to/linuxtv-dvb-<VERSION>.tar.bz2
ln -s linuxtv-dvb-<VERSION> DVB
cd DVB
ln -s linux/include include
  • CVS
cd $SOURCEDIR
cvs -d :pserver:anonymous@linuxtv.org:/cvs/linuxtv login
cvs -d :pserver:anonymous@linuxtv.org:/cvs/linuxtv co -rlinux_2_4 dvb-kernel
ln -s dvb-kernel DVB
cd DVB
ln -s linux/include include

Firmware

Firmware bekommen Sie unter folgender Adresse http://www.linuxtv.org:81/download/dvb/firmware

mv /wo/auch/immer/dvb-ttpci-01.fw-261c $SOURCEDIR/DVB/build-2.4/dvb-ttpci-01.fw

Kompilieren

cd dvb-kernel/build-2.4
./getlinks
make

Laden/Entladen

cd dvb-kernel/build-2.4
./insmod.sh load
./insmod.sh unload

Hinweis

Die DVB Treiber von Kernel 2.6 haben jetzt einen offizielles device, dies sitzt auf Major 212 ! Um VDR ans laufen zu bekommen müssen diese neu angelegt werden.

Achtung ! Um VDR unter Kernel 2.4 laufen zu lassen die Major Nummer auf 250 ändern! Also ggf. die 212 im Script gegen 250 austauschen. Sonst läuft VDR leider auch unter Kernel 2.4 nicht mehr.

Folgendes Script hilft bei der Umstellung auf Kernel 2.6.

#!/bin/sh
rm -rf /dev/dvb/adapter*/*
device=0
for card in `seq 0 3`; do
device=`echo $card \* 64 | bc`
for dev in video audio sec frontend demux dvr ca net osd; do
mknod /dev/dvb/adapter${card}/${dev}0 c 212 $device
chmod 0660 /dev/dvb/adapter${card}/${dev}0
let device=device+1
done
done

Scripts

#!/bin/sh
# insmod modules from current directory without having to install them first
# KERNELVER=`uname -r`
# KERNELDIR="/lib/modules/$KERNELVER/misc"

sync

case "$1" in
    load)
	echo -n -e "\nInserting DVB modules into kernel\n"
	# make sure input stuff is there for IR remote controls
	# modprobe input
	# modprobe evdev
	# modprobe crc32
	# vide4linux for av7110 based "full featured" cards
	# modprobe videodev
	# insmod $KERNELDIR/v4l1-compat.o
	# insmod $KERNELDIR/v4l2-common.o
	# insmod $KERNELDIR/video-buf.o
	# DVB core
	# insmod $KERNELDIR/dvb-core.o
	# frontend drivers
	# insmod $KERNELDIR/stv0299.o
	modprobe stv0299
	# saa7146 based siemens/technotrend/hauppauge cards
	# insmod $KERNELDIR/saa7146.o
	# insmod $KERNELDIR/saa7146_vv.o
	# insmod $KERNELDIR/ttpci-eeprom.o
	# insmod $KERNELDIR/dvb-ttpci.o
	modprobe dvb-ttpci
	echo
	;;
    debug)
	echo -n -e "\nInserting DVB modules (debug) into kernel\n"
	# modprobe videodev
	# modprobe crc32
	# insmod $KERNELDIR/v4l1-compat.o
	# insmod $KERNELDIR/v4l2-common.o
	# insmod $KERNELDIR/video-buf.o
	# insmod $KERNELDIR/dvb-core.o
	# insmod $KERNELDIR/stv0299.o
	modprobe stv0299
	# insmod $KERNELDIR/saa7146.o
	# insmod $KERNELDIR/saa7146_vv.o saa7146_debug=247
	modprobe saa7146_vv saa7146_debug=247
	# insmod $KERNELDIR/ttpci-eeprom.o
	# insmod $KERNELDIR/dvb-ttpci.o av7110_debug=247
	modprobe dvb-ttpci av7110_debug=247
	echo
	;;
    unload)
	echo -n -e "\nDeleting DVB modules from kernel\n"
	rmmod stv0299 dvb-ttpci \
		ttpci-eeprom \
		saa7146_vv saa7146 \
		video-buf v4l2-common v4l1-compat dvb-core videodev crc32 i2c_core 
	echo
	;;
    reload)
	$0 unload && $0 load
	;;
    *)
	echo "Usage$0 {load|unload|debug|reload}"
	exit 1
esac

sync