Aun no me canso de buscar...
-----------------------------------
Unichrome

THIS DOCUMENT MIGHT CONTAIN OLDER AND DEPRECATED INFORMATION

Original document by Jaxon Lee.  Created: 2/1/05
Last edit: 2/13/05

VIA Unichrome and DRI HOWTO

(This document was produced as a tool to support both the end-users and the developers of the opensource unichrome drivers.  Clear and up-to-date documentation will only make the drivers more accessible to a wider range of users, thus providing developers with more feedback from users with a wider range of hardware.  Like the drivers, this HOWTO should be considered under heavy development.  It will evolve as the drivers evolve.)

I. Assumptions

a. At this point, it is assumed that you are NOT a newcomer to linux.  Installing all of the elements that will enable DRI is a task that will involve compiling and possibly troubleshooting from the command line.  At some date in the near future, all of the elements should be incorporated into their respective parent projects (2.6 kernel, X.org, etc.).  Until then, the end-user needs to put the pieces together.

b. You have at least a 2.6 kernel, your kernel sources, your xorg source files, and all standard linux developer tools.  I understand that this project works with a 2.4 kernel, but I haven't used the 2.4 kernel in about nine months, so I can provide little guidance in that area.   Also, many linux distributions (especially those that install off of live CD's) do not include the kernel sources or any compilers.  These obviously need to be installed before you proceed.

c. You need to have the hardware.  The Unichrome project supports the VIA unichrome 3D graphics controller.  These controllers are found in the VIA CLE266, KM400/KN400, K8M8000 and PM800/CN400 motherboard chipsets.  Commercially, these products include the VIA Epia-M systems and several laptops lines such as the lovely and economical Averatec 3200 series. (Can you guess what I have???)

II. Kit of Parts

a. The DRM kernel modules - These are called via.ko and drm.ko, respectively.  They will appear simply as "via" and "drm" after loading and listing with lsmod.  (The other two modules needed for DRM to function  [via_agp & agpgart] should already be loaded and configured if you're using any of the most popular linux distributions.  If they are not, this will require a kernel recompile to enable them, and that goes beyond the scope of this document.)  Several DRM modules are made available by the linux kernel, but Via is not one of them, at least not yet (2.6.11-rc2 has finally put it in).  So, essentially we must build it and put it in the right place.  Via DRM is not part of the Unichrome project.  It currently has a home at freedesktop.org, where you can download CVS snapshots.  The one I have tested and know is working is dated 2/12/2005.  Download it here:  http://dri.freedesktop.org/snapshots/

b. The Unichrome Xorg display driver - This package is listed on the Unichrome Sourceforge page:  http://sourceforge.net/projects/unichrome, under unichrome-xfree86.  (Don't let that heading discourage you; it works just fine with xorg!)  Get the release-30 file dated 1/26/2005.  This package will ultimately give you an xorg driver called via_drv.o.  By itself, it is a fine alternative to the vesa driver you are currently using.  It enhances video playback, and your screen can now blank-out.  But there is no DRI magic.  Yet!

c. The unichrome-3D-drivers - Here's the magic.  Get this package also from the Unichrome Sourceforge page.  The most recent is dated 2/12/2005.  The package includes two tiny files that make everything happen.  LibGL.so.1.2 and unichrome_dri.so.



(II) VIA(0): [drm] added 8192 byte SAREA at 0xdebd3000
(II) VIA(0): [drm] mapped SAREA 0xdebd3000 to 0xb5c9c000
(II) VIA(0): [drm] framebuffer handle = 0xd8000000
(II) VIA(0): [drm] added 1 reserved context for kernel
(II) VIA(0): [dri] visual configs initialized.
(II) VIA(0): [drm] register handle = 0xde000000
(II) VIA(0): [drm] mmio Registers = 0xde000000
(II) VIA(0): [dri] mmio mapped.
(II) VIA(0): VIAInternalScreenInit
(II) VIA(0): Using XFree86 Acceleration Architecture (XAA)
    Screen to screen bit blits
    Solid filled rectangles
    8x8 mono pattern filled rectangles
    8x8 color pattern filled rectangles
    Solid Lines
    Dashed Lines
    Image Writes
    Offscreen Pixmaps
    Setting up tile and stipple cache:
        32 128x128 slots
        10 256x256 slots
        32 8x8 color pattern slots
(==) VIA(0): Backing store disabled
(II) VIA(0): [drm] drmAgpEnabled succeeded
(II) VIA(0): [drm] agpAddr = 0xe0000000
(II) VIA(0): [drm] agpBase = (nil)
(II) VIA(0): [drm] agpAddr = 0xe0000000
(II) VIA(0): [drm] agpSize = 0x01e00000
(II) VIA(0): [drm] agp physical addr = 0x00000000
(II) VIA(0): [dri] use agp.
(II) VIA(0): [drm] FBFreeStart= 0x00400000 FBFreeEnd= 0x01fbe000 FBSize= 0x01bbe000
(II) VIA(0): [dri] frame buffer initialized.
(II) VIA(0): X context handle = 0x00000001
(II) VIA(0): [drm] installed DRM signal handler
(II) VIA(0): [DRI] installation complete
(II) VIA(0): [dri] kernel data initialized.
(II) VIA(0): [drm] Initialized AGP ring-buffer, size 0x200000 at AGP offset 0x1e00000.
(II) VIA(0): direct rendering enabled

If not, again, you should at least see some valuable troubleshooting info.

g. If dri is not working, get thee to the mailing list archives.
Here: http://sourceforge.net/mailarchive/forum.php?foru
m_id=38837
And
Here:  http://sourceforge.net/mailarchive/forum.php?forum_id=38615

h. If you still are stumped, subscribe and post to the mailing list.  Be sure to have a copy of your glxinfo and xorg.0.log, as well as your system config, kernel version, and xorg version.

--------------------------------------

Este documento hace parte de la documentacion de OTRO driver para Linux. Este driver esta bajo los proyectos de sourceforge..

Ayuda... no entiendo mucho.
Necesito que me ayuden.... Bueno tambien es claro decir que existen los sources para los chips (ACABE DE ENCONTRARLOS!!) OFICIALES.. pero SOLO soportan 2D XvMC y v4l.. es un gran avance pero los otros dos drivers (unichrome y openchrome) tambien soportan las mismas funciones y en muchos foros recomiendan alguno de estos dos pero no el de la pagina oficial.

Asi que, cualquiera de los dos, AYUDENME para tener soporte 3D..

PDT:
El openchrome es el que tengo ya instalado en mi maquina con SUSE Linux 10.1, y el unichrome aun no entiendo muy bien como instalarlo..

Gracias