Post by Oscar Bravo on Mar 7, 2019 9:16:28 GMT 2
Remember
Link
Installing media build drivers for additional TV tuner support in Linux
The drivers for the different devices in Linux are included in the Linux kernel. In case you want to add support for new devices, you will need to add the drivers into the Linux kernel. This is somewhat cumbersome, especially for areas where new devices pop up quickly. On the other hand, support is easy – if you have new enough kernel, you have the drivers.
However, there are certain occasions when you want to keep running your existing Linux kernel, but you would need support for additional devices. For TV tuners and other multimedia devices there’s something called media_build. Installing media build will add the additional drivers for these multimedia devices from the later kernels. For example, let’s assume that you are running Linux kernel 3.14 but you have just bought a TechnoTrend CT2-4400v2 USB DVB tuner. This tuner is supported only in kernel 3.19. You basically have two options: upgrade the kernel from 3.14 to 3.19 or install the media_build.
More often than not, installing media build will be easier. Here I will give you simple instructions for installing media_build in order to add support for latest TV tuners. The installation is pretty much the same on different Linux distributions, but I’m giving specific installation instructions for a few distributions. In case yours is not listed, you need to adapt a bit. Basically the installation process is the same, but you might need to install certain tools to actually compile the source code. Installation of software is typically different on each distribution.
Ubuntu Linux
First you will need to install a few basic tools, if they are not already installed on your system already. The following command will install some basic required tools for compiling media_build. If some of these are already installed on your system, it does not do any harm to run the command as is.
sudo apt-get install libproc-processtable-perl git patchutils
After the installation of these essential tools is complete, you can download and compile the source code for the latest media_build drivers.
git clone git://linuxtv.org/media_build.git
cd media_build
./build
This will compile the new drivers. After the compilation is successfully completed, you can install the drivers. After the installation it is usually easiest just to reboot the system and let it load the new drivers.
sudo make install
sudo reboot
If you like, you may delete the media_build directory now where the source code for the drivers is. The drivers are now installed.
Linux Mint
First you will need to install a few basic tools, if they are not already installed on your system already. The following command will install some basic required tools for compiling media_build. If some of these are already installed on your system, it does not do any harm to run the command as is.
sudo apt-get install libproc-processtable-perl git libc6-dev
After the installation of these essential tools is complete, you can download and compile the source code for the latest media_build drivers.
git clone git://linuxtv.org/media_build.git
cd media_build
./build
This will compile the new drivers. After the compilation is successfully completed, you can install the drivers. After the installation it is usually easiest just to reboot the system and let it load the new drivers.
sudo make install
sudo reboot
If you like, you may delete the media_build directory now where the source code for the drivers is. The drivers are now installed.
Fedora
First you will need to install a few basic tools, if they are not already installed on your system already. The following command will install some basic required tools for compiling media_build. If some of these are already installed on your system, it does not do any harm to run the command as is.
sudo yum install git gcc patch lsdiff wget kernel-headers kernel-devel
sudo yum install patchutils perl-Digest-SHA perl-Proc-ProcessTable
After the installation of these essential tools is complete, you can download and compile the source code for the latest media_build drivers.
git clone git://linuxtv.org/media_build.git
cd media_build
./build
This will compile the new drivers. After the compilation is successfully completed, you can install the drivers. After the installation it is usually easiest just to reboot the system and let it load the new drivers.
sudo make install
sudo reboot
If you like, you may delete the media_build directory now where the source code for the drivers is. The drivers are now installed. If you have problems, check that your kernel-headers version matches the kernel version.
uname -a
yum list installed kernel*
If the kernel-headers for your current kernel are not installed, correct the situation, remove the media_build directory and start again.
More reading
In case you are interested in reading more about the topic, there’s a page in the LinuxTV.org wiki page about the installation procedure of the V4L/DVB device drivers (media_build that is).
The drivers for the different devices in Linux are included in the Linux kernel. In case you want to add support for new devices, you will need to add the drivers into the Linux kernel. This is somewhat cumbersome, especially for areas where new devices pop up quickly. On the other hand, support is easy – if you have new enough kernel, you have the drivers.
However, there are certain occasions when you want to keep running your existing Linux kernel, but you would need support for additional devices. For TV tuners and other multimedia devices there’s something called media_build. Installing media build will add the additional drivers for these multimedia devices from the later kernels. For example, let’s assume that you are running Linux kernel 3.14 but you have just bought a TechnoTrend CT2-4400v2 USB DVB tuner. This tuner is supported only in kernel 3.19. You basically have two options: upgrade the kernel from 3.14 to 3.19 or install the media_build.
More often than not, installing media build will be easier. Here I will give you simple instructions for installing media_build in order to add support for latest TV tuners. The installation is pretty much the same on different Linux distributions, but I’m giving specific installation instructions for a few distributions. In case yours is not listed, you need to adapt a bit. Basically the installation process is the same, but you might need to install certain tools to actually compile the source code. Installation of software is typically different on each distribution.
Ubuntu Linux
First you will need to install a few basic tools, if they are not already installed on your system already. The following command will install some basic required tools for compiling media_build. If some of these are already installed on your system, it does not do any harm to run the command as is.
sudo apt-get install libproc-processtable-perl git patchutils
After the installation of these essential tools is complete, you can download and compile the source code for the latest media_build drivers.
git clone git://linuxtv.org/media_build.git
cd media_build
./build
This will compile the new drivers. After the compilation is successfully completed, you can install the drivers. After the installation it is usually easiest just to reboot the system and let it load the new drivers.
sudo make install
sudo reboot
If you like, you may delete the media_build directory now where the source code for the drivers is. The drivers are now installed.
Linux Mint
First you will need to install a few basic tools, if they are not already installed on your system already. The following command will install some basic required tools for compiling media_build. If some of these are already installed on your system, it does not do any harm to run the command as is.
sudo apt-get install libproc-processtable-perl git libc6-dev
After the installation of these essential tools is complete, you can download and compile the source code for the latest media_build drivers.
git clone git://linuxtv.org/media_build.git
cd media_build
./build
This will compile the new drivers. After the compilation is successfully completed, you can install the drivers. After the installation it is usually easiest just to reboot the system and let it load the new drivers.
sudo make install
sudo reboot
If you like, you may delete the media_build directory now where the source code for the drivers is. The drivers are now installed.
Fedora
First you will need to install a few basic tools, if they are not already installed on your system already. The following command will install some basic required tools for compiling media_build. If some of these are already installed on your system, it does not do any harm to run the command as is.
sudo yum install git gcc patch lsdiff wget kernel-headers kernel-devel
sudo yum install patchutils perl-Digest-SHA perl-Proc-ProcessTable
After the installation of these essential tools is complete, you can download and compile the source code for the latest media_build drivers.
git clone git://linuxtv.org/media_build.git
cd media_build
./build
This will compile the new drivers. After the compilation is successfully completed, you can install the drivers. After the installation it is usually easiest just to reboot the system and let it load the new drivers.
sudo make install
sudo reboot
If you like, you may delete the media_build directory now where the source code for the drivers is. The drivers are now installed. If you have problems, check that your kernel-headers version matches the kernel version.
uname -a
yum list installed kernel*
If the kernel-headers for your current kernel are not installed, correct the situation, remove the media_build directory and start again.
More reading
In case you are interested in reading more about the topic, there’s a page in the LinuxTV.org wiki page about the installation procedure of the V4L/DVB device drivers (media_build that is).
Link