Overview
========

Installation procedure described here just reflects what I did. Probably
there are better ways to obtain the same results.


Reference System
================

Reference system is standard debian 5.0 (lenny). Thus patches are 
applied against:

- linux-image-2.6.26 (Version 2.6.26-2-686)
- xserver-xorg-video-radeon (Version 1:6.9.0-1+lenny4)
- xserver-xorg-video-intel (Version 2:2.3.2-2+lenny6)

external sources 

- xine-lib (HG as of 2009-03-06)
- xineliboutput (sourceforge stable 1.0.4)


Howto apply the Patches
=======================

Patch fb-drm-radeon-intel.patch
-------------------------------

Description: kernel driver portion of Radeon FRC patch. Additionally 
includes fixes to play linux console on a regular SCART-TV for Intel
and Radeon chipsets

apt-get build-dep linux-image-2.6.26-2-686
apt-get source linux-image-2.6.26-2-686
cd linux-2.6-2.6.26
dpkg-buildpackage -j2
cd debian/build/build_i386_none_686
patch -p0 < fb-drm-radeon-intel.patch
CONCURRENCY_LEVEL=2 make-kpkg kernel_image --initrd
dpkg -i ../linux-image-2.6.26-2-686_2.6.26-2-686-10.00.Custom_i386.deb
cp drivers/char/drm/radeon_drm.h /usr/include/drm/radeon_drm.h

Patch xine-lib.patch
--------------------

Description: FRC fixes for xine-lib

hg clone http://hg.debian.org/hg/xine-lib/xine-lib
cd xine-lib
patch -p1 < xine-lib.patch
./autogen.sh
make -j2
make -j2 install

Patch xineliboutput-tuning-step.patch
-------------------------------------

Description: FRC fixes for xineliboutput. These have been adopted in 
xineliboutput CVS version.

cd vdr/PLUGINS/src
wget http://switch.dl.sourceforge.net/sourceforge/xineliboutput/vdr-xineliboutput-1.0.4.tgz
ln -nfsv xineliboutput-1.0.4 xineliboutput
cd xineliboutput
patch < xineliboutput-tuning-step.patch
cd ../../..
make plugins
make install-plugins
cd PLUGINS/src/xineliboutput
make install

Patch xv-intel.patch
--------------------

Description: FRC patch for Intel Xserver

apt-get build-dep xserver-xorg-video-intel
apt-get source xserver-xorg-video-intel
cd xserver-xorg-video-intel-2.3.2
dpkg-buildpackage -j2
dpkg -i ../xserver-xorg-video-intel_2.3.2-2+lenny6_i386.deb
echo xserver-xorg-video-intel hold | dpkg --set-selections
patch -p1 < xv-intel.patch
cd obj-i486-linux-gnu
make -j2
cp ./src/.libs/intel_drv.so /usr/lib/xorg/modules/drivers

Patch xv-radeon.patch
---------------------

Description: FRC patch for Radeon Xserver

apt-get build-dep xserver-xorg-video-ati
apt-get source xserver-xorg-video-ati
cd xserver-xorg-video-ati-6.9.0
dpkg-buildpackage -j2
dpkg -i ../xserver-xorg-video-radeon_6.9.0-1+lenny4_i386.deb
echo xserver-xorg-video-radeon hold | dpkg --set-selections
patch -p1 < xv-radeon.patch
cd obj-i486-linux-gnu
make -j2
cp ./src/.libs/radeon_drv.so /usr/lib/xorg/modules/drivers

