Can't create //usr/X11R6/lib/modules/dri/fglrx_dri.so: File

I’m struggling several months to install the ATI Catalyst drivers (from version 9.1 and above) without success.

I’m always getting the message:

Can’t create //usr/X11R6/lib/modules/dri/fglrx_dri.so: File exists

from the ATI installer.

I have searched all my filesystem, i have uninstalled the catalyst drivers with the provided utility and i cannot find any fglrx_dri.so file, but the installer keeps saying that a file exists.

On another opensuse system i don’t have any problem and the drivers are installed successfully.

Searching all the filesystem reveals nothing.

What else should i check?

elksi adjusted his/her AFDB on Wednesday 17 Jun 2009 11:16 to write:

>
> I’m struggling several months to install the ATI Catalyst drivers (from
> version 9.1 and above) without success.
>
> I’m always getting the message:
>
>> Can’t create //usr/X11R6/lib/modules/dri/fglrx_dri.so: File exists
>
> from the ATI installer.
>
> I have searched all my filesystem, i have uninstalled the catalyst
> drivers with the provided utility and i cannot find any fglrx_dri.so
> file, but the installer keeps saying that a file exists.
>
> On another opensuse system i don’t have any problem and the drivers are
> installed successfully.
>
> Searching all the filesystem reveals nothing.
>
> What else should i check?
>
>

The /usr/X11R6/lib/modules/dri/fglrx_dri.so should just be a symlink to
/usr/lib/dri/fglrx_dri.so

I know you have searched but have you used a file manager to actually look
in the folder to see if the link exists?

Also what version OpenSuse?
and which arch, 32 or 64 bit?

If 64bit then there are also dri files in the lib64 dirs as well.

If you have checked thet the files definitely do not exist in any of the 2
locations for 32bit or all 4 locations for 64bit then if it was me I would
create an empty file as root with the right name in the

/usr/X11R6/lib/modules/

and see what happens when you try and install, then delete the file and see
what happens then.

Might not have any effect but might give a different error message which
might narrow down the problem.

I must admit I am grabbing at straws as I have never seen this error before
unless the file actually existed.

This may seem a completely stupid question and no doubt wrong but you are
trying to install as root from a console with no xserver running?


Mark

Nullus in verba
Nil illegitimi carborundum

Running opensuse 11.1 64bit with factory packages for xorg and KDE (and sound).

I have searched all the filesystem with:

find / -name fglrx*

and haven’t found anything.

Yes i’m installing as root. I will try the suggestion with the empty file and report back.

I have searched this issue a little further.

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

[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:

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.

elksi adjusted his/her AFDB on Friday 19 Jun 2009 15:26 to write:

>> `/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:

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.

my log which I have just generated by updating to the latest 9.6 drivers is
exactly the same up to the line:

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
    done

I have never had to run the script even though the log says I should

and that is it.

I do remember sometime ago another person having the same problem but not
sure how he got that working.

It looks to me as if there is already a module loaded and so the script
cannot load another one???

can you check with lsmod to see if the fglrx is loaded?

make sure that even if you have dropped to runlevel 3 that the x-server is
not running you can use top for that, I have seen here that in earlier
version of KDE4.2 sometimes there was a feature where even if I executed
init 3 the Xserver would stay running with 100% CPU, this would then lock
the fglrx module so that the install script would not be able to load the
new version.

If the xserver is not running but the fglrx is still loaded then you can
always remove it from the kernel by:

rmmod fglrx

Then do a

modprobe fglrx

Or if it is not then see what happens if you do a :

modprobe fglrx

Maybe you will get a better error message.

HTH

Mark

Nullus in verba
Nil illegitimi carborundum

I have checked and no X server is running, no fglrx module is loaded and

modprobe fglrx

returns

FATAL: Module fglrx not found

I have also tried to remove radeon and drm modules prior to the installation with the same result.

elksi adjusted his/her AFDB on Saturday 20 Jun 2009 08:16 to write:

>
> I have checked and no X server is running, no fglrx module is loaded
> and
>
>> modprobe fglrx
>
> returns
>
>> FATAL: Module fglrx not found
>
> I have also tried to remove radeon and drm modules prior to the
> installation with the same result.
>
>

If it was me I would try the alternative way of installing the drivers by
getting the ATI installer to create a distribution specific rpm for SuSE,
just follow the the prompts in the installer to create one and then you
should be left with an rpm which you can either install with Yast or the
Install software apps or use the commandline and the rpm command.

I would use the commandline:

rpm -Uvh ati-blah-blah.rpm

And then use

depmod

to see if that creates the correct mod symbols and such, I know that this
should be done automagically but this is just to see if any extra output
might help us diagnose why this is happening.

at least you should get some sort of error printed out that might be better
than the logs.

however let me also have a look round this morning now that I am more awake
:slight_smile:

I might be missing something blatantly obvious.

HTH


Mark

Nullus in verba
Nil illegitimi carborundum

Installation with rpm went smoothly. I had not any error messages.

The problem is that i’m getting a black screen and the system freezes (ALT+PRTSCR+B reboots it) when i try to execute:

sax2 -r -m 0=fglrx

elksi adjusted his/her AFDB on Sunday 21 Jun 2009 12:26 to write:

>
> Installation with rpm went smoothly. I had not any error messages.
>
> The problem is that i’m getting a black screen and the system freezes
> (ALT+PRTSCR+B reboots it) when i try to execute:
>
>> sax2 -r -m 0=fglrx
>
>

I forgot one thing I would not recommend the sax2 route, it is stated in the
docs that once installed you need to execute as root in a terminal:

At init 3:

aticonfig --initial

sax2 is supposed to work if you use the onclick install or the drivers from
the repos, however I have never had a satisfactory result with them here and
because I use custom kernels sometimes it is easier to do the whole manual
install that way.

If you get an error about your xorg.conf then you ca try gatting a default
one with:

sax2 -r -m 0=vesa

after the clean xorg is made then use the aticonfig command, or you can have
a look and see if there is a backup xorg from when you first installed that
is a default one you can use a copy of thet without running sax2 by
overwriting the xorg.conf with it.

Any probs just holler I will be back later

Gotta go out for an hour or two now.

HTH

Mark

Nullus in verba
Nil illegitimi carborundum

It seems that fglrx has something with my system.

I have tried everything proposed including generating a clean xorg.conf (sax2 -r -m 0=vesa) before running “aticonfig --initial”

All tries have the same result, black screen and system freeze.

It seems that something is broken in fglrx regarding HD4670 card.

I have the exact same behavior (black screen and system freeze) on a fresh installed Linux Mint 7 x86_64 on my system.

Just wondering you have solved or not. This situation may caused by read/write permission. You could try this command

chmod 777 <you amd driver package>.run

to make the pakage get full r/w permission