LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 07-10-2008, 09:42 PM   #16
the3dfxdude
Member
 
Registered: May 2007
Posts: 304

Rep: Reputation: 66

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.
 
Old 07-11-2008, 12:19 AM   #17
the3dfxdude
Member
 
Registered: May 2007
Posts: 304

Rep: Reputation: 66
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.
 
Old 07-11-2008, 01:17 AM   #18
GushpinBob
Member
 
Registered: Aug 2007
Distribution: File Server: Ubuntu 10.04
Posts: 56

Original Poster
Rep: Reputation: 15
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.
 
Old 07-13-2008, 02:17 PM   #19
GushpinBob
Member
 
Registered: Aug 2007
Distribution: File Server: Ubuntu 10.04
Posts: 56

Original Poster
Rep: Reputation: 15
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.
 
Old 07-13-2008, 06:27 PM   #20
GushpinBob
Member
 
Registered: Aug 2007
Distribution: File Server: Ubuntu 10.04
Posts: 56

Original Poster
Rep: Reputation: 15
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 . No AIGLX yet, 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.
 
Old 07-13-2008, 08:16 PM   #21
the3dfxdude
Member
 
Registered: May 2007
Posts: 304

Rep: Reputation: 66
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.
 
Old 07-13-2008, 09:17 PM   #22
GushpinBob
Member
 
Registered: Aug 2007
Distribution: File Server: Ubuntu 10.04
Posts: 56

Original Poster
Rep: Reputation: 15
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.
 
Old 07-13-2008, 09:34 PM   #23
the3dfxdude
Member
 
Registered: May 2007
Posts: 304

Rep: Reputation: 66
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: ATI Open vs. Closed-Source Drivers LXer Syndicated Linux News 0 11-04-2007 09:40 AM
LXer: ATI to open source their graphics drivers LXer Syndicated Linux News 0 09-07-2007 07:12 PM
LXer: ATI Has Open-Source Drivers Too LXer Syndicated Linux News 0 05-05-2007 07:46 PM
open source drivers for ati cards sharkus Linux - Hardware 3 03-16-2007 01:52 AM
TV-out on ATI 9600 with open source drivers? NobeyamaGP Linux - Hardware 2 01-02-2007 08:50 PM


All times are GMT -5. The time now is 01:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration