Gentoo Forums
Gentoo Forums
Quick Search: in
'modprobe fglrx' fatal error [SOLVED]
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
martinjaymckee
n00b
n00b


Joined: 28 Jan 2007
Posts: 5

PostPosted: Sun Jan 28, 2007 3:10 pm    Post subject: 'modprobe fglrx' fatal error [SOLVED] Reply with quote

I'm working on installing gentoo on an acer laptop ( ferrari 5000 - amd64 X2 - ATI X1600 ) and I'm having trouble with getting the ati drivers to work ( I know, it's not unusual... ). Anyway anything below 8.30.3 doesn't want to compile with my kernel ( gentoo-sources-2.6.18-r6 ). Anything higher appears to compile but there is a fatal error when the fglrx module is loaded ( or a load is attempted rather ). The error when a startx is attempted is:

FATAL: Error inserting fglrx (/lib/modules/2.6.18-gentoo-r6/video/fglrx.ko): Operation not permited

After banging my head against this I've finally come to the conclusion that even after all the how-to's I've read I'm not sure what to do next... I only have limited experiance with Linux and I hit my limit of knowledge. I was unable to find any reference that told about the exact meaning of the error, although I have checked that fglrx.ko is being created and it certianly is there, though I have no way of testing it as yet...

Any ideas?

Martin Jay McKee


Last edited by martinjaymckee on Wed Jan 31, 2007 11:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
d2_racing
Moderator
Moderator


Joined: 25 Apr 2005
Posts: 7699
Location: Ste-Foy,Canada

PostPosted: Sun Jan 28, 2007 4:54 pm    Post subject: Reply with quote

you cannot load the fglrx module, clean and simple.

But, we can find the solution :)

Can you post your /etc/X11/xorg.conf.

Also did you uncheck Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) in your kernel.

Because FGLRX will fail each time...

Can you post also your /etc/make.conf
_________________
Sysadmin of Gentoo-Québec.org
Signature
IRC channel on Freenode : #gentoo-quebec
Back to top
View user's profile Send private message
martinjaymckee
n00b
n00b


Joined: 28 Jan 2007
Posts: 5

PostPosted: Sun Jan 28, 2007 6:09 pm    Post subject: Reply with quote

As it stands I have no way to get the config files from the laptop to the computer that I'm writing this on so I'll attempt to do it with exerpts. I can certianly check the configs if there are questions. Here is the /etc/make.conf:
Code:

CFLAGS="-march=k8 -o2 -pipe"
CHOST="x86-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"

GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo "
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"

USE="-oss -gtk -gtk2 -gnome glx"

INPUT_DEVICES="keyboard mouse wacom"
VIDEO_CARDS="fglrx fbdev vesa"


To be honest the /etc/X11/xorg.conf is all over the place... I started with a default configuration built with xorgconfig and then adding the fglrx specific device with the aticonfig script. I'll clean out the comments to reduce typing but leave everything else as is...

The modules that the xorg.conf attempts to load are as follows:
Code:

Section "Module"
     Load "dbe"
     SubSection "extmod"
         Option "omit xfree86-dga"
     EndSubSection
     Load "freetype"
     Load "dri"
     Load "glx"
EndSection


The monitor,device and screen definitions:
Code:

Section "Monitor"
     Identifier "aticonfig-Monitor[0]"
     Option "VendorName" "ATI Proprietary Driver"
     Option "ModelName" "Generic Autodetecting Monitor"
     Option "DPMS" "true"
EndSection

Section "Device"
     Identifier "aticonfig-Device[0]"
     Driver "fglrx"
     Option "DRI" "true"
EndSection

Section "Screen"
     Identifier "aticonfig-Screen[0]"
     Device "aticonfig-Device[0]"
     Monitor "aticonfig-Monitor[0]"
     DefaultDepth 24
     SubSection "Display"
          Viewport 0, 0
          Depth 24
          Modes "1680x1050"
     EndSubSection
EndSection


I have checked and double-checked that DRM is disabled, infact I'm on my second clean install just in case. One of the things that I'm not really sure about is the AGPGART settings ( and how they relate to a PCIe card), I've heard them mentioned here and there but I'm still not sure how it should be set and using 'make menuconfig' with my kernel ( 2.6.18-r6 ) there is no direct control over it as, apparently, the iommu has be made embedded.

