DVB Installation 1.1.1 (Kernel 2.4)

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(Download)
 
(4 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
 +
==Voraussetzungen==
 +
Voraussetzung für eine erfolgreiche Übersetzung ist ein Kernel der Version 2.4 mit.
 +
 +
<b>Kernelkonfiguration</b>
 +
<pre>
 +
Input core support  --->
 +
    <M> Input core support
 +
    <M>  Event interface support
 +
 +
Character devices  --->
 +
  I2C support  --->
 +
    <*> I2C support
 +
    <M> I2C bit-banging interfaces
 +
    <M> I2C device interface
 +
    <M> I2C /proc interface
 +
 +
Multimedia devices  --->
 +
    <*> Video For Linux
 +
    Video For Linux  --->
 +
    [*]  V4L information in proc filesystem
 +
</pre>
 +
 
==Download==
 
==Download==
 
Das Archiv wird im selben Verzeichnis in welches später auch [[VDR]] kommt entpackt und ein symbolischer Link auf [[DVB]] angelegt.
 
Das Archiv wird im selben Verzeichnis in welches später auch [[VDR]] kommt entpackt und ein symbolischer Link auf [[DVB]] angelegt.
  
* '''Standard'''
+
* '''Source'''
 
http://www.linuxtv.org/downloads
 
http://www.linuxtv.org/downloads
  
Zeile 18: Zeile 40:
 
  ln -s linux/include include
 
  ln -s linux/include include
  
==Firmware==
+
===[[Firmware]]===
 
Firmware bekommen Sie unter folgender Adresse http://www.linuxtv.org/downloads/firmware
 
Firmware bekommen Sie unter folgender Adresse http://www.linuxtv.org/downloads/firmware
  
Zeile 56: Zeile 78:
 
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>
  
 
[[Kategorie:Installationsanleitungen]]
 
[[Kategorie:Installationsanleitungen]]

Aktuelle Version vom 29. Januar 2006, 18:06 Uhr

Inhaltsverzeichnis

[Bearbeiten] Voraussetzungen

Voraussetzung für eine erfolgreiche Übersetzung ist ein Kernel der Version 2.4 mit.

Kernelkonfiguration

Input core support  --->
    <M> Input core support
    <M>   Event interface support

Character devices  --->
   I2C support  --->
    <*> I2C support
    <M> I2C bit-banging interfaces
    <M> I2C device interface
    <M> I2C /proc interface

Multimedia devices  --->
    <*> Video For Linux
    Video For Linux  --->
     [*]   V4L information in proc filesystem

[Bearbeiten] Download

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

  • Source

http://www.linuxtv.org/downloads

cd $SOURCEDIR
tar jxvf /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

[Bearbeiten] Firmware

Firmware bekommen Sie unter folgender Adresse http://www.linuxtv.org/downloads/firmware

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

[Bearbeiten] Kompilieren

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

[Bearbeiten] Laden/Entladen

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

[Bearbeiten] Hinweis

Die DVB Treiber von Kernel 2.6 haben jetzt ein 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 (bei aktueller CVS-Version nicht mehr nötig!). 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