Phoronix Forums  

Go Back   Phoronix Forums > Linux Graphics / X.Org Drivers > AMD/ATI Linux

AMD/ATI Linux Technical support and discussion of the ATI/AMD proprietary Linux driver.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-29-2008, 08:04 PM
Laughing1 Laughing1 is offline
Junior Member
 
Join Date: Nov 2007
Posts: 24
Default Can't create //usr/X11R6/lib/modules/dri/fglrx_dri.so: File exists

Detected configuration:
Architecture: x86_64 (64-bit)
X Server: X.Org 7.1 and later releases 64-bit
loki_setup: directory: (null)
loki_setup: Can't create //usr/X11R6/lib/modules/dri/fglrx_dri.so: File exists
loki_setup: Can't create //usr/X11R6/lib64/modules/dri/fglrx_dri.so: File exists

Wonderful, it can't create a file even as super user.

I have removed both files several times but I always seem to get those two errors.

It is trying to load the old fglrx_dri.so but when it does, all I see is black and flashes when my system tries to load X. I had to switch back to vesa for the time being.

Last edited by Laughing1; 04-29-2008 at 09:49 PM.
Reply With Quote
  #2  
Old 04-30-2008, 07:15 PM
Laughing1 Laughing1 is offline
Junior Member
 
Join Date: Nov 2007
Posts: 24
Default

I found out what the issue was:

First I ran:

# lsmod | grep fglrx

to see if there was the old version of fglrx running (it printed output), so I used the command:

# rmmod fglrx

in order to remove the old fglrx module then I ran the AMD script, rebooted, and it finally worked properly.
Reply With Quote
  #3  
Old 06-16-2009, 10:47 AM
baskin baskin is offline
Junior Member
 
Join Date: Dec 2008
Location: Syros, Greece
Posts: 16
Default

I have the same problem, but i don't have any module loaded.

lsmod | grep fglrx

is clean.

I have check the destination and there are not any fglrx_dri.so files in any place.

The result is that i'm getting a black screen and the system freezes.

Any hints?

Last edited by baskin; 06-16-2009 at 11:55 AM.
Reply With Quote
  #4  
Old 06-17-2009, 04:01 AM
Laughing1 Laughing1 is offline
Junior Member
 
Join Date: Nov 2007
Posts: 24
Default

Try this if you installed it from the .sh fglrx package as root:
Code:
# sh /usr/share/fglrx/fgrlx-uninstall.sh
Or remove the RPM if you installed it via RPM.
Reply With Quote
  #5  
Old 06-17-2009, 05:34 AM
baskin baskin is offline
Junior Member
 
Join Date: Dec 2008
Location: Syros, Greece
Posts: 16
Default

I have tried that, the unistalation completes successfully, there are not any files, but i'm continuing to get the error message.
Reply With Quote
  #6  
Old 06-17-2009, 11:30 PM
forum1793 forum1793 is offline
Senior Member
 
Join Date: Jul 2008
Posts: 180
Default

I get this too but when you look at the log file at /usr/share/ati you see other errors. I get this with kernels newer than 2.6.28, so I'm using 2.6.27.15 and have no problems. But you have to compile kernel with msi settings under bus options. I can't remember but think I enable the pci slot option too.
Reply With Quote
  #7  
Old 06-18-2009, 08:19 AM
baskin baskin is offline
Junior Member
 
Join Date: Dec 2008
Location: Syros, Greece
Posts: 16
Default

Quote:
Originally Posted by forum1793 View Post
I get this too but when you look at the log file at /usr/share/ati you see other errors. I get this with kernels newer than 2.6.28, so I'm using 2.6.27.15 and have no problems. But you have to compile kernel with msi settings under bus options. I can't remember but think I enable the pci slot option too.
I'm using kernel 2.6.27.23 and on another similar system with the same kernel, I have no problem.
Reply With Quote
  #8  
Old 06-19-2009, 10:18 AM
baskin baskin is offline
Junior Member
 
Join Date: Dec 2008
Location: Syros, Greece
Posts: 16
Default

I have searched this issue a little further.

After the failed installation i have in /usr/share/ati/fglrx-install.log:

Quote:
[Message] Kernel Module : Trying to install a precompiled kernel module.
[Message] Kernel Module : Precompiled kernel module version mismatched.
[Message] Kernel Module : Found kernel module build environment, generating kernel module now.
AMD kernel module generator version 2.1
doing Makefile based build for kernel 2.6.x and higher
rm -rf *.c *.h *.o *.ko *.GCC* .??* *.symvers
make -C /lib/modules/2.6.27.23-0.1-default/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.27.23-0.1-obj/x86_64/default'
make -C ../../../linux-2.6.27.23-0.1 O=/usr/src/linux-2.6.27.23-0.1-obj/x86_64/default/. modules
CC [M] /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_io.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_pci.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_str.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_wait.o
LD [M] /lib/modules/fglrx/build_mod/2.6.x/fglrx.o
Building modules, stage 2.
MODPOST 1 modules
CC /lib/modules/fglrx/build_mod/2.6.x/fglrx.mod.o
LD [M] /lib/modules/fglrx/build_mod/2.6.x/fglrx.ko
make[1]: Leaving directory `/usr/src/linux-2.6.27.23-0.1-obj/x86_64/default'
build succeeded with return value 0
duplicating results into driver repository...
done.
You must change your working directory to /lib/modules/fglrx
and then call ./make_install.sh in order to install the built module.
- recreating module dependency list
- trying a sample load of the kernel modules
failed.
[Error] Kernel Module : Failed to install compiled kernel module - please consult readme.
If i change to /lib/modules/fglrx and execute ./make_install.sh i get:

Quote:
FATAL:Error inserting fglrx(/lib/modules/2.6.27.23-0.1.default/kernel/drivers/char/drm/fglrx.ko): Operation not permitted
All executed as root.
Reply With Quote
  #9  
Old 06-19-2009, 11:10 AM
Kano Kano is offline
Debian Developer
 
Join Date: Aug 2007
Posts: 2,893
Default

Are you sure that the oss modules (drm radeon) are not loaded? Also check dmesg for errors.
Reply With Quote
  #10  
Old 06-19-2009, 12:18 PM
baskin baskin is offline
Junior Member
 
Join Date: Dec 2008
Location: Syros, Greece
Posts: 16
Default

I always try after clean boot on init 3.

Just to be sure i checked with lsmod and no drm or radeon modules are loaded.

dmesg | grep fglrx shows this:

Quote:
fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
[fglrx] Maximum main memory to use for locked dma buffers: 3795 MBytes.
[fglrx] vendor: 1002 device: 9490 count: 1
[fglrx] ioport: bar 4, base 0xe000, size: 0x100
[fglrx] Kernel PAT support is enabled
[fglrx:firegl_init_module] *ERROR* firegl_stub_register failed
[fglrx] Maximum main memory to use for locked dma buffers: 3795 MBytes.
[fglrx] vendor: 1002 device: 9490 count: 1
[fglrx] ioport: bar 4, base 0xe000, size: 0x100
[fglrx] Kernel PAT support is enabled
[fglrx:firegl_init_module] *ERROR* firegl_stub_register failed
[fglrx] Maximum main memory to use for locked dma buffers: 3795 MBytes.
[fglrx] vendor: 1002 device: 9490 count: 1
[fglrx] ioport: bar 4, base 0xe000, size: 0x100
[fglrx] Kernel PAT support is enabled
[fglrx:firegl_init_module] *ERROR* firegl_stub_register failed
[fglrx] Maximum main memory to use for locked dma buffers: 3795 MBytes.
[fglrx] vendor: 1002 device: 9490 count: 1
[fglrx] ioport: bar 4, base 0xe000, size: 0x100
[fglrx] Kernel PAT support is enabled
[fglrx:firegl_init_module] *ERROR* firegl_stub_register failed
[fglrx] Maximum main memory to use for locked dma buffers: 3795 MBytes.
[fglrx] vendor: 1002 device: 9490 count: 1
[fglrx] ioport: bar 4, base 0xe000, size: 0x100
[fglrx] Kernel PAT support is enabled
[fglrx:firegl_init_module] *ERROR* firegl_stub_register failed
[fglrx] Maximum main memory to use for locked dma buffers: 3795 MBytes.
[fglrx] vendor: 1002 device: 9490 count: 1
[fglrx] ioport: bar 4, base 0xe000, size: 0x100
[fglrx] Kernel PAT support is enabled
[fglrx:firegl_init_module] *ERROR* firegl_stub_register failed
[fglrx] Maximum main memory to use for locked dma buffers: 3795 MBytes.
[fglrx] vendor: 1002 device: 9490 count: 1
[fglrx] ioport: bar 4, base 0xe000, size: 0x100
[fglrx] Kernel PAT support is enabled
[fglrx:firegl_init_module] *ERROR* firegl_stub_register failed
[fglrx] Maximum main memory to use for locked dma buffers: 3795 MBytes.
[fglrx] vendor: 1002 device: 9490 count: 1
[fglrx] ioport: bar 4, base 0xe000, size: 0x100
[fglrx] Kernel PAT support is enabled
[fglrx:firegl_init_module] *ERROR* firegl_stub_register failed
[fglrx] Maximum main memory to use for locked dma buffers: 3795 MBytes.
[fglrx] vendor: 1002 device: 9490 count: 1
[fglrx] ioport: bar 4, base 0xe000, size: 0x100
[fglrx] Kernel PAT support is enabled
[fglrx] module loaded - fglrx 8.62.4 [May 20 2009] with 1 minors
[fglrx] module unloaded - fglrx 8.62.4 [May 20 2009]
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:02 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2009 by Phoronix Media.