Archived:HOW TO Installing DVB: Difference between revisions

From LinuxTVWiki
Jump to navigation Jump to search
(Used Intrawiki link, and changed some grammatical error)
m (fixed links, minor edits)
 
(32 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Note|This page was unceremoniously replaced by [[Archived:How to install DVB device drivers|How to install DVB device drivers]] ... Unfortunately, the person who took such measures did not use the article "move" feature provided by the MediaWiki software, and instead just started a new page while copying what they wanted from this page, thereby losing all authour contribution attributes! This article is preserved within the archive to maintain such ties}}
This page contain some information that let a "end user" be able to install the DVB device on it's own GNU/Linux systems.
'''NOTE:''' Some of the following steps do not fit on some distro some, anyway you can still use the istruction as general procedure


__TOC__


--------
== Needed Software ==

Before start you'll need some software install on your systems that are:

* mercurial: need for download the latest source from the Version System used by LinuxTV developer
This page contains information to help an "end user" install a DVB device on his or her GNU/Linux system.
* kernel-headers: need for compiling the the driver
<p>'''NOTE:''' Some of the following steps are specific to Debian-based distributions, however these instructions should still be helpful to users of other distributions as a guide.</p>
* compiling suite: all the software for compiling and installing the driver

== Required Software ==
Before starting, you'll need to have installed the following software:
* mercurial: needed to download the latest source from the source code management system used by LinuxTV developers
* kernel-headers: needed for compiling the the driver
* compiling suite: tools for compiling and installing the driver
** make
** make
** gcc
** gcc
This guide do not include all the step to accomplish for install the neeed software.
This guide does not include steps to accomplish the installation of the above software for all distributions.


=== Needed Software: Ubuntu, Debian and Debian-like ===
== Required Software: Debian and Debian-based ==
On ubuntu you can use the following command to installa all the needed software:
On Debian (and Debian-based distributions like Ubuntu) you can use the following command to install all the 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 gcc make


== Obtain latest source ==
== Obtain latest source ==
Now that we have all the software installed you should be able to download the latest source with the following command
Now that we have all the software installed you should be able to download the latest source with the following command:
hg clone http://linuxtv.org/hg/v4l-dvb
$ hg clone http://linuxtv.org/hg/v4l-dvb
This should create a directory called v4l-dvb in the current working directory.
Let assumet that we have executed the command from the /usr/src directory so that we end up with /usr/src/v4l-dvb


== Compiling the latest Driver ==
== Compiling the latest driver ==
Let's go inside the directory that contain the just downloaded driver, continuing with our example means to run the command:
Let's go inside the directory that contains the previously downloaded source.
Now we just have to compile the source with
cd /usr/src/v4l-dvb
$ make
or
If you run into any problems here, you can contact the developers via IRC at:
cd v4l-dvb
* Server: irc.freenode.net
Now we have just to compile the source with
make
If get any trouble here you can contact the developer by irc at:
* Server:irc.freenode.net
* Channels: #linuxtv #dvb
* Channels: #linuxtv #dvb


== Obtain the firmware ==
== Obtain the firmware ==
To obtain the firmware need by your device you need to know the name and model of the device.
To obtain the firmware needed by your device you need to know the name and model. The device name and model are usually written on the device itself, on the box and/or in the manual, but you can also use the command:
$ lspci -v

=== Discovering the Device Name and Model ===
The device name and model are usually written on the device, on the box or/and the manual of the device itself, but you can also uso the command:
lspci -v
if your device is connected by PCI or
if your device is connected by PCI or
lsusb -v
$ lsusb -v
if your device is connected by USB
if your device is connected by USB to discover such information.
to discover such information.


=== Selecting right firmware ===
=== Selecting the right firmware ===
Now that you know which device is in your hands you can look at the list of the supported device at:
Now that you know the details of your device, you can look at the list of the supported devices at:
* [[DVB-S_cards|DVB-S Devices]]
* [[ATSC Devices]]
* [[DVB-C_cards|DVB-C Devices]]
* [[DVB-C Devices]]
* [[DVB-T_cards|DVB-T Devices]]
* [[DVB-S Devices]]
* [[DVB-T Devices]]
and there you can find which firmware is need by your device


There you can find which firmware you'll require (if any).
=== Downloading and Installing the firmware ===

The firmware can be found on one of the folloing address:
=== Downloading and installing the firmware ===
The firmware can be found on one of the following addresses:
* 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/
It must be downloaded to the directory used by your hotplug installation; that usually depends on the distribution you're using. Normally it's one of the following directories:
* http://linuxtv.org/downloads/firmware/
and must download on the directory used by you're hotplug, that usually depens on the distro that you're using but usually the directory are:
/lib/firmware/$(uname -r) [Ubuntu use that directoy one for each kernel installed]
/lib/hotplug/firmware/
/lib/firmware
/lib/firmware
/usr/lib/hotplug/firmware/


