LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 10-26-2003, 06:38 PM   #1
init
Member
 
Registered: Oct 2003
Location: Portland, Maine
Distribution: Gentoo 2004_2 2.6.7r14
Posts: 160

Rep: Reputation: 30
Talking ATI Driver Success and my HOW-TO


After 2 weeks 100 packs of smokes and some sore eyes I did it.

I wrote up a breif HOW-to for my system.. I hope this can help some of you out.
If not well I tried. Lots of info I got was from this site but it was scattered all over the place.




ATI 9700 Install

My System: Linux RedHat (ximian 2) 7.3 Kernel 2.4.20-20.7 i686
ATI 9700 Pro
VIA kt 400 mobo (Soyo Dragon Ultra)
Xfree86 4.2.x

Download :
ATI Drivers from www.ati.com for your version of Xfree
Download Kernel-Source for you version of the kernel (find the rpm)
google search for kernel<versionuhave>-source.rpm

Save all that stuff in a haPpY place..

First off if you have had failed attempt of installing the driver REMOVE everything that has to do with fglrx* I did this and also rolled back to my previous kernel, removed my new kernel and src and reinstalled those also by using basic rpm commands and the up2date GUI .. I say you are better safe than sorry

So once you have your kernel and source installed its time to modify your kernel src. to match your exhisting kernel.
http://www.opennet.ru/docs/HOWTO/Kernel-HOWTO.html is a great site if you need to do more than im going to post.

1. Copy config file : You can copy the config file from your old linux kernel source tree to new kernel tree (may save time, if you want to reuse the old settings).
(cp /boot/kernel<version>.config /usr/src/linux/.config
2.make clean; make mrproper (make sure you cp .config is still there if not recopy)
3.make xconfig (Than load /usr/src/linux/.config)
4.make dep
5.'make modules' and 'make modules_install'
6.And you can go to lunch or go to bed (have nice Linux dreams in sleep) and when you come back the system is ready! And see the log with 'less nohup.out'.


I threw some errors but F-it

make sure in ./usr/src/linux-2.4.20-20.7/include/linux/ the version.h file has the same name in it as the kernel you are booting to! here is mine ::

#define UTS_RELEASE "2.4.20-20.7"
#define LINUX_VERSION_CODE 132116
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))


At this point vi /etc/inittab and change run level to 3 than do an init 6 to reboot.

Login as root

rpm -Uvh fglrx<package-name>

cd /lib/modules/fglrx/build_mod

vi agpgart_be.c and search for 8377

CHANGE via_generic_setup to via_kt400_setup

{ PCI_DEVICE_ID_VIA_8377_0,
PCI_VENDOR_ID_VIA,
VIA_APOLLO_KT400,
"Via",
"Apollo KT400",
via_kt400_setup }, // AGP v2

Should look like that.

In current working dir ./make.sh
cd ..
./make_install.sh

than run fglrxconfig.

Pick you correct settings
##############################################################

External AGPGART module:

It is possible (but not recommended) to turn off the usage of
built-in agp support of the provided fglrx kernel module and
use the external AGP GART module (agpgart.o) of the Linux kernel.
If you want to use the external module then ensure that it loads
prior to the drivers full startup. In order to manually load the
external agpgart module execute this on the commandline (as root):
/sbin/insmod agpgart
or alternatively configure your system to auto load the module.

Do you want to use the external AGP GART module (y/n)? [n]

TAKE THE DEFAULT HERE!!!!!!!!!!!! [n]

make sure you save the new Xfree86-4 config file.

Vi /etc/inttab and set the run level back to 5 than init 6 to reboot.

Than off you go.

Run glxgears and fglxgears to make sure things are working.


That is what I did I will be happy to help out more if ya have any questions.

glxgears (output)
14608 frames in 5.0 seconds = 2921.600 FPS
17511 frames in 5.0 seconds = 3502.200 FPS
17934 frames in 5.0 seconds = 3586.800 FPS
17936 frames in 5.0 seconds = 3587.200 FPS
17923 frames in 5.0 seconds = 3584.600 FPS
17971 frames in 5.0 seconds = 3594.200 FPS

fgl_glxgears (output)757 frames in 5.0 seconds = 151.400 FPS
818 frames in 5.0 seconds = 163.600 FPS
818 frames in 5.0 seconds = 163.600 FPS
807 frames in 5.0 seconds = 161.400 FPS
819 frames in 5.0 seconds = 163.800 FPS

I get about 45 FPS in ut2k3

I did all this for Army Ops but i still get error with that

Developer Backtrace:
[ 1] ./armyops-bin [0x846ffd1]
[ 2] /lib/i686/libpthread.so.0 [0x4002ff05]
[ 3] ./armyops-bin [0x42029188]
[ 4] ./armyops-bin(SetShaderBitmap__22FOpenGLRenderInterfaceR25FOpenGLMaterialStateStageP15UBitmapMaterial+0xe8) [0x850ab24]
[ 5] ./armyops-bin(HandleCombinedMaterial__22FOpenGLRenderInterfaceP9UMaterialRiT2G19FOpenGLModifierInfoiP7FStringP P9UMaterial+0x603) [0x850b313]
[ 6] ./armyops-bin(SetSimpleMaterial__22FOpenGLRenderInterfaceP9UMaterialG19FOpenGLModifierInfoP7FStringPP9UMateria l+0x12a) [0x851181e]
[ 7] ./armyops-bin(SetMaterial__22FOpenGLRenderInterfaceP9UMaterialP7FStringPP9UMaterialPi+0x6ab) [0x8503f37]
[ 8] ./armyops-bin(Render__12FBspDrawListP15FLevelSceneNodeP16FRenderInterface+0x394) [0x83e9890]
[ 9] ./armyops-bin(RenderLevel__FP15FLevelSceneNodeP16FRenderInterface+0x22dc) [0x8241970]
[10] ./armyops-bin(Render__15FLevelSceneNodeP16FRenderInterface+0x835) [0x8226785]
[11] ./armyops-bin(Render__16FPlayerSceneNodeP16FRenderInterface+0x378) [0x822aa3c]
[12] ./armyops-bin(Draw__11UGameEngineP9UViewportiPUcPi+0x7dc) [0x8171d88]
[13] ./armyops-bin(Repaint__12USDLViewporti+0x27) [0x84faa9f]
[14] ./armyops-bin(Tick__10USDLClient+0x79) [0x84f85d5]
[15] ./armyops-bin(Tick__11UGameEnginef+0x261d) [0x8176ffd]
[16] ./armyops-bin(SDL_SetVideoMode+0x851) [0x810541d]
[17] ./armyops-bin(main+0x57a7) [0x810e8c7]
[18] ./armyops-bin(__libc_start_main+0x95) [0x42017589]
[19] ./armyops-bin(SDL_SetVideoMode+0xe5) [0x8104cb1]
Signal: SIGSEGV [segmentation fault]
Aborting.

Any ways Hope this helps out those having trouble with ATI Quality drivers

Last edited by init; 10-27-2003 at 02:26 PM.
 
Old 10-27-2003, 07:54 AM   #2
grassapa
Member
 
Registered: Sep 2003
Posts: 41

Rep: Reputation: 15
hey, you seem to know a lot about ati drivers. do you know what i can do about my ati radeon 9600 pro mobility(laptop) driver? i cant find anything anywhere.

thanks
 
Old 10-27-2003, 02:31 PM   #3
init
Member
 
Registered: Oct 2003
Location: Portland, Maine
Distribution: Gentoo 2004_2 2.6.7r14
Posts: 160

Original Poster
Rep: Reputation: 30
I would down load the drivers for the 9600 card from ATI's site.. Try following my HOW-TO.. Im not to sure about laptop drivers if they make em or not I will poke around and see what I can find for you.
 
Old 03-24-2004, 10:51 AM   #4
jakommo
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Rep: Reputation: 0
Thumbs up Thanks to init

Over months I was trying to get my radeon 9500 to work on SuSE 9.0 with 3D Support. I have tried several howtos before, it always failed because of the incompatibility of the external agp-module and the via kt 400 chipset.
After using your howto my 3D Support is running.
Thank you so much for your help.
 
Old 04-15-2004, 07:15 AM   #5
init
Member
 
Registered: Oct 2003
Location: Portland, Maine
Distribution: Gentoo 2004_2 2.6.7r14
Posts: 160

Original Poster
Rep: Reputation: 30
*pats his own back*

Sweet 1000 some odd views and it finally worked for someone.
Glad it helped man.
 
Old 04-23-2004, 10:19 AM   #6
IffikaS
Member
 
