Click to See Complete Forum and Search --> : ATI drivers and slackware not getting along.


szero
01-17-2003, 11:25 PM
So, heres the situation. I'm using the official ATI drivers as I use this. I'm on slackware 8.1. The problem is, hardware acceleartion will not compile no matter what I do. It worked fine on Redhat 8 when I used it, but slackware tells me I need a tailored kernel. But anyway, I tried the DRI drivers to no avail, and now I tried the GATOS drivers to no avail either. Heres what I did with the GATOs drivers, see if you guys can diagnose the problem.


I extracted the radeon drivers to /usr/X11R6/ and everything and then I uninstalled the official ATI drivers. I ran xf86config and did everything(Except picking a card, cuz it doesn't show up in the list). Then I added the lines
load "glx"
load "dri"
somewhere in there and when I try to "startx" or "gdm" it says device RADEON not found on ..something. I've got to be doing something wrong, help!!!

Also, heres the error message when the official ATI drivers try to build the kernel module for GL.

root@localhost:/lib/modules/fglrx/build_mod# sh ./make.sh
ATI module generator V 2.0
==========================
probing for VMA API version...
cleaning...
patching 'highmem.h'...
patching 'drmP.h'...
patching file drmP.h
Hunk #1 succeeded at 337 (offset 82 lines).
compiling 'agpgart_be.c'...
compiling 'agp3.c'...
compiling 'i7505-agp.c'...
compiling 'firegl_public.c'...
firegl_public.c:694: redefinition of `__cmpxchg'
patch/drivers/char/drm/drmP.h:276: `__cmpxchg' previously defined here
compiling failed - object file was not generated


Wtf. ?

It drove me to upgrade my GCC to 3.1, and that still didn't help. Somebody help!!! I know the drivers installed on my redhat box...so its possible to make them work.

mdwatts
01-18-2003, 07:46 AM
What 'Driver' are you using in the Device Section of your /etc/X11/XF86Config or -4? 'radeon' or 'ati'?

Do the devices exist in either

/usr/X11R6/lib/modules/dri/radeon_dri.so
/usr/X11R6/lib/modules/drivers/radeon_drv.o

or

/lib/modules/<kernel version>/kernel/drivers/char/drm/radeon.o

Could you post the contents of make.sh (as long as it isn't too big) so we can have a look.

Do you have the kernel source installed for your current running kernel as you usually need the kernel source when compiling hardware drivers/modules?

uname -r (tells the kernel version)

The kernel source should be in

/usr/src/linux-#.#.#

with a symlink pointing to

/usr/src/linux

szero
01-21-2003, 10:15 AM
Sorry about the delayed response. I've been on Windows for a few days. Anyway, all those radeon files you listed exist. I have kernel version 2.4.18 and gcc3.1(I could downgrade back to 2.2 if it was neccesary). Yeah the kernel source is all there(if that's what you were asking me...). What about the kernel directory..I don't understand what you wanted?

Anyway, thanks for replying, I hope you can help. ;)

P.S. The contents of make.sh are way too long.

mdwatts
01-21-2003, 05:51 PM
I'm really not sure what those error messages are. See if you can find something to help in these search results for 'cmpxchg previously defined here'.

http://www.google.com/linux?hl=en&lr=&ie=ISO-8859-1&q=cmpxchg+previously+defined+here&btnG=Google+Search

What do they mean by tailored kernel? The kernel that was used to build the current running kernel? Is that the kernel source you are using?

It should be the kernel source that was used to build the running kernel and not a clean kernel source.

szero
01-21-2003, 11:27 PM
I have no idea what they meant by tailored kernel. And kk...i'll search for that error tomorrow...now i go to sleep :)

mdwatts
01-22-2003, 07:35 AM
Either you need to recompile the kernel to enable additional hardware support or they mean as I posted above... The post compiled kernel source that was used to build the current running kernel.