== Installing driver ==
== Installing the driver ==
Now you have to install the driver and then connect the device to your pc. To install the driver you have to execute:
The next step is to install the driver. To install the driver you have to execute:
sudo make unload
$ sudo make install
Then connect the device (if external) and reboot. After that start your preferred program for watching DVB (eg. [[Kaffeine]]).
sudo make install
Connect the device now and then start you're prefered program for watching DVB like [[Kaffeine]]


== Appendix A: Next Steps ==
== Appendix A: Further reading ==
Next step can be read at:
Further steps can be followed at:
* [[Testing your DVB device]]
* [[First_steps_with_a_budget_DVB_card|First Step with DVB Cards]]


== Appendix B: FAQ ==
== Appendix B: FAQ ==
Q: My device was working perfectly but now is not recongnized anymore?
'''Q: My device was working perfectly previously, but now is not recongnized anymore. Any idea why?'''

A: Probably now you're using a different kernel so you have to install the driver again and ensure that the firmware is reached by hotplug system. Beacuse some distro(like Ubuntu) use a firmware directory for each kernel version installed


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. This problem occurs due to certain distributions (such as Ubuntu) using a firmware directory specific to each kernel version installed.
Q: My DVB device is recognized but I'm not able to use it?


'''Q: My DVB device is recognized but I'm not able to use it. What can I do?'''
A: You should check that the user that is trying to access DVB device have right to read and write on the /dev/dvb directory that contains all virtual file where each of them rappresent a DVB device discovered by your system


A: You should check that the user that is trying to access DVB device has permissions to read and write to the /dev/dvb directory which contains all virtual files representing a DVB device discovered by your system.
Q: I have download the firmware but no /dev/dvb are present on my system


'''Q: I have download the firmware but /dev/dvb is not present on my system. How come?'''
A: Probably you're saved the firmware on directory that's used by the hotplug system for discovering the available firmware or the firmare is not readble by ALL the user.


A: It's possible that you've saved the firmware in a directory that's not used by the hotplug system for discovering the available firmware, or the firmare is not readble by ALL users. Also, read Documentation/dvb/udev.txt included in your kernel documentation to ensure udev is configured correctly.
== Appendix C: Credits ==
This page is been created by:
* Stefano "Kismet" Lenzi

Latest revision as of 21:08, 31 May 2009

Note: This page was unceremoniously replaced by How to install DVB device drivers ... Unfortunately, the person who took such measures did not use the article "move" feature provided by the MediaWiki software, and instead just started a new page while copying what they wanted from this page, thereby losing all authour contribution attributes! This article is preserved within the archive to maintain such ties




This page contains information to help an "end user" install a DVB device on his or her GNU/Linux system.

NOTE: Some of the following steps are specific to Debian-based distributions, however these instructions should still be helpful to users of other distributions as a guide.

Required Software

Before starting, you'll need to have installed the following software:

  • mercurial: needed to download the latest source from the source code management system used by LinuxTV developers
  • kernel-headers: needed for compiling the the driver
  • compiling suite: tools for compiling and installing the driver
    • make
    • gcc

This guide does not include steps to accomplish the installation of the above software for all distributions.

Required Software: Debian and Debian-based

On Debian (and Debian-based distributions like Ubuntu) you can use the following command to install all the required software:

 $ sudo apt-get install mercurial linux-headers-$(uname -r) build-essential gcc make

Obtain latest source

Now that we have all the software installed you should be able to download the latest source 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.

Compiling the latest driver

Let's go inside the directory that contains the previously downloaded source. Now we just have to compile the source with

 $ make

If you run into any problems here, you can contact the developers via IRC at:

  • Server: irc.freenode.net
  • Channels: #linuxtv #dvb

Obtain the firmware

To obtain the firmware needed by your device you need to know the name and model. The device name and model are usually written on the device itself, on the box and/or in the manual, but you can also use the command:

 $ lspci -v

if your device is connected by PCI or

 $ lsusb -v

if your device is connected by USB to discover such information.

Selecting the right firmware

Now that you know the details of your device, you can look at the list of the supported devices at:

There you can find which firmware you'll require (if any).

Downloading and installing the firmware

The firmware can be found on one of the following addresses:

It must be downloaded to the directory used by your hotplug installation; that usually depends on the distribution you're using. Normally it's one of the following directories:

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

Installing the driver

The next step is to install the driver. To install the driver you have to execute:

 $ sudo make install

Then connect the device (if external) and reboot. After that start your preferred program for watching DVB (eg. Kaffeine).

Appendix A: Further reading

Further steps can be followed at:

Appendix B: FAQ

Q: My device was working perfectly previously, but now is not recongnized anymore. Any idea why?

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. This problem occurs due to certain distributions (such as Ubuntu) using a firmware directory specific to each kernel version installed.

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

A: You should check that the user that is trying to access DVB device has permissions to read and write to the /dev/dvb directory which contains all virtual files representing a DVB device discovered by your system.

Q: I have download the firmware but /dev/dvb is not present on my system. How come?

A: It's possible that you've saved the firmware in a directory that's not used by the hotplug system for discovering the available firmware, or the firmare is not readble by ALL users. Also, read Documentation/dvb/udev.txt included in your kernel documentation to ensure udev is configured correctly.