Registered: Sep 2003
Location: ESTONIA -Tallinn
Distribution: Ubuntu
Posts: 36

Rep: Reputation: 15
but still i dont get my americas army work with ATI RADEON 9000 pro II :S

error is like this -

Couldn't set video mode: Couldn't find matching GLX visual


History:

Exiting due to error
 
Old 04-23-2004, 10:29 AM   #7
init
Member
 
Registered: Oct 2003
Location: Portland, Maine
Distribution: Gentoo 2004_2 2.6.7r14
Posts: 160

Original Poster
Rep: Reputation: 30
can you run "fgl_glxgears" it sounds as if you video card is not installed correctly.

If you can run fgl_glxgears what is your fps?

Americas Army wound not work for me untill V2.0
 
Old 04-23-2004, 01:08 PM   #8
IffikaS
Member
 
Registered: Sep 2003
Location: ESTONIA -Tallinn
Distribution: Ubuntu
Posts: 36

Rep: Reputation: 15
Quote:
Originally posted by init
can you run "fgl_glxgears" it sounds as if you video card is not installed correctly.

If you can run fgl_glxgears what is your fps?

Americas Army wound not work for me untill V2.0
fgl_glxgears - gives me error

Error: couldn't get fbconfig

aao version is 2.0.0a

glxinfo:

name of display: :0.0
display: :0 screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: ATI
client glx version string: 1.3
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context,
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_ATI_pixel_format_float,
GLX_ATI_render_texture
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.3 Mesa 4.0.4
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_border_clamp,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_blend_color,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_texture_env_add,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
GL_EXT_texture_lod_bias
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x23 24 tc 1 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 1 0 None
0x24 24 tc 1 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 1 0 None
0x25 24 tc 1 24 0 r y . 8 8 8 8 0 16 8 16 16 16 16 1 0 None
0x26 24 tc 1 24 0 r . . 8 8 8 8 0 16 8 16 16 16 16 1 0 None
0x27 24 dc 1 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 1 0 None
0x28 24 dc 1 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 1 0 None
0x29 24 dc 1 24 0 r y . 8 8 8 8 0 16 8 16 16 16 16 1 0 None
0x2a 24 dc 1 24 0 r . . 8 8 8 8 0 16 8 16 16 16 16 1 0 None

fglrxinfo:

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

glxgears:

802 frames in 5.0 seconds = 160.400 FPS
794 frames in 5.0 seconds = 158.800 FPS
795 frames in 5.0 seconds = 159.000 FPS
794 frames in 5.0 seconds = 158.800 FPS
795 frames in 5.0 seconds = 159.000 FPS
794 frames in 5.0 seconds = 158.800 FPS

help

Last edited by IffikaS; 04-23-2004 at 01:18 PM.
 
Old 04-23-2004, 01:31 PM   #9
feend
Member
 
Registered: Nov 2003
Location: williamsburgland
Distribution: Slackware
Posts: 61

Rep: Reputation: 15
Check out the rage3d linux forum for loads of ATI Linux driver help.
 
Old 04-23-2004, 01:33 PM   #10
IffikaS
Member
 
Registered: Sep 2003
Location: ESTONIA -Tallinn
Distribution: Ubuntu
Posts: 36

Rep: Reputation: 15
Quote:
Originally posted by feend
Check out the rage3d linux forum for loads of ATI Linux driver help.

hey i have ati radeon - so why i should check rage :S btw i have compiled radeon module in my kernel
 
Old 04-23-2004, 01:47 PM   #11
feend
Member
 
Registered: Nov 2003
Location: williamsburgland
Distribution: Slackware
Posts: 61

Rep: Reputation: 15
http://www.rage3d.com/content/articles/atilinuxhowto/
If you have a newer radeon card and want 3d accel.
The how to is good. I have just replaced my radeon 9700 w/ a NV card, much nicer.
The best FPS will be had w/ the 3.2.8 drivers. The latest version and easyest to install on newer (2.6.0 kernels) would be the 3.7.6 ATI drivers.
L8tr
Feend
 
Old 04-23-2004, 03:18 PM   #12
IffikaS
Member
 
Registered: Sep 2003
Location: ESTONIA -Tallinn
Distribution: Ubuntu
Posts: 36

Rep: Reputation: 15
still - i DID EVRYTHING like it said - but same error :S
 
Old 04-23-2004, 06:06 PM   #13
feend
Member
 
