Annotation of dvb-kernel/README, revision 1.26
1.23 hunold 1: linuxtv-dvb
2: ===========
1.17 js 3:
1.24 hunold 4: Digital Video Broadcast drivers for Linux 2.6.x *only*.
1.17 js 5:
6: Note: Unlike in previous releases, the test/utility programs have
7: been unbundled and are released seperately as linuxtv-dvb-apps-1.1.0.
8:
1.23 hunold 9: The DVB drivers are already included in Linux 2.6.x, so you usually
10: don't need this package. What you will need, hwoever, is firmware.
11: see below.
1.17 js 12:
1.24 hunold 13: "What happened to the 2.4 tree?"
14: --------------------------------
15:
16: See http://linuxtv.org/news/js/branch24.xml
17:
18: Maintaining the DVB driver for both Linux 2.4 and 2.6 in the same CVS
19: tree became too problematic. E.g. it is not possible to create DVB
20: driver patches for the mainline kernel directly from CVS without doing
21: a lot of work by hand. We also need to do some structural changes which
22: are not easy to do when we always have to keep 2.4 backwards
23: compatibility.
24:
25: Consequently, we've created a "linux_2_4" branch in dvb-kernel CVS for
26: the driver version for Linux 2.4.
27:
28: Main development in CVS HEAD will be for Linux 2.6 only, and all 2.4
29: compatibility stuff has been removed from HEAD.
30:
31: It largely depends on public interest and your help (hint, hint) for
32: improvements from HEAD to be backported to 2.4. If you want to checkout
33: the 2.4 drivers use the following command:
34:
35: cvs -d :pserver:anonymous@linuxtv.org:/cvs/linuxtv co -P -rlinux_2_4
36: dvb-kernel
37:
38: You can also select the linux_2_4 branch when viewing files in the CVS
39: web interface http://linuxtv.org/cgi-bin/cvsweb.cgi/dvb-kernel/ .
40:
1.17 js 41: Quick start:
42: ------------
43:
44: 1. Get firmware:
1.18 js 45:
1.17 js 46: Some DVB cards need firmware to operate. Due to licensing problems
47: we won't distribute the firmware binaries with the driver source,
48: you must get them seperately. See below for details about where
49: to get and where to put.
1.18 js 50:
1.26 ! quincy 51: Please use the script in linux/Documentation/dvb/get_dvb_firmware to
! 52: download the firmware for your device.
! 53:
! 54: There is also an archive of the latest firmware in linuxtv cvs, at
! 55: http://linuxtv.org/cgi-bin/cvsweb.cgi/dvb-kernel/firmware/
! 56:
1.25 js 57: See also linux/Documentation/dvb/firmware.txt and
1.18 js 58: linux/Documentation/firmware_class/README.
59:
1.23 hunold 60: 2. cd build-2.6
1.17 js 61:
62: 3. make
63:
64: 4. ./insmod.sh load
65:
1.19 js 66: Note: Some of the drivers will refuse to load and spit out
67: error messages if they cannot find their hardware. You can
68: ignore them, or edit insmod.sh and comment out drivers that
69: you don't need.
70:
71: You will have to load at least two drivers:
72: - one for the main DVB card / device
73: - one for the frontend (i.e. tuner + demodulator)
74:
1.17 js 75:
76: Detailed instructions for building:
77: -----------------------------------
1.1 hunold 78:
1.10 holger 79: If you encounter any problems while executing the follwing steps please read
80: the TROUBLESHOOTING file.
1.8 holger 81:
1.10 holger 82: Simply type 'make' to build the driver. The compiled modules will be located
1.23 hunold 83: in directory ./build-2.6/, depening on the kernel version you
1.8 holger 84: are running. There you will also find scripts to load and unload the modules.
85:
1.15 hunold 86: For some cards or frontends you need to download additional firmware
1.25 js 87: binaries. You need to compile your kernel with CONFIG_FW_LOADER and
88: have reasonably new hostplug scripts installed (see if '/sbin/hotplug --help'
89: includes "firmware" in the list of available agents).
1.15 hunold 90:
1.26 ! quincy 91: Please use the script in linux/Documentation/dvb/get_dvb_firmware to
! 92: download the firmware for your device.
1.15 hunold 93:
94: If something is missing, you get notified in the build process or when
95: loading the modules.
1.8 holger 96:
1.16 hunold 97: Just in case you are wondering: the "alps_bsrv2" driver is gone, please use
98: the new "ves1x93" driver instead.
99:
1.23 hunold 100: In ./build-2.6/ you find the insmod script.
1.10 holger 101:
1.9 holger 102: Use './insmod.sh load' to load the driver modules, './insmod.sh unload' to
103: remove them. './insmod debug' loads the drivers with debugging enabled.
1.13 holger 104: These scripts load all drivers for all cards but the ones based on the bt8xx.
105: For bt8xx based cards please use the insmod-bt8xx.sh script instead.
1.10 holger 106:
1.12 holger 107: Now check the klog and syslog (in doubt type 'dmesg') for error messages.
1.9 holger 108:
1.8 holger 109: When you reached this point successfully you probably want to start some
110: test applications, download the linuxtv-dvb-apps-1.1.tar.gz package, unpack
111: it and compile it. This package contains some tools to test and debug the
112: driver:
113:
1.9 holger 114: linuxtv-dvb-apps-1.1/apps/szap/ contains three simple applications called
115: szap, czap and tzap for zapping with DVB-S, DVB-C or DVB-T cards.
116: Read linuxtv-dvb-apps-1.1/apps/szap/ README for usage instructions.
1.8 holger 117:
118: Note 1: tuning succeeded if you see the FE_HAS_LOCK flag and "status 1f"; a
119: good signal has a low bit error rate (ber) and zero uncorrectable packets (unc).
120:
121: Note 2: you must keep ?zap running, or the frontend will go to sleep (unless
122: you load dvb-core.o with dvb_shutdown_timeout=0)
123:
124: If your card has a hardware MPEG decoder you can watch TV with xawtv (together
125: with e.g. szap for DVB tuning); Note: xawtv cannot control the DVB tuner, you
126: must use ?zap
127:
128: For cards without hardware MPEG decoder you need a software MPEG decoder,
129: e.g. mplayer or xine (you need *very* recent versions which understand MPEG2
130: transport streams; xine v0.9.21 and mplayer dev-CVS-030723-16:39-3.3.1 seem to
131: work); Note: You must run ?zap with the -r flag to enable stream output to the
132: dvr device, and keep it running while watching tv.
133:
134: Examples:
135: mplayer - < /dev/dvb/adapter0/dvr0
136: xine stdin://mpeg2 < /dev/dvb/adapter0/dvr0
137:
138: Note: Newest mplayer and xine versions are reported to have builtin DVB support
1.9 holger 139: (see ./linux/Documentation/dvb/faq.txt for more info).
1.8 holger 140:
141: For 'real' everyday use you probably don't want to use these test applications
1.9 holger 142: but install a program like VDR or MythTV.
143: (Read ./linux/Documentation/dvb/faq.txt for some links)
1.8 holger 144:
1.10 holger 145: When everything is working you probably want to install the driver on your
146: system by typing 'make install'. If you want to load the modules automatically
147: when an application tries to open the device you need to add lines like these
148: to your modules.conf:
149:
150: probeall /dev/dvb dvb-ttpci
151: alias /dev/dvb/* /dev/dvb
152: below dvb-ttpci alps_bsrv2 alps_tdmb7 alps_tdlb7
153: add below dvb-ttpci grundig_29504-401 grundig_29504-491
154: add below dvb-ttpci stv0299 ves1820
155:
156: Note: this example is for people with Technotrend-based PCI cards, they must
157: load the dvb-ttpci driver and a matching frontend drivers that are potentially
158: used on these cards. In order to find out which ones are required for your
159: setup check the lsmod output after loading the driver like described above.
160: Those DVB modules that have a usecount greater zero are required in your
161: setup - edit the modules.conf file appropriatly]
162:
163: Debian users don't edit modules.conf manually but add the lines above to a new
164: file in /etc/modutils/ (e.g. /etc/modutils/dvb) and call 'update-modules' then.
165:
1.8 holger 166: --------------------------------------------------------------------------------
167:
168: If you want to build a not-standalone driver but want to patch your 2.6 kernel
169: source tree with this driver please read README-2.6.
170:
171: More documentation is located in ./linux/Documentation/dvb/.
LinuxTV legacy CVS <linuxtv.org/cvs>