SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You'll need to re-build ATI's fglrx kernel module. It's built against whatever kernel you're running, so a change of kernel means a change of fglrx module.
Fear not, there are only 3 commands to run:
root@box:# cd /lib/modules/fglrx/build_mod
root@box:/lib/modules/fglrx/build_mod# sh make.sh
root@box:/lib/modules/fglrx/build_mod# sh ../make_install.sh
Hi odevans,
Sorry to talk again on this post, but i´m still having problems on my ATI Radeon video card & Slackware...
After many reinstalls e reconfigurings, I´m trying to let my videocard run nice...
My last tries arent so good, because it is giving some error messages
Last one was when I tried to make all things manually (using your example above)
#sh make.sh seems to run fine
#sh make_install.sh gives following error:
Quote:
- creating symlink
- recreating module dependency list
- trying a sample load of the kernel modules
FATAL: Error inserting fglrx (/lib/modules/2.6.14.3/kernel/drivers/char/drm/fglrx.ko): Operation not permitted
failed.
Have you disabled the Direct Rendering Manager in the kernel? (It's under Character Devices, IIRC). fglrx will *not* load if DRM is loaded or built into the kernel, and it must be disabled, otherwise you will get "Operation not permitted" errors.
Have you disabled the Direct Rendering Manager in the kernel? (It's under Character Devices, IIRC). fglrx will *not* load if DRM is loaded or built into the kernel, and it must be disabled, otherwise you will get "Operation not permitted" errors.
I remember having the fglrx working with the DRM, and I switched to the r300 driver and it is still working , but it might be worth a shot...
DRM is not loaded... and Radeon (fglrx) not installing anyway
Quote:
Originally Posted by cathectic
Have you disabled the Direct Rendering Manager in the kernel? (It's under Character Devices, IIRC). fglrx will *not* load if DRM is loaded or built into the kernel, and it must be disabled, otherwise you will get "Operation not permitted" errors.
Yes, I´m running as "root".
Yes, the DRM modules are not loading, like this:
Quote:
< > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
I don´t understand what I am doing wrong...
Well, honestly speaking, I don´t understand almost all that thing, because ATI documentation is very poor !
Looked by any info in hundred of forums and all I had is more questions...
The worst part is: I have made it before, and it worked !!!
Maybe there is a little little detail that I couldn´t find.
Now I´m trying to do this manually:
Quote:
installpkg fglrx_6_8_0-8.20.8-1.i386.tgz
OK: no errors, and files seems to be copied correctly to their right places...
Quote:
cd /lib/modules/fglrx/build_mod/
sh make.sh
Ops, there was an warning message:
Quote:
*** Warning: "verify_area" [/lib/modules/fglrx/build_mod/firegl_agpgart/fglrx_agp.ko] undefined!
make[1]: Leaving directory `/usr/src/linux-2.6.14.3'
AGPGART build succeeded with return value 0
finished compiling for fglrx_agp
duplicating results into driver repository...
done.
Next thing to do:
Quote:
cd ..
sh make_install.sh
And... errors:
Quote:
- creating symlink
- recreating module dependency list
- trying a sample load of the kernel modules
WARNING: Error inserting agpgart (/lib/modules/2.6.14.3/kernel/drivers/char/agp/agpgart.ko): Invalid module format
FATAL: Error inserting fglrx (/lib/modules/2.6.14.3/kernel/drivers/char/drm/fglrx.ko): Invalid module format
failed.
** SOMEBODY, PLEASE HELP ME UNDERSTAND **
(because I HATE not knowing what I´m doing, just following step by step instructions...)
When I configure kernel 2.6.14.3 before compiling it ("make menuconfig"), seems to me that there is already has modules in this Kernel to my hardware.
Quote:
-- Character devices -
<M> /dev/agpgart (AGP Support)
< > ALI chipset support
< > ATI chipset support
< > AMD Irongate, 761, and 762 chipset support
< > AMD Opteron/Athlon64 on-CPU GART support
< > Intel 440LX/BX/GX, I8xx and E7x05 chipset support
<M> NVIDIA nForce/nForce2 chipset support
All right. I do have some dumb questions:
a) Why do I have to use modules from ATI ?
b) Or, why do I have to use ATI drivers instead of /dev/agpgart ?
(if they are not the same thing...)
c) Will I have to do the same thing (module + kernel compilation) with NFORCE drivers too ? I´ve downloaded file "NFORCE-Linux-x86-1.0-0310-pkg1.run". I know, they´re for Net+Sound Cards. But some of my interfaces have no module for it.
d) Anybody knows any decent documentation about all that things ?
I often find that when you upgrade your GCC to a newer major version without recompiling your kernel you get errors when you recompile your drivers. Did you upgrade gcc? Because that could be the issue then.
I've also found that ATI's drivers have gotten much better recently, but that using newer kernels tends to give problems until ATI releases new drivers. Like right now kernel 2.6.15 is less stable than 2.6.14 for me, and the latest ATI drivers were released after 2.6.14 but before 2.6.15.
Because you want 3D I'm guessing. You can also use the experimental r300 driver which is in xorg 6.9 and later. For my needs I find it works more then well enough (plus it's open source, no kernel tainting).
Quote:
Originally Posted by mcapelati
b) Or, why do I have to use ATI drivers instead of /dev/agpgart ?
(if they are not the same thing...)
That's optional, you can choose to use the fglrx internal agp drivers or the external ones, you actually specify that in the devices section of your xorg.conf, either way though you have to have /dev/agpgart and your agp modules (i think). Some people report more fps with the internal, others with the external, for some it doesnt work with one or the other. Depends more on the user.
Quote:
Originally Posted by mcapelati
c) Will I have to do the same thing (module + kernel compilation) with NFORCE drivers too ? I´ve downloaded file "NFORCE-Linux-x86-1.0-0310-pkg1.run". I know, they´re for Net+Sound Cards. But some of my interfaces have no module for it.
I tried the nForce drivers waaay back in the day when I was just starting out, and they ended up giving me alot more problems then just using the standard ones, which would be snd_intel8x0 for sound (on nforce2) and the other one for ethernet (forgot about it's name, I have it compiled in).
Quote:
Originally Posted by mcapelati
d) Anybody knows any decent documentation about all that things ?
The best fglrx instructions are from their site, while the r300 since it's pretty recent, has a serious lack of documentation. I wrote up a howto for debian SID, but you can most likely follow more or less the same procedure. Other then that you can read the radeon(4) manpage, the release notes for x.org 6.9 and others for the r300. You can also find about the fglrx pretty much everywhere, since it's been out for a while and had no alternative.
After passing a few hours trying to make things run, I think I´ve found the problem. It seems to be anything about preemption model:
Quote:
-- Processor type and features -
-- Preemption Model --
( ) No Forced Preemption (Server)
( ) Voluntary Kernel Preemption (Desktop)
(X) Preemptible Kernel (Low-Latency Desktop)
[*] Preempt The Big Kernel Lock
If I set the first or second, boot gives error messages, and does not load any module (even agpgart).
This is weird, because reading the Help of each option, shouldn´t have any problem. But, there is.
So, I let options set like above, recompile kernel, and modules turned back to be loaded.
BUT, when making modules for ATI drivers and trying to load them, it´s still showing errors:
Quote:
# cd /lib/modules/fglrx/build_mod/
# sh make.sh
# cd ..
# sh make_install.sh
Messages:
- creating symlink
- recreating module dependency list
- trying a sample load of the kernel modules
FATAL: Error inserting fglrx (/lib/modules/2.6.14.3/kernel/drivers/char/drm/fglrx.ko): Operation not permitted
failed.
Besides that, the modules fglrx.ko and fglrx_agp.ko are being created.
But they can´t be loaded, because of that error message above !
Quote:
# modprobe fglrx
Same Message:
FATAL: Error inserting fglrx (/lib/modules/2.6.14.3/kernel/drivers/char/drm/fglrx.ko): Operation not permitted
Ok, I just installed Fedora Core 4 yesterday and I use the Kernel version 2.6.11-1.1369_FC4. (My first time in Linux)
Today I tried installing the latest ATi drivers that I could found at www-ati-com (8.20.8-i386).
Now, my fglrx shows this for my OpenGL drivers:
OpenGL vendor string: Mesa project: www-mesa3d-org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.2.1)
But when I try to run Quake 3 Arena, I get this message:
You are using software Mesa (no hardware acceleration)!
So I started looking on this forum to find a solution to my OpenGL drivers and found this thread. From what I understand, I have to recompile my flgrx so I tried to execute this 3 commands:
root@box:# cd /lib/modules/fglrx/build_mod
root@box:/lib/modules/fglrx/build_mod# sh make.sh
root@box:/lib/modules/fglrx/build_mod# sh ../make_install.sh
When i type sh make.sh i got an error:
[root@localhost build_mod]# sh make.sh
make.sh: line 40: gcc: command not found
make.sh: line 46: [: !=: unary operator expected
ATI module generator V 2.0
==========================
initializing...
kernel includes at /usr/src/linux/include not found or incomplete
file: /usr/src/linux/include/linux/version.h
When i type sh make.sh i got an error:
[root@localhost build_mod]# sh make.sh
make.sh: line 40: gcc: command not found
make.sh: line 46: [: !=: unary operator expected
Can't be much easier then this, install gcc. Don't know how to do it in fedora core, but it shouldn't be too hard.
Good, installing gcc the first part, but I'm still getting an error when I enter sh make.sh:
[root@localhost build_mod]# sh make.sh
ATI module generator V 2.0
==========================
initializing...
kernel includes at /usr/src/linux/include not found or incomplete
file: /usr/src/linux/include/linux/version.h
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.