Click to See Complete Forum and Search --> : ATI fglrx drivers - HELP!


ibzrg470
09-23-2003, 01:24 AM
Ok so I downloaded the lastest fglrx drivers from ATI's site and have been putting off the install for a few weeks, so tonight I decide to screw with it. Bear with me as I am still learning linux.

I am running mandrake 9.1 with 2.4.21 kernel. I installed the rpm package and got this message:

*** Trying to install a precompiled kernel module.
*** WARNING ***
Tailored kernel module for fglrx not present in your system.
You must go to /lib/modules/fglrx/build_mod subdir
and execute './make.sh' to build a fully customed kernel module.
Afterwards go to /lib/modules/fglrx and run './make_install.sh'
in order to install the module into your kernel's module repository.
(see readme.txt for more details.)

As of now you can still run your XServer in 2D, but hardware acclerated
OpenGL will not work and 2D graphics will lack performance.

failed.
*** Error: no kernel module build environment - please consult readme.
Installed: qt3 (gcc 3.2) based control panel application
===
ATI display drivers successfully installed
please run 'fglrxconfig' now
===


so I went to the /lib/modules/fglrx/build_mod directory and ran the ./make.sh and got another message:


ATI module generator V 2.0
==========================
kernel includes at /usr/src/linux/include not found or incomplete
file: /usr/src/linux/include/linux/version.h
[root@AMD1200 build_mod]# cd ..


Now i did a search for "include" and copied the files from /usr/include to /usr/src/linux with the command "cp -R /usr/include /usr/src/linux/"

so i try to run the make.sh again and got another message:

ATI module generator V 2.0
==========================
Error:
kernel includes at /usr/src/linux/include do not match current kernel.
they are versioned as "2.4.21"
instead of "2.4.21-0.13mdk".
you might need to adjust your symlinks:
- /usr/include
- /usr/src/linux


I am completely lost, someone help... ...please :(

glxgears ran ok at 160.0 fps.

ibzrg470
09-23-2003, 02:36 AM
well for now i just backed out the RPM, Im not sure if this is a problem with my 9.1 Mandrake install or if its a problem with ATI's make.sh script. Im thinking the latter, maybe a combo of both. I guess I could have done a pretty nasty hack job on it by creating links, but Im not sure that would be a good idea. Anyone have any ideas about what may be wrong, please feel free to share them.

By the way, glxgears is now getting 1460.00 fps ;)

charison17
09-23-2003, 06:53 PM
I kind of had some of the same problems, mainly b/c I had several kernel versions present on my system.

inside /usr/src is a symbolic link called 'linux'. It usually points towards the directory containing the source of your linux kernel. It seems to me that your link is pointing to the wrong kernel source. make sure it points to /usr/src/linux-2.4.21-0.13mdk and if you don't even see that folder then you need to install the kernel sources (it's an rpm on the cd). If you get that link fixed and it still complains, chances are you don't have the kernel source installed.