Skip to content

Installating

Luis Alves edited this page Jan 28, 2015 · 5 revisions

Downloading and building

git clone https://github.com/ljalves/media_build.git
git clone --depth=1 https://github.com/ljalves/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 ...

Donate

If you want to support this project, feel free to send me some beers to my PayPal account

Clone this wiki locally