Install drivers for mygica s870 ubuntu 12.04 + install kernel 3.5

Install kernel 3.5

If you have a 64-bit/amd64 systems
sudo add-apt-repository ppa:upubuntu-com/kernel-amd64
For i386 systems
sudo add-apt-repository ppa:upubuntu-com/kernel-i386

And then
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install linux-headers-generic

Compile last drivers

git clone git://linuxtv.org/media_build.git
cd media_build
./build
sudo make install

If you try to compile and get this error :

File not found: /lib/modules/3.5.0-030500-generic/build/.config

Or
File not found: /lib/modules/KERNEL/build/.config

You can use this code to solve creating the correct symlink

GIT_LOCAL_DIR=$(uname -r)

cd /lib/modules/$GIT_LOCAL_DIR
rm build
rm source
ln -s /usr/src/linux-headers-$GIT_LOCAL_DIR build
ln -s /usr/src/linux-headers-$GIT_LOCAL_DIR source

Continue reading Install drivers for mygica s870 ubuntu 12.04 + install kernel 3.5