LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-04-2003, 05:18 PM   #16
michael_mead
Member
 
Registered: Aug 2003
Distribution: Red Hat, Debian & Mandrake
Posts: 47

Rep: Reputation: 15

I fixed my problem. I went to rpmfind.net and downloaded the kernel source for my kernel and installed it. Once installed I done a symlink between /usr/src/linux and the folder with the source in for the kernel. Then I ran the program again, but now I have another problem with it. I am using red hat so it might be slightly different. I have used mandrake but not to install this.
 
Old 09-04-2003, 05:47 PM   #17
scobiej
Member
 
Registered: Aug 2003
Location: London
Distribution: Redhat, SuSE, Ubuntu
Posts: 75

Rep: Reputation: 15
And your problem is what exactly ...
 
Old 09-04-2003, 06:12 PM   #18
michael_mead
Member
 
Registered: Aug 2003
Distribution: Red Hat, Debian & Mandrake
Posts: 47

Rep: Reputation: 15
If you read a couple of replies back, you'll see the error outputs and an overview of the problem.
 
Old 09-04-2003, 06:24 PM   #19
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by scobiej
What you haven't got installed is the kernel sources/development headers. Look through your rpm repositories until you find the one marked kernel headers or system headers. I can't remember the exact name for now.
If you can't find them, I will trail the net and find out for you.

Jon.
ScobieJ - appreciate you really helping us out on this. However, I don't know what you mean by nothing having installed the kernal sources/development headers. If you know what I can do to install these things, please let me know! thanks
 
Old 09-05-2003, 04:51 AM   #20
scobiej
Member
 
Registered: Aug 2003
Location: London
Distribution: Redhat, SuSE, Ubuntu
Posts: 75

Rep: Reputation: 15
OK. If you do this,

rpm -q kernel-source

what do you get? For me, I get
kernel-source-2.4.20-19.9

but you should get something similar. If you now look in /usr/src/linux-2.4.20-19.9/include/linux
(replacing the linix-2.40... with whatever you have), you should have a version.h file.

If you don't, the kernel source is not installed properly.
 
Old 09-26-2003, 11:22 AM   #21
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by scobiej
OK. If you do this,

rpm -q kernel-source

what do you get? For me, I get
kernel-source-2.4.20-19.9

but you should get something similar. If you now look in /usr/src/linux-2.4.20-19.9/include/linux
(replacing the linix-2.40... with whatever you have), you should have a version.h file.

If you don't, the kernel source is not installed properly.
I typed what you said but it says I don't have a kernel source.
So I went to rpmfind.net and looked up my kernel source for mandrake and found the version 2.14.19-32.
I tried installing the RPM but it says "EVERYTHING ALREADY INSTALLED".

So if I have it, why aren't the ATI drivers intalling correctlY? Something about a symlink? Help!!!!
 
Old 09-26-2003, 11:46 AM   #22
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
EVERYONE! I got my ATI DRIVERS TO WORK FINALLY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I went to my mandrake control center and looked up the kernel-source for the current version I had and installed it.
Then I just forced the installation of the ATI driver and rebooted and my tux racer game works!!!!!!!!
 
Old 09-26-2003, 03:28 PM   #23
marto
LQ Newbie
 
Registered: Jun 2003
Location: Italy
Posts: 23

Rep: Reputation: 15
Hi everyone!!
I have the same problem as Micro420 and michael_mead.
I have a Sapphire Radeon 9500 Pro and mandrake 9.1 (kernel 2.4.21-13mdk). I tried to install ATI drivers for XFree86 but I got this problem

[QUOTE]
Preparing... ########################################### [100%]
1:fglrx-glc22 ########################################### [100%]
*** Trying to install a precompiled kernel module.
*** WARNING ***
Tailored kernel module for fglrx not present in your system.
You must go to /lib/modules/fglrx/build_mod subdir
and execute './make.sh' to build a fully customed kernel module.
Afterwards go to /lib/modules/fglrx and run './make_install.sh'
in order to install the module into your kernel's module repository.
(see readme.txt for more details.)

As of now you can still run your XServer in 2D, but hardware acclerated
OpenGL will not work and 2D graphics will lack performance.

failed.
*** Error: no kernel module build environment - please consult readme.
Installed: qt3 (gcc 3.2) based control panel application
===
ATI display drivers successfully installed
please run 'fglrxconfig' now
===
[QUOTE]

Then I build my kernel module and installed it (I did all in the same order explained in the readme file that comes with the rpm) and I reinstalled ATI drivers but I got this message:

[QUOTE]
--command: rpm -i --force fglrx-glc22-4.3.0-3.2.5.i586.rpm

*** Trying to install a precompiled kernel module.
*** WARNING ***
Tailored kernel module for fglrx not present in your system.
You must go to /lib/modules/fglrx/build_mod subdir
and execute './make.sh' to build a fully customed kernel module.
Afterwards go to /lib/modules/fglrx and run './make_install.sh'
in order to install the module into your kernel's module repository.
(see readme.txt for more details.)

As of now you can still run your XServer in 2D, but hardware acclerated
OpenGL will not work and 2D graphics will lack performance.

failed.
*** Found kernel module build environment, generating kernel module now.
ATI module generator V 2.0
==========================
probing for VMA API version...
cleaning...
patching 'highmem.h'...
skipping patch for 'drmP.h', not needed
skipping patch for 'drm_os_linux.h', not needed
doing script based build for kernel 2.4.x and similar
compiling 'agpgart_be.c'...
compiling 'agp3.c'...
compiling 'i7505-agp.c'...
compiling 'nvidia-agp.c'...
compiling 'firegl_public.c'...
linking of fglrx kernel module...
duplicating results into driver repository...
done.
==============================
- creating symlink
- recreating module dependency list
- trying a sample load of the kernel module
Warning: loading /lib/modules/2.4.21-0.13mdkcustom/kernel/drivers/char/drm/fglrx.o will taint the kernel: non-GPL license - Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY
See http://www.tux.org/lkml/#export-tainted for information about tainted modules
Module fglrx loaded, with warnings
done.
Installed: qt3 (gcc 3.2) based control panel application
===
ATI display drivers successfully installed
please run 'fglrxconfig' now
===
[QUOTE]

Then I run 'fglrxconfig' and got a new XF86Config-4. I thought the drivers was installed, but 'fglrxinfo' reports this:

[QUOTE]
display: :0.0 screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.3 Mesa 4.0.4
[QUOTE]

I should have got ATI as vendor string and FireGL (or something similar) as renderer.
Now, lokking up in XFree86.0.log I found this lines:

[QUOTE]
(EE) fglrx(0): [agp] unable to acquire AGP, error "xf86_ENODEV"
(EE) fglrx(0): cannot init AGP
(II) fglrx(0): [drm] removed 1 reserved context for kernel
(II) fglrx(0): [drm] unmapping 8192 bytes of SAREA 0xd8854000 at 0x40014000
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed! *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO) *
(WW) fglrx(0): * no 3D acceleration available *
(WW) fglrx(0): ********************************************* *
[QUOTE]

I think this is the source fo the problem, but how can I make fglrx acquire AGP ?

Thank you for your patient (I know this is quite long, but after all is the result of an entire afternoon of attempts :-).
 
Old 09-26-2003, 03:36 PM   #24
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
Hmm..
 
Old 09-28-2003, 06:10 PM   #25
zhitch
LQ Newbie
 
Registered: Aug 2003
Location: Dayton, Ohio
Distribution: LFS
Posts: 28

