One more try on the mach64

8 03 2008

Still tryin to get DRI and Composite on my mach64, I bumped on this site: I have somewhat adapted some of the steps to simplify and better organise things.

First thing is to get the latest xf86-video-ati driver from and untar it to ~/src. If you have no such directory, create it first.

Then, get the headers for your running kernel and the build-essential: apt-get install linux-headers-`uname -r` build-essential.

Create a ~/src/drm-git directory and run git clone git:// from inside it. This will get the latest drm drivers from upstream.

$ cd drm/linux-core

$ make DRM_MODULES=”mach64″

$ sudo cp *.ko /lib/modules/`uname -r`/kernel/drivers/char/drm/

$ sudo depmod -a

$ sudo modprobe mach64


$ cd ~/src/xf86-video-ati-6.8.0

$ ./configure –prefix=/usr

$ make

$ sudo make install

$ sudo /etc/init.d/gdm restart

(to be continued…)

$ glxinfo | grep direct
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)

$ LIBGL_DEBUG=verbose glxinfo
name of display: :0.0
libGL: XF86DRIGetClientDriverName: 6.7.0 mach64 (screen 0)
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/
libGL error: dlopen /usr/X11R6/lib/modules/dri/ failed (/usr/X11R6/lib/modules/dri/ cannot open shared object file: No such file or directory)
libGL error: unable to find driver:
display: :0 screen: 0
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)

The file is in the package libgl1-mesa-dri. If you don’t have it installed, aptitude install libgl1-mesa-dri. This might not be enough, though, as the dri libs are not in /usr/X11R6/lib/modules/dri, but rather in /usr/lib/dri. What I did to correct this issue was to check that /usr/X11R6/lib/modules/dri was empty, then:

$ sudo rmdir /usr/X11R6/lib/modules/dri
$ sudo ln -s /usr/lib/dri /usr/X11R6/lib/modules/dri

And finaly:

$ glxinfo | grep direct
DISPATCH ERROR! _glapi_add_dispatch failed to add glAreTexturesResident!
DISPATCH ERROR! _glapi_add_dispatch failed to add glGenTextures!
DISPATCH ERROR! _glapi_add_dispatch failed to add glIsTexture!
do_wait: drmWaitVBlank returned -1, IRQs don’t seem to be working correctly.
direct rendering: Yes

Yay! That’s it! Now, to get the transparent terminal…




6 responses

16 05 2008

Very intresting!

26 08 2008
Maria Rita

que isso aqui, hein? coisa mais de nerd!

29 11 2008

Good blog; just redirected here from vivek’s blog nixcraft. Nice posts.


23 06 2009

This was one of the toughest things to get working. I’m still trying to get it going on an old Dell laptop. This post was useful. Thanks.

24 06 2009
27 06 2009

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: