[yet another] ATI driver install problem -2.6.*
Hi!
I know there is a few ATi threads floating around but it is messy and missed out a few steps which drives me up the wall. System: Ati Radeon 9200SE AMD-athlon-xp VIA-AGP xorg (dropline) This is what I have done: 1. Download latest Ati driver (fglrx-4.3.0-3.9.0.i386.rpm). 2. rpm2tgz fglrx-4.3.0-3.9.0.i386.rpm 3. installpkg fglrx-4.3.0-3.9.0.i386.tgz 4. configure 2.6.7 to include via-agp (build-in) configure 2.6.7 to exclude DRI(DRM) 5. install the kernel and reboot. Now what? Thanks in advance. |
Don't you now have to edit your x.org config file to use the fglrx driver?
I _think_ it's just a case of editing the file and replacing whatever is being used as the driver with fglrx but someone will correct that. Steve |
This is much the same discussion we were having over in this thread:
http://www.linuxquestions.org/questi...hreadid=193887 However, at the risk of being redundant, here's my method for installing the ATI drivers, slightly updated from the version I've previously posted. I'm still chasing one last error, but the method is largely successful. I've currently got it working on an AMD64 laptop running the latest Slackware-current (that would be Slackware 10 rc1) with kernel 2.6.6 1. Recompile your Linux kernel to modify the following: Include as a module - Device drivers > Character devices > /dev/agpgart Include as a module - Device drivers > Character devices > /dev/agpgart > whatever the appropriate driver is for your system (in my case, I enabled "AMD Opteron/Athlon64 on-CPU GART support") REMOVE - Device drivers > Character devices > Direct Rendering Manager The ATI driver should be installed or recompiled AFTER these changes have been made. 2. Get the latest (4.3.0 at time of writing) ATI Radeon driver from http://www.ati.com/support/driver.html 3. Download DRI. The latest version snapshot (as of 09-Jun-2004) doesn't work. The most recent working version I've found so far is is available at: http://www.freedesktop.org/~dri/snap...x.i386.tar.bz2 4. Install the ATI driver. This is all best done at the command line - not in a shell console. Please note that ATI driver is very sensitive and that you should probably go through this step again every time you modify your Linux kernel. run rpm2tgz on the ati driver rpm, and use pkgtool to install it. cd lib/modules/fglrx/build_mod sh make.sh cd .. sh make_install.sh modprobe fglrx lsmod to make sure that fglrx, agpgart, and the correct agp module for your system (amd64_agp in my case) are all loaded. fglrxconfig You'll have to enable external agp here. If you are running Xorg rather than XFree86, when you're asked if you want to save, say no to all the suggested file names and locations, and instead provide it with the following address: /etc/X11/xorg.conf BEFORE YOU DO THIS IT IS A VERY GOOD IDEA TO MAKE A COPY OF YOUR OLD xorg.conf FILE. Call it xorg.conf-old or somesuch. If everything goes horribly wrong, you can copy it back to its original name to get X to at least load again. Add this to modprobe.conf: install fglrx /sbin/modprobe --ignore-install fglrx && { /sbin/modprobe amd64_agp; /bin/true; } 5. Go to wherever you've unpacked dri and sh install.sh 6. Testing You should now be able to startx with everything working, although I prefer to reboot first at this point. That should get it up and running, with most 3d applications working, although fgl_glxgears produces "Error: couldn't get fbconfig" - a problem which I'm hunting down the cause of right now. In X, open up a shell terminal. There are a couple of useful utilities that you can use to test your card. /usr/X11R6/bin/glxgears Measures the speed in 3d - enlarge to full screen and leave running for 30 seconds or so before closing. At fullscreen 1024 x 768 it reports: 1318 frames in 5.0 seconds = 263.600 FPS /usr/X11R6/bin/glxinfo Provides info on your card. The line you really want to see is: "direct rendering: Yes" /usr/X11R6/bin/fgl_glxgears ATI's version of the speed test. Currently produces the error: "Error: couldn't get fbconfig". :( /usr/X11R6/bin/fglrxinfo Should now produce something similar to the following result: display: :0.0 screen: 0 OpenGL vendor string: ATI Technologies Inc. OpenGL renderer string: MOBILITY RADEON 9600 Generic OpenGL version string: 1.3 (X4.3.0-3.9.0) Good luck. |
Okay maybe I should be more exact.
After I download both the dri and the fglrx drivers. Which do I install first? Do I install the dri first then only build_mod fglrx? by the way, editing xorg.conf is not a problem. I managed to edit to make use of both output as xinerama. |
Quote:
|
Ok this is what I get at trying to build_mod fglrx:
Code:
root@bigmac:/lib/modules/fglrx/build_mod# sh make.sh As far as I know, Error 2 means bad news. What can I do to fix this? |
Ah, it seems that the ATI drivers need modification to be made to work under kernel 2.6.7
Check out http://kerneltrap.org/node/view/3298 for a potential solution. I'd be most appreciative if you'd let me know how it goes for you if you try this. Best of luck! |
fglrx-3.9.0 and 2.6.7 kernel patch
make.sh SUCCESSFUL with
Code:
Common subdirectories: a/2.6.x and b/2.6.x Steps, copy the code above and save it as agpart-2.6.7-diff.patch at /lib/modules/fglrx/build_mod at that directory patch -p1 < agpart-2.6.7-diff.patch sh make.sh |
Ok I have modprobe fglrx and it is successful, but I haven't install dri.
Shouldn't I install dri first before modprobe fglrx? Anyway, this is my lsmod : Code:
root@bigmac:/lib/modules/fglrx# modprobe fglrx |
I've always installed dri as the last step before starting X and it's worked fine - most people seem to recommend doing it that way.
In your lsmod, I didn't notice agpgart or the whatever_apg module for your board - this looks like a potential problem. You might want to try modprobing them. Edited to include: lsmod on my system reports back the following about the relevant modules - amd64_agp 8648 1 fglrx 213412 7 agpgart 27624 2 amd64_agp Thanks for reporting back about the patch - I'll give it a go myself. :) |
GuineaPIG
Quote:
Anyhow, i don't have agp_via is because it is build into the kernel. Will I encounter problem? I am reluctant to quit my xorg and restart because I am downloading using bittorrent now. It takes a while to get connected to the tracker if I quit. Will try out once I am comfortable. linuxquestions.org rocks ! |
DARN!
After installing the fglrx and dri I only get half xinerama. What I meant is that, my mouse can cross over two both screen, BUT both screen is showing the same thing. No matter if I am using ati or fglrx. Looks like I am going to roll back. I hope rebooting will help. |
Rebooting doesn't help!
HELP ME PLEASE! I don't want to wipe out my system. |
I think you may have to disable Xinerama.
According to the ATI Radeon Linux FAQ at http://www.rage3d.com/content/articles/atilinuxhowto/ the drivers don't get along at all well with Xinerama, but as you can see, the information seems a tad out of date. Quote:
I'm still searching up solutions to a problem I'm trying to get rid of, so if I encounter anything relevant to your situation while doing so, I'll post here immediately. |
Re: GuineaPIG
Quote:
Going by the fact that your Xinerama setup has just screwed up, it sounds like the driver may be working, but if it doesn't check out properly (once you've fixed the Xinerama issue, at least), I'd suggest recompiling with agp_via as a module. |
All times are GMT -5. The time now is 06:24 AM. |