I only wish that the opensource drivers had 3d acceleration for my graphics card as I'll be needing hardware opengl for blender...
Thanks for the help.

Martin Jay McKee
Back to top
View user's profile Send private message
butane317
n00b
n00b


Joined: 25 Jan 2006
Posts: 55

PostPosted: Sun Jan 28, 2007 10:30 pm    Post subject: Reply with quote

There are two different fglrx modules built when you install the driver, one for X, and one for the kernel. Do you have the kernel one inserted before you try to start X?
Back to top
View user's profile Send private message
Pse
Apprentice
Apprentice


Joined: 01 Mar 2005
Posts: 188
Location: by the plate river

PostPosted: Mon Jan 29, 2007 12:03 am    Post subject: Reply with quote

butane317 wrote:
There are two different fglrx modules built when you install the driver, one for X, and one for the kernel. Do you have the kernel one inserted before you try to start X?


According to his first post, that's the module he can't load (notice the reference to modprobe).

To be honest, I've never had any problems such as the one you describe with ATI's drivers. It's worth noting that you can start fglrx *without* loading the kernel module, but you just won't get any 3D acceleration. It may be worth to do so if you wish to finish your installation before solving this problem.

I'd recommend installing a different kernel and kernel headers (don't forget these). You could also use genkernel (just to get by, if you really want to compile and configure your kernel yourself). You could then compare the resulting config with your own if you still have any doubts.

Just to be sure everything is working right, you could download a LiveCD with ATI's drivers (such as Sabayon Linux) to try out.
Back to top
View user's profile Send private message
martinjaymckee
n00b
n00b


Joined: 28 Jan 2007
Posts: 5

PostPosted: Mon Jan 29, 2007 2:25 am    Post subject: Reply with quote

I've been worndering about a kernel compatability issue so I was concidering trying a new kernal as well, though I probably would have forgotten the headers. I'm not surprised to hear that you haven't had the same types of problems as I haven't seen anything about it myself, and I've been searching everywhere I can. Then again it really does look like a very "specific to the system" problem. I may also try the LiveCD route if I can't figure it out soon, it does seem like it should be working... Oh well. I've learned more about Linux from trying to track down the problems than I ever would have with a clean install.

Martin Jay McKee
Back to top
View user's profile Send private message
martinjaymckee
n00b
n00b


Joined: 28 Jan 2007
Posts: 5

PostPosted: Mon Jan 29, 2007 4:14 am    Post subject: 'modprobe fglrx' fatal error [SOLVED] Reply with quote

Well... the good news is that I've got flgrx loading properly, the bad news is I'm up way too late :D . It was a compatability issue, although the kernel I was using allowed the ati-drivers ebuild to complete without errors there was a problem somewhere with the module loading. Instead I upgraded my kernel to 2.6.19-r4 and the kernel headers to the latest and hey presto fglrx modprobed properly. Now fglrxinfo shows the proper ATI info and glxgears is running at ~4150 fps... quite the improvement from vesa... The kernel config is virtually identical and I'm using the same xorg.conf so it's pretty certian it was a version problem.

Thanks for all the comments, they were very helpful. Now I can work on getting a desktop installed.

Martin Jay McKee
Back to top
View user's profile Send private message
Pse
Apprentice
Apprentice


Joined: 01 Mar 2005
Posts: 188
Location: by the plate river

PostPosted: Mon Jan 29, 2007 9:47 am    Post subject: Reply with quote

Oops, it looks like you set "[SOLVED]" in the post title instead of the thread title, you may want to change that ;)
Back to top
View user's profile Send private message
martinjaymckee
n00b
n00b


Joined: 28 Jan 2007
Posts: 5

PostPosted: Tue Jan 30, 2007 2:16 am    Post subject: Reply with quote

Just one question...
How do I mark the Topic Solved??

Martin Jay McKee
Back to top
View user's profile Send private message
d2_racing
Moderator
Moderator


Joined: 25 Apr 2005
Posts: 7699
Location: Ste-Foy,Canada

PostPosted: Tue Jan 30, 2007 7:53 am    Post subject: Reply with quote

You need to edit your first post and you can change de title :)
_________________
Sysadmin of Gentoo-Québec.org
Signature
IRC channel on Freenode : #gentoo-quebec
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum