[mythtv-users] .16 and via

Curtis Stanford curtis at stanfordcomputing.com
Fri Sep 17 20:07:46 EDT 2004

> Hey Curtis,
> I have a VIA CLE266, and was trying to upgrade my video components to use
> the Unichrome drivers/patches.  I got stuck trying to use the XvMC plugin
> for xine.  It tells me that I have kernel DRM 1.3.0 and at least 1.5.0 is
> required.  I tried getting the latest kernel-DRI from CVS-sourceforge, but
> it does not compile against my 2.6.8-1.251 epia patched kernel.
> Could you please offer some advice or links that helped you get all this
> Unichrome stuff working?  It would be greatly appreciated, as I only have a
> bit of hair left.
> --Dave

OK, I'll see what I can do. Keep in mind I'm using Gentoo. There are a few 
steps you need to do:

1. I'm using the kernel ebuild torsti-dev-sources- from 
Make sure you include the via drm driver as a module. I'm also using the 
option to build the kernel to an alternate directory (in my 
case /var/tmp/kernel) so that the lirc modules will build later.

2. Then I checked out the latest via drm driver from CVS: "cvs 
-d :pserver:anonymous at dri.freedesktop.org:/cvs/dri co drm". Then go the 
drm/linux directory and type 'make LINUXDIR=/usr/src/<your linux src 
directory> DRM_MODULES=via' When make finishes, copy via.ko 
to /lib/modules/<your kernel>/kernel/drivers/char/drm. Make sure you rmmod 
the old module and modprobe the new one (i.e. rmmod via; modprobe via)

3. Get the latest Xorg 6.8.0 sources and build according to the instructions 
(i.e. make World) and then install using make install.

4. Follow the Unichrome howto to get the via_drv and XvMC stuff working. I 
went to the Xorg subdirectory xc/programs/Xserver/hw/xfree86/drivers and ran 
'cvs -d :pserver:anonymous at cvs.sourceforge.net:/cvsroot/unichrome co 
xfree86'. Go one directory up and 'mv via via.orig; ln -s xfree86 via'. Type 
'make Makefiles'. Go back to the xfree86 directory, type 'make; make 
install'. Now you should have the unichrome X via driver.

5. For the XvMC driver, go to your Xorg subdirectory xc/programs/lib/XvMC/hw 
and run 'cvs -d :pserver:anonymous at cvs.sourceforge.net:/cvsroot/unichrome co 
libxvmc'. Then do 'ln -s libxvmc via'. vi the file ../Imakefile and change 
the line that reads 'SUBDIRS = hw/i810' to read 'SUBDIRS = hw/i810 hw/via'. 
Then 'cd ..' and type 'make Makefiles'. Then go back to hw/via and type 
'make; make install'. You also need to 'cp 
vldXvMC.h /usr/include/X11/extensions'. Now your XvMC driver should be there.

6. Check out the latest mythtv and uncomment the two sections on XVMC in 
settings.pro. Compile and install mythtv. Hopefully at this point, things 
should be working.

Whew! Good luck!


More information about the mythtv-users mailing list