Overview
~~~~~~~~

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

Reference System
~~~~~~~~~~~~~~~~

My reference system is debian lenny. Patches are applied against

- linux-image-2.6.24-1
- xserver-xorg-video-ati 1:6.9.0-1

How to patch the kernel
~~~~~~~~~~~~~~~~~~~~~~~

- from top of kernel tree type

patch -p0 < vga-sync-fields/patches/drm-radeon.patch

- then rebuild drm and radeon module

make drivers/char/drm/drm.ko drivers/char/drm/radeon.ko

- and copy drivers to /lib/modules directory

cp drivers/char/drm/drm.ko drivers/char/drm/radeon.ko /lib/modules/2.6.24-1-686/kernel/drivers/char/drm

- don't forget to copy the patched header file before building the tools

cp drivers/char/drm/radeon_drm.h /usr/include/drm/radeon_drm.h

- then reload the new modules

rmmod radeon
rmmod drm
modprobe radeon

How to patch the Xserver
~~~~~~~~~~~~~~~~~~~~~~~~

Before building the Xserver patched 'radeon_drm.h' must be copied (see above).

- get the newest ATI Xserver source, patch and build

apt-get -t experimental source xserver-xorg-video-ati
cd xserver-xorg-video-ati-6.9.0
patch -p1 < vga-sync-fields/patches/video-ati.patch
dpkg-buildpackage
dpkg -i xserver-xorg-video-radeon_6.9.0-1+lenny1_i386.deb

- alternatively if the Xserver has already been installed it's
  sufficient to copy Radeon DDX to it's destination

cp xserver-xorg-video-ati-6.9.0/obj-i486-linux-gnu/src/.libs/radeon_drv.so /usr/lib/xorg/modules/drivers/radeon_drv.so

How to build the tools
~~~~~~~~~~~~~~~~~~~~~~

Before building the tools patched 'radeon_drm.h' must be copied (see above).

The tools being found in tools directory are easily compiled as denoted
at the top of each single program. There is no Makefile yet.