Registered: Nov 2003
Location: williamsburgland
Distribution: Slackware
Posts: 61

Rep: Reputation: 15
OK lets start at the begining.
Down load the ATI driver that matches your version of X. (4.3 for Slackware 9.1.)
Use rpm2tgz to get the tgz.
Use pkgtool to get the tgz to install.
cd to /lib/modules/fglrx/build_mod
sh make.sh
cd to /lib/modules/fglrx
sh make_install.sh
run fglrxconfig
save the new XF86Config-4.
since X 4.3 looks at /etc/X11/XF86Config THEN looks at XF86Config-4 we should link or rename XF86Config.
restart X.
Let me know how far you have gotten and the errors that stopped ya.
L8tr
Feend

EDIT: PLease list your kernel version, CPU and motherboard chipset w/ your errors. some setups need patches...

Last edited by feend; 04-23-2004 at 06:07 PM.
 
Old 04-24-2004, 05:29 AM   #14
IffikaS
Member
 
Registered: Sep 2003
Location: ESTONIA -Tallinn
Distribution: Ubuntu
Posts: 36

Rep: Reputation: 15
Quote:
Originally posted by feend
OK lets start at the begining.
Down load the ATI driver that matches your version of X. (4.3 for Slackware 9.1.)
Use rpm2tgz to get the tgz.
Use pkgtool to get the tgz to install.
cd to /lib/modules/fglrx/build_mod
sh make.sh
cd to /lib/modules/fglrx
sh make_install.sh <- ERROR
run fglrxconfig
save the new XF86Config-4.
since X 4.3 looks at /etc/X11/XF86Config THEN looks at XF86Config-4 we should link or rename XF86Config.
restart X.
Let me know how far you have gotten and the errors that stopped ya.
L8tr
Feend

EDIT: PLease list your kernel version, CPU and motherboard chipset w/ your errors. some setups need patches...
error looks like this:

bash-2.05b# cd /lib/modules/fglrx/build_mod
bash-2.05b# sh make.sh
ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
skipping patch for 'drmP.h', not needed
skipping patch for 'drm_os_linux.h', not needed
assuming new VMA API since we do have kernel 2.6.x...
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.5/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modu les
make[1]: Entering directory `/usr/src/linux-2.6.5'
*** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
make[2]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/asm-i386/asm_offsets.h
CC [M] /lib/modules/fglrx/build_mod/2.6.x/agp3.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/nvidia-agp.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/agpgart_be.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/i7505-agp.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2246: warning: initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2264: warning: initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2271: warning: initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2278: warning: initialization from incompatible pointer type
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2287: warning: initialization from incompatible pointer type
LD [M] /lib/modules/fglrx/build_mod/2.6.x/fglrx.o
Building modules, stage 2.
MODPOST
CC /lib/modules/fglrx/build_mod/2.6.x/fglrx.mod.o
LD [M] /lib/modules/fglrx/build_mod/2.6.x/fglrx.ko
make[1]: Leaving directory `/usr/src/linux-2.6.5'
build succeeded with return value 0
duplicating results into driver repository...
done.
==============================
You must change your working directory to /lib/modules/fglrx
and then call ./make_install.sh in order to install the built module.
==============================
bash-2.05b# cd /lib/modules/fglrx
bash-2.05b# 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.5/kernel/drivers/char/drm/fglrx.ko): Operation not permitted
failed.
bash-2.05b#


what to do ? im root so dunno why its permitted
 
Old 04-24-2004, 08:31 AM   #15
init
Member
 
Registered: Oct 2003
Location: Portland, Maine
Distribution: Gentoo 2004_2 2.6.7r14
Posts: 160

Original Poster
Rep: Reputation: 30
do you have loadable module support built into your kernel ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
A little success, and a lesson (ATI, Radeon fb) mimithebrain LinuxQuestions.org Member Success Stories 2 11-11-2005 06:11 PM
ATI Radeon 9800XT... Success! svinka Linux - Hardware 2 07-20-2005 09:11 AM
ATI Success stories xanas3712 Linux - Newbie 5 09-20-2004 12:57 PM
Any success with hw accel on ATI Radeon 7000?? emcoder Linux - Hardware 0 06-21-2004 12:42 AM
SiS655 chipset and ATI drivers - Success anyone? Rav Linux - Hardware 1 09-06-2003 07:19 PM


All times are GMT -5. The time now is 07:59 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration