One more try on the mach64

8 03 2008

Still tryin to get DRI and Composite on my mach64, I bumped on this site: http://ubuntuforums.org/showpost.php?p=3264969&postcount=6. 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 http://xorg.freedesktop.org/archive/individual/driver/ 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://anongit.freedesktop.org/git/mesa/drm 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/mach64_dri.so
libGL error: dlopen /usr/X11R6/lib/modules/dri/mach64_dri.so failed (/usr/X11R6/lib/modules/dri/mach64_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to find driver: mach64_dri.so
display: :0 screen: 0
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
(…)

The file mach64_dri.so 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.
Try running with LIBGL_THROTTLE_REFRESH and LIBL_SYNC_REFRESH unset.
direct rendering: Yes

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

About these ads

Actions

Information

6 responses

16 05 2008
Cris

Very intresting!

26 08 2008
Maria Rita

que isso aqui, hein? coisa mais de nerd! :P

29 11 2008
jadu

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

//Jadu

23 06 2009
ModelR

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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s




Follow

Get every new post delivered to your Inbox.

%d bloggers like this: