LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-26-2004, 02:20 PM   #1
black hole sun
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 127

Rep: Reputation: 15
Unhappy Installing ATI Drivers.


After --force ing the ATI driver installation, I'm trying to build and install a kernel module in order to get hardware acceleration, but I'm getting the following error when I "sh make.sh" in the fglrx/build_mod directory:

Code:
[root@x1-6-00-07-e9-c1-3c-84 build_mod]# sh make.sh
ATI module generator V 2.0
==========================
initializing...
Error:
kernel includes at /usr/src/linux/include do not match current kernel.
they are versioned as ""
instead of "2.6.3-7mdk-i686-up-4GB".
you might need to adjust your symlinks:
- /usr/include
- /usr/src/linux
Ive set up my symlink using the following commands

cd /usr/src
ln -s linux-2.6.3-15mdk linux

so I dont really know what the problem is here
 
Old 07-26-2004, 03:03 PM   #2
Inexactitude
Member
 
Registered: Oct 2003
Distribution: Slackware 12.2, Ubuntu 9.04
Posts: 477

Rep: Reputation: 30
Are you sure that you have the kernel sources installed in /usr/src/linux? Also, make sure that you have the correct version that matches your kernel.
 
Old 07-26-2004, 03:04 PM   #3
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,074

Rep: Reputation: 59
Try to get a vanilla kernel (2.6.3 for example) and compile it with the exact same options as the one you have now. The try to do the "sh make.sh" again.

Hope it helps
 
Old 07-26-2004, 03:17 PM   #4
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
A more detailed version of what hammet suggested:

1. Get a vanilla(ftp.kernel.org) source
2. Unpack it in /usr/src
3. Copy the config file mandrake(redhat, debian, ...) used to compile your **RUNNING** kernel(this is generally found in /boot/config-...)
4. rename the config file to /usr/src/<linux version>/.config
5. cd into /usr/src/<linux version> and issue a "make oldconfig". If the kernel versions are the same it should answer all questions by itself.
6. issue a make dep(not needed for 2.6 kernels)
7. Now go run your installation for other drivers,
*OPTIONAL* 8. You may need to link /usr/src/linux to the kernel source, and/or link /lib/modules/<kernel-version>/build to the linux source.
 
Old 07-26-2004, 03:33 PM   #5
black hole sun
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 127

Original Poster
Rep: Reputation: 15
Ah, dumb question, but what's a "vanilla source" file? And where is it on the ftp?
 
Old 07-26-2004, 03:51 PM   #6
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
Quote:
1. Get a vanilla(ftp.kernel.org) source
Goto ftp.kernel.org(as I referenced above), find a local mirror, go into the appropriate version folder, find the appropriate version. Vanilla refers to a kernel that hasn't been patched by anyone.
 
Old 07-26-2004, 04:16 PM   #7
black hole sun
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 127

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by jrmann1999
Goto ftp.kernel.org(as I referenced above), find a local mirror, go into the appropriate version folder, find the appropriate version. Vanilla refers to a kernel that hasn't been patched by anyone.
OK.

I'll follow the steps you outlined and report back.

One quick question though, I'm using the 2.6.3 up-4GB kernel because the default one doesn't recognize all my memory. Using this "vanilla" kernel will it find all my RAM?

Thanks for your help so far

Last edited by black hole sun; 07-26-2004 at 04:17 PM.
 
Old 07-26-2004, 10:25 PM   #8
Inexactitude
Member
 
Registered: Oct 2003
Distribution: Slackware 12.2, Ubuntu 9.04
Posts: 477

Rep: Reputation: 30
Are you using mandrake? If you are, use the package installation to get the source for the exact version of the kernel you're using. It should be relatively simple.
 
Old 07-27-2004, 12:13 PM   #9
black hole sun
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 127

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally posted by jrmann1999
4. rename the config file to /usr/src/<linux version>/.config
Confused on this one. You want me to name the copied config file as "config-2.6.3-7", which would be my linux kernel version, and then paste it in /boot? Or in /usr/src/<linux version>?

Sorry for being a bit dense, I'm relatively new to the linux scene.

Last edited by black hole sun; 07-27-2004 at 12:17 PM.
 
Old 07-27-2004, 12:23 PM   #10
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
It should already be located in /boot and named config-...

You need to move it to /usr/src/<linux-kernel-source>/ and then rename it to .config

Realize the <> stuff you need to replace with real values(like /usr/src/linux-2.4.20 and config-2.4.20 would pair together)
 
Old 07-27-2004, 03:12 PM   #11
black hole sun
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 127

Original Poster
Rep: Reputation: 15
Ok you are awesome!

The sh make.sh worked like a charm!

However

The module insert failed here:
Code:
[root@x1-6-00-07-e9-c1-3c-84 fglrx]# sh make_install.sh
- creating symlink
- recreating module dependency list
- trying a sample load of the kernel module
FATAL: Error inserting fglrx (/lib/modules/2.6.3-7mdk/kernel/drivers/char/drm/fglrx.ko): Invalid module format
FATAL: Error running install command for fglrx
failed.
I'm beginning to think ATI designed its driver around NOT letting me use it

Any clue what this error means?
 
Old 07-27-2004, 03:25 PM   #12
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
It generally means the module and kernel are incompatible, for grins, paste me the output of "uname -a"
 
Old 07-27-2004, 03:55 PM   #13
black hole sun
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 127

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by jrmann1999
It generally means the module and kernel are incompatible, for grins, paste me the output of "uname -a"
uname -a:

Linux x1-6-00-07-e9-c1-3c-84 2.6.3-7mdk #1 Wed Mar 17 15:56:42 CET 2004 i686 unknown unknown GNU/Linux

Man, this sucks Is there anything I can do to get it to work, short of upgrading my kernel?

Last edited by black hole sun; 07-27-2004 at 03:58 PM.
 
Old 07-28-2004, 11:13 PM   #14
spoilt
LQ Newbie
 
Registered: Jul 2004
Location: karachi
Posts: 1

Rep: Reputation: 0
i m using Mandrake 10.0
n XFree86 version 4.3.0.1

i downloaded the drivers frm ATI site..
i m doin everythin as it is given in the HOW TO file on the ATI SITE
everythin goes smooth... i answer all the question in fglrxconfig
dat too goes ok

but whn i reboot n try Fglrxinfo... it still says MESA drivers
whereas the ATI site goes like this...

Quote:
Run fglrxinfo to verify the driver is installed correctly

If the output reads OpenGL vendor string: ATI Technologies Inc. then your ATI drivers are installed and configured correctly.
can any1 help??
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing ati drivers morpheus83 Linux - Newbie 2 09-11-2005 04:32 PM
Installing ATI Drivers midgcool Linux - Software 5 12-04-2004 03:24 AM
Installing ATI drivers for X 4.3.0 Elliot Linux - Newbie 2 07-30-2004 03:23 AM
Installing ATI GL drivers michael_mead Red Hat 2 09-04-2003 01:31 PM
Installing ATI Drivers saidin Linux - General 4 02-06-2003 06:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:19 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