Rep: Reputation: 15
Ok this is how I got it to work! First Im running a Nforce2 board so I had to track down a kernel patch to enable agpgart. its called linux-2.4.21-agpgart.diff. do a search on Google & your find it. Its a modified version of the nvidia patch for 2.4.20. Make sure your sources are installed, then patch the kernel by placing the patch in /usr/src/linux then patch -p0 < linux-2.4.21-agpgart.diff
Then compile a custom kernel (there is documentation if needed in Documentation of all places, lol) Make sure you enable agpgart and nvidia chipset support. BTW if you have another chipset then make sure agpgart is enabled somehow(don`t know about other chipsets) Then D/L latest ATI driver, and FORCE install it. Driver docs will tell you how. run fglrxconfig, and select external agp. works like a charm for me, hope it helps.
 
Old 10-01-2003, 08:10 AM   #26
marto
LQ Newbie
 
Registered: Jun 2003
Location: Italy
Posts: 23

Rep: Reputation: 15
I'm not using a Nforce2 chipset. I have an Athlon and a VIA KT400 chipset, so (unucky) that patch is useless to me...
 
Old 10-02-2003, 12:39 PM   #27
marto
LQ Newbie
 
Registered: Jun 2003
Location: Italy
Posts: 23

Rep: Reputation: 15
Finally it works!!!

I post this for people with same problem then mine...
I found the solution in a thread in the Hardware forum in this same site (thank you very much jbparto), but I don't know how to link you there; so I write here the complete address:

http://www.linuxquestions.org/questi...ght=ATI+driver

However, if you don't want to spare time reading all the 7 pages and you have an ATI Radeon 9xxx and a VIA KT400/KT600 chipset or a VIA P4X400 motherboard you should do the following (this works for Mandrake 9.1 but I think it's the same for other distro):

1. Opened up Mandrake Control Center, Software Mgmt, RPM Drake, then did search for "kernel". It brought up the kernel source, select it and hit the install button.

2. open up a terminal as root go to directory with rpm driver. install the rpm with the following command. rpm -Uhv <filename>.rpm don't use the <> in the command.

3. go to /lib/modules/fglrx/build_modules and edit the agpgart_be.c, search for 8377, a couple lines below you will see the following line...
via_generic_setup}, //AGP v2 change this line to read...
via_kt400_setup}, //AGP v2 save the file.

4. in terminal type cd /lib/modules/fglrx/build_mod and hit enter.
type ./make.sh then type cd .. and press enter. type ./make_install.sh

5. type fglrxconfig go thru the options and pretty much take default choices. (i did change the monitor resolution and refresh rates). when it comes up and asks you if you want to use the external agp use the default option of NO. select YES when prompted to save.

6. restart xserver, or simply reboot.
 
Old 10-02-2003, 01:24 PM   #28
lex0429
Member
 
Registered: Jul 2003
Location: Westchester, NY
Distribution: Mandrake 9.1
Posts: 33

Rep: Reputation: 15
I myself have run into all the problems in this thread. at first i couldnt even get out of the text based screens. after downloading the ATI.rpm i was able to force the install and startx worked! now it is on to getting the power out of my 9700 pro that i paid for..lol..i will do my best to follow the directions from within this thread and post any positive strides i make...thanks to everyone who provided their expertise.


also according the the quote below, you have to backup those files, i skipped that part because i didnt know . is there hope to remedy my situation or is a clean install the way to go?




Quote:
Originally posted by scobiej
No, no, don't give up. What you want to do here is force the install. Don't worry. You can't do much harm as it will only affect OpenGL applications (games etc.) if it goes wrong and we can always put back the library which it overwrote.

Right, issue these commands commands as root :-

cp /usr/X11R6/lib/libGL.so.1.2 /usr/X11R6/lib/libGL.so.1.2.bck
rpm -Uvh --replacepkgs --force fglrx-glc22-4.2.0-2.5.1.i586.rpm

This will backup the file we are going to overwrite and force the installation of the driver. If you have any problems after that, you can always restore the file by doing :-

cp /usr/X11R6/lib/libGL.so.1.2.bck /usr/X11R6/lib/libGL.so.1.2


I think it will then tell you what to do. Any problems, just paste the output here and we will take it from there. Mandrake 9.2 will not solve your problem as the 3D hardware support for the 9700 is still not included in the 4.3 release of XFree86 as it is relatively new. It has 3D support for the Radeon 8500, 9000, 9100, and M9.

Please, persevere. It will be well worth it and you'll be learning along the way


Last edited by lex0429; 10-02-2003 at 01:35 PM.
 
Old 10-03-2003, 12:26 PM   #29
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Ok guys the easy way to install the ATi drivers on any rpm based distribution:
  • Download the drivers from www.ati.com
  • MAKE sure you have your kernel sources (otherwise the driver will not compile) installed. You have to know first what kernel you are running, so you can run these commands:
    Code:
    $ uname -r
    This will thell you your kernel version. Look in your distribution's CDs for the package containing the kernel sources (kernel-source<blah blah>.mdk.rpm Then install them:
    Code:
    $ su
    password:
    # rpm -Uvh /path/to/your/kernel-source*
  • Now install the drivers and don't worry about the libGL files, the rpm comes with a pice of software called scriptlet that will do this for you:
    Code:
    # rpm -ivh --force fglrx*
  • Pay close attention to any messages regarding a module loaded. If you get a message saying module loaded with warnings you are in the right path. These warning are because the drive is closed source and does not comply with the GPL (see the www.gnu.org page for details on the GPL)
  • Now you may back up your /etc/X11/XF86Config file and then run the fglrxconfig script to generate one.
  • Now you can safely start the X environment with startx

Hope this helps
 
Old 10-03-2003, 01:41 PM   #30
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
Nice detailed post Thetargos!

As a newbie, I was getting confused about the kernel sources (I still have no idea what they are), but finally someone on IRC told me to install the kernel source, which is not install by default on Mandrake 9.1.
After installing my kernel source, everything was straight forward.

It's kind of weird, but when I play Enemy Territory, the game runs smoother with FSAA! Weird, huh? But I'm not complaining - it looks nice.

I hope future ATI newbs will see your detailed instructions and it will work for them.
 
  


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
ATI Radeon 9700 pro is showing as 9500 pro kyromaniac Linux - Hardware 2 03-02-2005 05:32 AM
where to find S3 graphics pro savage DDR graphics jcolon Linux - Hardware 5 02-16-2005 04:53 PM
Radeon 9700 pro navrax Linux - Hardware 1 10-23-2004 05:46 PM
9700 PRO on suse onelung02 SUSE / openSUSE 3 10-12-2004 11:32 PM
ATI 9700 Pro is slow?!??! e1v!$ Linux - Hardware 3 07-16-2003 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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