Radeon graphics cards with KT400 chipset
After months of searching, I finally got my Radeon 9800 Pro working with my KT400 chipset. Here's a howto I wrote to make the process easier for everyone else!
Radeon 9600/9700/9800 w/ KT400 (P4X400) HOWTO Note this is not an official document from ATI or anything like that. This document assumes that you are running a 2.4.x series kernel. If you are running kernel 2.5 or later, this probably won't work for you. This is simply my way of getting direct rendering working on Fedora Core 1. As far as I know, this process should work for other Linux distributions as well, YMMV. I spent months searching for a way to get my Radeon 9800 Pro working, and I finally found the answer on an old thread at the linuxquestions.org forum. If you have any questions, please feel free to contact me. I normally hang out in #fedora on irc.freenode.net. My nickname is swa. Table of Contents 1. Download the latest Schneider Digital drivers. 2. Extract the drivers and install the RPM. 3. Edit the agpgart_be.c file for your specific chipset. 4. Run ./make.sh, ./make_install.sh and fglrxconfig 5. Load the fglrx.o driver 6. Restart XFree86 7. Frequently Asked Questions (FAQ) 1. Download the latest Schneider Digital drivers. Although some will tell you that the original ATI drivers are the best, I've had the most luck with Schneider Digital's drivers. You can download them from http://www.schneider-digital.de/html/download_ati.html. Just pick out the driver that matches your version of XFree86. 2. Extract the drivers and install the RPM. Before you begin this step you must make absolutely sure that you have your kernel-source installed. Most distributions provide this in a single RPM. For Fedora users, you can find this rpm on the third disc or you can simply type "yum install kernel-source" if you are using Fedora Core 1. This driver will not work unless you install the kernel-source FIRST! With that said, extract the ZIP file you just downloaded. You can do this by typing "unzip glx1_linux_x4.3.zip". Replace the filename with the file you actually downloaded. Now that the files are extracted, you should see an rpm inside the extracted folder. You need to install the rpm by typing "rpm -Uvh --force fglrx.rpm", replacing fglrx.rpm with the name of the actual rpm. The driver will install and you'll notice that toward the end, it will automatically compile a driver for you. 3. Edit the agpgart_be.c file for your specific chipset. Now that you have the driver installed, you need to find your exact chipset from the "lspci" command. Normally the chipset is at the top of the list. I have a VIA 8377 chipset. Here's an example of what your output would look like: Code:
00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400 AGP] Host Bridge Next, you need to navigate to the /lib/modules/fglrx/build_mod directory. Inside this directory you'll see a file called agpgart_be.c. You need to edit this file in order to make the driver load properly. Open agpgart_be.c and look for the number pertaining to your chipset. My number is 8377, and the section pertaining to that chipset is on line 6068. The P4X400 chipset can be found at about line 6076. In the section for your chipset, you'll see something similar to the following:via_generic_setup Code:
{ PCI_DEVICE_ID_VIA_8377_0, Code:
{ PCI_DEVICE_ID_VIA_8377_0, While you are still in the /lib/modules/fglrx/build_mod directory, build your new module by typing "./make.sh". You should see something similar to the following output: Code:
ATI module generator V 2.0 5. Load the fglrx.o driver This step is easy. All you need to do is type "insmod fglrx". If you get any errors, chances are either the old version is still loaded or you have a kernel driver installed. Try typing "rmmod radeon" and "rmmod fglrx", then try to run the insmod command again. It will give you some output about the driver having a proprietary license, but that's normal and can be safely ignored. 6. Restart XFree86 Another simple step. You can either reboot your computer (the recommended method) or hit Ctrl + Alt + Backspace on your keyboard. Once you've restarted, open a console and type "glxinfo | grep direct". You should notice it says "direct rendering: Yes". If that's the case, you're all set! Happy gaming and good luck. If you ran into any trouble feel free to contact me on freenode and I'll try to help you further. |
Thanks a lot!
I got it to work thanks to your guide, altough I used the ATI drivers. My setup is a kt400 mobo and a radeon 9600 pro. Awww this feels so good, thanks again! :D |
no problem man. I'm glad this could help somebody else :)
|
Thanks for this complete installation guide nemesis.
I will try this tonight ... anyway it seems to work for you and we got the same mobos... Cya dude :D |
Yeah thanks nemesis its working for me too.
In addition to your guide i can say that it's working with ati drivers too (i have skipped your 5th part) Thx |
Now my 3d acceleration works, but when i start a 3d game my system crash! grrr!
Example: tux racer ask me "Press any key to start".........I press any key......system crash. Can you help me???? Sorry if my English is not correctly bye! [ITA]Elius |
Mhhhh
Can u tell us whats your graphic card and motherboard? Can you see any error message in your /var/log/XFree86.0.log? |
Motherboard Asus A7V8X with Sata
AMD Athlon 2500+ Saphire RADEON 9600Pro 128Mb |
griffouille, can i send you my log by email? I think I have many problems!
|
part of my log file
(WW) fglrx(0): Cannot read colourmap from VGA. Will restore with default (II) fglrx(0): UMM area: 0xe0500000 (size=0x07b00000) (II) fglrx(0): driver needs XFree86 version: 4.3.x (II) fglrx(0): detected XFree86 version: 4.3.0 (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): ********************************************* * ...dri failed... but when I execute fglrxinfo it's say display: :0.0 screen: 0 OpenGL vendor string: ATI Technologies Inc. OpenGL renderer string: Radeon 9600 Athlon (3DNow!) OpenGL version string: 1.3 (X4.3.0-3.2.8) :-( |
Problem with 2.4.21-144-athlon kernel?
When I run make.sh I get the following error message:
Code:
Error: |
I am a complete newbie with linux..... I have an Asus A7V8x, and a radeon 9500pro, and running fedora core 1. I have tried installing the card using both ati drivers and schneider digital drivers, and I'm having no luck with either. When I type in lspci to get my chipset details, it doesn't recognise the command, so I'm guessing its a via 8377. Can you take a look at the scree dump and advise me where I may be going wrong... I would appreciate it greatly.
[mark@localhost mark]$ su Password: [root@localhost mark]# cd X4.1.0-3.7.0 [root@localhost X4.1.0-3.7.0]# rpm -Uvh --force fglrx-glc22-4.1.0-3.7.0.i386.rpmPreparing... ########################################### [100%] warning: user mtippett does not exist - using root warning: group mtippett does not exist - using root warning: user mtippett does not exist - using root warning: group mtippett does not exist - using root ( Note! The above is repeated many times... just saving space!) 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. *** Found kernel module build environment, generating kernel module now. ATI module generator V 2.0 ========================== initializing... cleaning... patching 'highmem.h'... skipping patch for 'drmP.h', not needed patching 'drm_os_linux.h'... probing for VMA API version... 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.22-1.2115.nptl/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 === [root@localhost X4.1.0-3.7.0]# lspci bash: lspci: command not found [root@localhost /]# cd /lib/modules/fglrx/build_mod [root@localhost build_mod]# lspci bash: lspci: command not found [root@localhost build_mod]# gedit agpgart_be.c (Note! This is where I edited the via_generic_setup line for chipset 8377) (gedit:26301): GnomeUI-WARNING **: While connecting to session manager: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed. [root@localhost build_mod]# ./make.sh ATI module generator V 2.0 ========================== initializing... cleaning... patching 'highmem.h'... skipping patch for 'drmP.h', not needed patching 'drm_os_linux.h'... probing for VMA API version... doing script based build for kernel 2.4.x and similar compiling './agpgart_be.c'... agpgart_be.c:6073: error: `via_kt400_chipset' undeclared here (not in a function) agpgart_be.c:6073: error: initializer element is not constant agpgart_be.c:6073: error: (near initialization for `agp_bridge_info[59].chipset_setup') agpgart_be.c:6073: error: initializer element is not constant agpgart_be.c:6073: error: (near initialization for `agp_bridge_info[59]') agpgart_be.c:6079: error: initializer element is not constant agpgart_be.c:6079: error: (near initialization for `agp_bridge_info[60]') agpgart_be.c:6085: error: initializer element is not constant agpgart_be.c:6085: error: (near initialization for `agp_bridge_info[61]') agpgart_be.c:6091: error: initializer element is not constant agpgart_be.c:6091: error: (near initialization for `agp_bridge_info[62]') agpgart_be.c:6124: error: initializer element is not constant agpgart_be.c:6124: error: (near initialization for `agp_bridge_info[63]') agpgart_be.c:6130: error: initializer element is not constant agpgart_be.c:6130: error: (near initialization for `agp_bridge_info[64]') agpgart_be.c:6136: error: initializer element is not constant agpgart_be.c:6136: error: (near initialization for `agp_bridge_info[65]') agpgart_be.c:6150: error: initializer element is not constant agpgart_be.c:6150: error: (near initialization for `agp_bridge_info[66]') compiling failed - object file was not generated [root@localhost build_mod]# |
Re: Radeon graphics cards with KT400 chipset
Quote:
Finally(!) - the first thing I've seen that did it also for me! I have a Sapphire Radeon 9700 Pro and the ASUS A7N8X (Via KT400 chip) - I only had to use change the 'PCI_DEVICE_ID_NVIDIA_NFORCE2' entry to the same procedure call ('via_kt400_setup')... now (after a few month) I have almost 500 frames in fgl_glxgears! :) Thanks!! Thoddy |
nemisis636, you FRIKKEN rock!!!
i actually have the kt600 chipset, but i had noticed that when i tried to insmod agpgart verbosely, it claimed i had the kt400. after discovering that i wound up finding your post. when i started reading it i thought, now this guy is onto something. another funny thing is that my host-bridge model number is apparently 3189. i took a shot in the dark and went with your model number since, as i said, my insmod was reporting kt400. i spent about a week on this getting all sorts of advice in real time. thanks to you i didn't have to spend months ;) :D |
Re: Radeon graphics cards with KT400 chipset
Quote:
It worked fine as long as I was using Fedora Core 1. Recently I installed Fedora Core 3 which has the x.org X Server instead of the XFree86 (actually, Fedora Core 2 already was using this)... can anyone tell me how to install the 3D acceleration in this environment?? Thanx! Thorsten |
All times are GMT -5. The time now is 06:22 PM. |