Archived:How to install DVB device drivers: Difference between revisions

From LinuxTVWiki
Jump to navigation Jump to search
(initial check-in, replacement for old how-to-install-dvb page)
 
m (typo fixes / add repo link / better formulation / added #dvb / note: original page is http://linuxtv.org/wiki/index.php/HOW_TO_Installing_DVB ; authors are Kismet , Boltronics and Jsogo)
Line 1: Line 1:
This page contains information to help an "end user" to install a DVB device on his or her GNU/Linux system.<br>
This page contains information to help an "end user" to install a DVB device on his or her GNU/Linux system.<br>
'''NOTE:''' Some of the following steps are specific to Debian-based distributions, but these instructions should still be helpful to users of other distributions.
'''NOTE:''' Some of the following steps are specific to Debian-based distributions, but these instructions should also be helpful to users of other distributions. Please have also a look at http://linuxtv.org/repo.


== Get required software ==
== Get required software ==
Before starting you'll need to have installed the following software:
Before you can start you need the following software:
* mercurial: needed to download the latest source
* mercurial: needed to download the latest source
* kernel-headers, make, gcc: needed to compile the the driver
* kernel-headers, make, gcc: needed to compile the the driver
Line 9: Line 9:
This guide does not include steps to install those software for all distributions.
This guide does not include steps to install those software for all distributions.


On Debian-based distributions you can use the following command to install all the required software:
On Debian-based distributions you can use the following command to install all required software:
$ sudo apt-get install mercurial linux-headers-$(uname -r) build-essential gcc make
$ [sudo] apt-get install mercurial linux-headers-$(uname -r) build-essential
Note: [sudo] means that you only have to specify "sudo" if you aren't root, otherwise omit it.


== Obtain latest source code ==
== Obtain latest source code ==
Line 22: Line 23:
Then we have just to compile the source:
Then we have just to compile the source:
$ make
$ make
If you run into any problems here, you can contact the developers via irc.freenode.net on #linuxtv.
If you run into any problems here, you should contact the developers via irc.freenode.net on #linuxtv or on #dvb.


== Install the driver and reboot ==
== Install the driver and reboot ==
The next step is to install the driver. To install the driver you have to execute:
The next step is to install the driver. To install the driver (note that the v4l modules are also installed) you have to execute:
$ sudo make install
$ [sudo] make install
Then connect the device (if external) and reboot. After that start your preferred program for watching DVB (e.g. [[Kaffeine]]).
Then connect the device (if external) and reboot.
$ [sudo] reboot
After that start your preferred program for watching DVB (e.g. [[Kaffeine]]).


== Obtain the firmware ==
== Obtain the firmware ==
Line 38: Line 41:
$ lsusb -v
$ lsusb -v


The firmware (if needed) can be found on one of those addresses:
The firmware (if needed) can be found on one of those links:
* http://linuxtv.org/downloads/firmware
* http://linuxtv.org/downloads/firmware
* http://thadathil.net:8000/dvb/fw
* http://thadathil.net:8000/dvb/fw
* http://thadathil.net:8000/dvb/fw/dvb-usb
* http://thadathil.net:8000/dvb/fw/dvb-usb


You have to download it and copy it into the right directory (used by hotplug). The location of this directory depends on your distro, but normally it's one of those:
You have to download it and copy it into the right directory (used by hotplug). The location of this directory depends on your distribution, but normally it's one of those:
/lib/firmware
/lib/firmware
/usr/lib/hotplug/firmware
/usr/lib/hotplug/firmware
Line 60: Line 63:
A: You should check that the /dev/dvb exists and that you have the correct permissions to read and write that directory.
A: You should check that the /dev/dvb exists and that you have the correct permissions to read and write that directory.


For further please contact developser via irc.freenode.net in #linuxtv or via mailing list.
For further please contact developers via irc.freenode.net on #linuxtv (or #dvb) or via mailing list.

Revision as of 17:01, 11 July 2006

This page contains information to help an "end user" to install a DVB device on his or her GNU/Linux system.
NOTE: Some of the following steps are specific to Debian-based distributions, but these instructions should also be helpful to users of other distributions. Please have also a look at http://linuxtv.org/repo.

Get required software

Before you can start you need the following software:

  • mercurial: needed to download the latest source
  • kernel-headers, make, gcc: needed to compile the the driver

This guide does not include steps to install those software for all distributions.

On Debian-based distributions you can use the following command to install all required software:

 $ [sudo] apt-get install mercurial linux-headers-$(uname -r) build-essential

Note: [sudo] means that you only have to specify "sudo" if you aren't root, otherwise omit it.

Obtain latest source code

After we have installed all required software you should be able to download the latest source code with the following command:

 $ hg clone http://linuxtv.org/hg/v4l-dvb

This should create a directory called v4l-dvb in the current working directory.

Compile the source code

Let's go inside the directory that contains the previously downloaded source:

 $ cd v4l-dvb

Then we have just to compile the source:

 $ make

If you run into any problems here, you should contact the developers via irc.freenode.net on #linuxtv or on #dvb.

Install the driver and reboot

The next step is to install the driver. To install the driver (note that the v4l modules are also installed) you have to execute:

 $ [sudo] make install

Then connect the device (if external) and reboot.

 $ [sudo] reboot

After that start your preferred program for watching DVB (e.g. Kaffeine).

Obtain the firmware

Some devices need firmware. To obtain the correct firmware you need to know what card you're using. Normally the device name and model are written on the device, on the box or in the manual. Look at DVB-S devices / DVB-C devices / DVB-T devices / ATSC devices.
The output of the following tools may be helpful, too. For PCI devices use

 $ lspci -v

For USB devices use

 $ lsusb -v

The firmware (if needed) can be found on one of those links:

You have to download it and copy it into the right directory (used by hotplug). The location of this directory depends on your distribution, but normally it's one of those:

 /lib/firmware
 /usr/lib/hotplug/firmware

Further documentation

Further steps can be found here:

FAQ

Q: My device was working perfectly, but now it is not recognized anymore. What is the problem?

A: It's possible that you're using a different kernel now, so you have to install the driver again and ensure that the firmware is reached by the hotplug system.

Q: My DVB device is recognized but I'm not able to use it. What can I do?

A: You should check that the /dev/dvb exists and that you have the correct permissions to read and write that directory.

For further please contact developers via irc.freenode.net on #linuxtv (or #dvb) or via mailing list.