LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-12-2006, 08:01 AM   #1
Anony
LQ Newbie
 
Registered: Jul 2006
Posts: 25

Rep: Reputation: 15
fglrx module loading problem


Greetings!

I made an attempt to load the fglrx module using the ./make.sh method, described inside the fglrx-kernel-src README.debian..

----a) Build with the supplied make.sh script
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This will build a module that matches the running kernel; you need to have
the correct kernel source and configuration in place.

$ cd /usr/src/modules/fglrx
$ ./make.sh

Provided that the module was compiled without error, become root and
install it:

$ mkdir /lib/modules/$(uname -r)/misc
$ cp fglrx.ko /lib/modules/$(uname -r)/misc/
$ depmod -ae

Now try to load the module by entering the following command as root:

$ modprobe -v fglrx

If everything goes well, modprobe prints the path of the module it loaded.

If modprobe can't load the module, make sure you've installed it correctly
and look at the output of dmesg for any errors. Please include the full
error message from modprobe -v fglrx and the output from dmesg and lsmod if
you choose to contact me at this point!

----

Now well, it was unsuccesfull, when I tried to modprobe.
Here, are my dmesg, lsmod, and modprobe -v fglrx commands and their errors:

http://pastebin.ca/86019


Thank you!~
 
Old 07-12-2006, 08:29 AM   #2
AzrielMacKay
Member
 
Registered: Jul 2001
Location: Moody, AL
Distribution: Debian and Kubuntu
Posts: 249

Rep: Reputation: 30
It looks like a version mismatch to me. Somehow it was compiled with different options than the kernel you are actually running.
 
Old 07-12-2006, 08:34 AM   #3
Anony
LQ Newbie
 
Registered: Jul 2006
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by AzrielMacKay
It looks like a version mismatch to me. Somehow it was compiled with different options than the kernel you are actually running.

So, what do you propose?

:/
 
Old 07-12-2006, 09:14 AM   #4
Anony
LQ Newbie
 
Registered: Jul 2006
Posts: 25

Original Poster
Rep: Reputation: 15
I got this from a debian user:


"
Your kernel and the fglrx module are built with different versions of
the compiler. See the error message (I added some spaces to line up the
version strings and make the diference more obvious):

fglrx: version magic '2.6.17-1-686 SMP mod_unload 686 REGPARM gcc-4.0'
should be '2.6.17-1-686 SMP mod_unload 686 REGPARM gcc-4.1'
"

What can I do about it?
 
Old 07-12-2006, 02:55 PM   #5
AzrielMacKay
Member
 
Registered: Jul 2001
Location: Moody, AL
Distribution: Debian and Kubuntu
Posts: 249

Rep: Reputation: 30
One, either make it compile it with the same version compiler that the kernel was compiled with (sorry cant remem how to do that) or two, just recompile your kernel, and then recompile the module. I'd go for the latter, especially considering I already know how to do it
 
Old 07-12-2006, 04:36 PM   #6
Anony
LQ Newbie
 
Registered: Jul 2006
Posts: 25

Original Poster
Rep: Reputation: 15
If I recompile the kernel. I'll have to build the sound card modules, the PS/2 mouse, and many more things from scratch, right? :/
 
Old 07-12-2006, 06:27 PM   #7
AzrielMacKay
Member
 
Registered: Jul 2001
Location: Moody, AL
Distribution: Debian and Kubuntu
Posts: 249

Rep: Reputation: 30
That should all be in the kernel. Did you not hand build your kernel before? If not that may be the issue. You may not have the right kernel headers installed for your prebuilt kernel.
 
Old 07-13-2006, 03:38 AM   #8
Anony
LQ Newbie
 
Registered: Jul 2006
Posts: 25

Original Poster
Rep: Reputation: 15
I used CC='gcc=4.1' before the ./make.sh of the fglrx and I fixed it!
Many many thanks!
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
X won't start: fglrx module problem max2004 Fedora 2 03-25-2006 01:35 AM
fglrx compiling custom module problem (firegl_public.c) Slate01 Linux - Hardware 0 11-25-2004 02:25 PM
fglrx module not found but X runs using module biger problem though HELP! fireicer Linux - Newbie 4 07-30-2004 04:44 PM
Problem with fglrx module (ati-drivers-3.9.0-r1) with kernel 2.6.7 in Gentoo Mitchua Linux - Hardware 1 07-10-2004 08:36 PM
ATI fglrx module+2.6.0-test9 compile problem dkavlakov Linux - Hardware 0 11-04-2003 01:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration