The 30 second unichrome install guide
To use the openchrome driver from svn, you need to build the via driver module for X, the drm library, and the drm.ko and via.ko modules for the kernel.
Modular driver build for Xorg 7.0 or later
Debian and Ubuntu users
Compiling the source code on Debian
mkdir openchrome
cd openchrome
svn co http://svn.openchrome.org/svn/trunk
cd trunk
./autogen.sh
make
make install
This will install via_drv.so to /usr/local/lib/xorg/modules/drivers/. In order to use it, you need to copy it to /usr/lib/xorg/modules/drivers/,
after first backing up the existing via_drv.so, so you can restore it when the new one doesn't work.
DRM (Direct Rendering Manager) stuff
git clone
git://anongit.freedesktop.org/git/mesa/drm
Install libdrm
cd drm
./autogen.sh
make
make install
Install kernel modules
cd linux-core
make LINUXDIR=/lib/modules/`uname -r`/build DRM_MODULES=via
cp *.ko /lib/modules/`uname -r`/kernel/drivers/char/drm/
depmod -ae
That should be it. Reboot and see how it goes.
Below follow the instructions for older versions of Xorg, and links to distro-specific guidelines.
Driver build for Xorg 6.9.x or earlier
Either build outside the xorg tree (simplest option) or patch the xorg source tree (for example for distro maintainers) to include the driver.
Building outside of the Xorg tree:
Build the driver
svn co http://svn.openchrome.org/svn/trunk/unichrome
cd unichrome
xmkmf /path/to/xorg/sources/xc
make
make install
Build libxvmc
svn co http://svn.openchrome.org/svn/trunk/libxvmc
cd libxvmc
xmkmf /path/to/xorg/sources/xc
make
make install
Building inside of the monolithic Xorg tree:
cd <src>/xc/programs/Xserver/hw/xfree86/drivers
rm -rf via
svn co http://svn.openchrome.org/svn/trunk/unichrome
ln -s unichrome via
cd <src>/xc/lib/XvMC
patch -p0 Imakefile < xorg-intree-patch1.diff
cd hw
rm -rf via
svn co http://svn.openchrome.org/svn/trunk/libxvmc
ln -s libxvmc via
cd via
patch -p0 Imakefile < xorg-intree-patch2.diff
Then build the Xorg tree as usual.
Links to the two patches:
patch1
patch2
Distro-specific
For more detailed step-by-step instructions for different distros, follow these links:
Building openchrome on Ubuntu
Compiling the source code on Debian
Compiling the source code on Gentoo