LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Trying to install latest open source ATI drivers. Failing (specifically dri) (https://www.linuxquestions.org/questions/slackware-14/trying-to-install-latest-open-source-ati-drivers-failing-specifically-dri-652441/)

the3dfxdude 07-10-2008 09:42 PM

The order is probably important. Looking at what I did, I might have done more than necessary. I will get you steps so you can try on your own.

the3dfxdude 07-11-2008 12:19 AM

I went through redoing the packages.

I have these official slack packages now:
xorg-server-1.4.2-i486-1
xf86vidmodeproto-2.2.2-noarch-1
libXmu-1.0.4-i486-1
glproto-1.4.9-noarch-1

This one I have upgraded, but it you might get by with the official package:
libXxf86vm-1.0.2-i686-1

New packages, listed in order I installed them:
xf86-video-ati-20080708-i686-1
libXxf86vm-1.0.2-i686-1
dri2proto-1.1-norarch-1
libdrm-20080710-i686-2
mesa-20080710-i686-2
And the drm and radeon kernel modules

The first 4 simply take a
./configure --prefix=/usr && make
to build them and do a make install into a temp directory, then a makepkg to make the package.

The last two, mesa and the kernel modules I did this:

In the mesa build directory:
Code:

./configure --prefix=/usr --with-dri-drivers="r200,r300,swrast" --with-dri-driverdir=/usr/lib/xorg/modules/dri
gmake
mkdir -p /tmp/dest/usr/bin
make install DESTDIR=/tmp/dest
cp progs/xdemos/{glxcontexts,glxdemo,glxgears,glxgears_fbconfig,glxgears_pixmap,glxheads,glxinfo,glxpbdemo,glxpixmap,glthreads} /tmp/dest/usr/bin

And in the libdrm directory to build the modules:
Code:

cd linux-core
make DRM_MODULES="radeon"
cp *.ko /lib/modules/2.6.26-rc8/kernel/drivers/char/drm
depmod -a
rmmod radeon
rmmod drm
modprobe radeon

You need the kernel source tree configured to your kernel to build the modules.

GushpinBob 07-11-2008 01:17 AM

Thank you kindly for your time to show me how to install these packages. I will report back with the results during sometime this weekend.

GushpinBob 07-13-2008 02:17 PM

Well, I followed exactly what you said and I'm still unable to get dri working. I've tried the latest xf86-video-ati driver from git and I couldn't even get Xorg to start at all :( while getting the error message "(EE) No devices detected". I tried using an older git release from June 28, 2008, but even when Xorg started I still could not get DRI to work. I did another LIBGL_DEBUG=verbose glxinfo and this is what I got as an error:

Code:

libGL: XF86DRIGetClientDriverName: 6.9.0 r300 (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/r300_dri.so
libGL error: dlopen /usr/lib/dri/r300_dri.so failed (/usr/lib/dri/r300_dri.so: undefined symbol: _glapi_Dispatch)
libGL error: unable to load driver: r300_dri.so

Also, ever since I been compiling mesa on my own, I've been getting segfaults on ALL of the programs contained within the progs/xdemos directory that come with mesa.

GushpinBob 07-13-2008 06:27 PM

I think I have found a solution
 
I did a bit of a googling on the error messages glxinfo was spitting out and found this: http://lists.alioth.debian.org/piper...ly/000891.html

When typing LD_PRELOAD="/usr/lib/libGL.so" startx in the command line, I finally get DRI up and running :D. No AIGLX yet:scratch:, though I'll look into that later. Using the official 6.9.0 xf86-video-ati driver ATM but the latest git version seems to be having problems right now so I'll check it out in a couple of days.

the3dfxdude 07-13-2008 08:16 PM

I'm a bit concerned with your environment. I get this for LIBGL_VERBOSE=verbose glxinfo:

libGL: XF86DRIGetClientDriverName: 5.3.0 r300 (screen 0)

You didn't follow my instructions exactly as the modules you have are being found in /usr/lib/dri/r300_dri.so, and slackware doesn't default there. /usr/lib/modules/dri is correct for slackware and I install there.

And rereading you are using slackware 12.0 no? And I'm seeing you are using slackware current packages. It could part of your problem of seg faulting.

GushpinBob 07-13-2008 09:17 PM

You did read my next post, right? Typing 'LD_PRELOAD="/usr/lib/libGL.so" startx' enabled DRI (oops, forgot to mention that the segfaults went away with this command). Yes, I did follow your instructions as explicitly stated in the few posts above (especially the mesa configuration stage) and yes, the modules are installed in /usr/lib/modules/dri (/usr/lib/dri was an automatically created link to /usr/lib/modules/dri. I have no idea why the modules are being searched in the /usr/lib/dri directory though).

Yes, I am using Slackware 12.0, and yes, there are some packages that are from current e.g. xorg-server-1.4.2. To reiterate, the segfaulting goes away when using the LD_PRELOAD variable.

the3dfxdude 07-13-2008 09:34 PM

I understand that the PRELOAD fixes the linkage, but I'm concerned with mixing the old packages with the newer ones. And I don't have to do it on my system. You might want to upgrade, because this is very new stuff you are wanting to run.

As for AIGLX, you might have to rebuild your xserver using the mesa git and probably using the git xserver too. I haven't bothered because I don't use it.


All times are GMT -5. The time now is 12:42 AM.