Installating

CvH edited this page Jul 27, 2016 · 6 revisions

Downloading and building

git clone https://github.com/tbsdtv/media_build.git
git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media
cd media_build
make dir DIR=../media
make distclean
make

Installing

~/media_build $ sudo make install

Loading the modules (or you can just reboot)

CX23885 based

~/media_build $ sudo make rmmod
~/media_build $ sudo modprobe cx23885

SAA716X based

~/media_build $ sudo make rmmod
~/media_build $ sudo modprobe saa716x_budget int_type=1

If you find module load errors like "module has wrong symbol version" means that there still are old modules from your previous media tree installation (usually duplicated modules in two different places).

The brute-force approach is to simply do:

$ sudo rm -rf /lib/modules/`uname -r`/kernel/drivers/media/*

The other option is to identify, find and remove duplicate modules manually.

Example:

$ find /lib/modules/`uname -r` -name "media.ko"

Upgrading sources and re-installing

~ $ cd media
~/media $ git remote update
~/media $ git pull
~/media $ cd ../media_build
~/media_build $ git remote update
~/media_build $ git pull
~/media_build $ make
~/media_build $ sudo make install
(now you can reboot or unload/reload modules manually:)
~/media_build $ sudo make rmmod
~/media_build $ sudo modprobe ...
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.