how to build and install ATI driver for Fedora Core 4
-----------------------------------------------------
One ATI X600 SE PCI Express video card.
+ download driver from ATI and install it:
[root@raider bin]# ls -al ati-driver-installer-8.16.20-x86_64.run
-rw-r--r-- 1 root root 51724162 Aug 17 20:50 ati-driver-installer-8.16.20-x86_64.run
+ build fglrx module:
[root@raider fglrx]# pwd
/usr/share/fglrx
[root@raider fglrx]# ls -al
total 68
drwxr-xr-x 2 root root 4096 Sep 15 00:11 .
drwxr-xr-x 235 root root 12288 Sep 18 23:08 ..
-rw-r--r-- 1 root root 229 Sep 15 00:11 cp.list
-rw-r--r-- 1 root root 2531 Sep 15 00:11 drv.list
-rw-r--r-- 1 root root 229 Sep 15 00:11 fglrx-install.log
-r-xr-xr-x 1 root root 2839 Sep 15 00:11 fglrx-uninstall.sh
-rw-r--r-- 1 root root 777 Sep 15 00:11 km.list
-rwxr--r-- 1 root root 1959 Sep 15 00:11 postun_cp.sh
-rwxr--r-- 1 root root 5643 Sep 15 00:11 postun_drv.sh
-rwxr--r-- 1 root root 1675 Sep 15 00:11 postun_km.sh
-rwxr--r-- 1 root root 1500 Sep 15 00:11 postun_rn.sh
-rwxr--r-- 1 root root 1462 Sep 15 00:11 preun_km.sh
-rw-r--r-- 1 root root 1061 Sep 15 00:11 rn.list
[root@raider build_mod]# pwd
/lib/modules/fglrx/build_mod
[root@raider build_mod]# ls -al
total 1504
drwxr-xr-x 4 root root 4096 Sep 15 00:15 .
drwxr-xr-x 3 root root 4096 Sep 15 00:15 ..
drwxr-xr-x 3 root root 4096 Sep 15 00:15 2.6.x
-rw-r--r-- 1 root root 20888 Sep 15 00:11 agp3.c
-rw-r--r-- 1 root root 10837 Sep 15 00:11 agp_backend.h
-rw-r--r-- 1 root root 232434 Sep 15 00:11 agpgart_be.c
-rw-r--r-- 1 root root 7251 Sep 15 00:11 agpgart.h
-rw-r--r-- 1 root root 42109 Sep 15 00:11 agp.h
-rw-r--r-- 1 root root 4363 Sep 15 00:11 drm_compat.h
-rw-r--r-- 1 root root 20613 Sep 15 00:11 drm.h
-rw-r--r-- 1 root root 4803 Sep 15 00:11 drm_os_linux.h
-rw-r--r-- 1 root root 32526 Sep 15 00:11 drmP.h
-rw-r--r-- 1 root root 15405 Sep 15 00:11 drm_proc.h
lrwxrwxrwx 1 root root 14 Sep 15 00:15 fglrx.ko -> 2.6.x/fglrx.ko
-rw-r--r-- 1 root root 106713 Sep 15 00:14 firegl_public.c
-rw-r--r-- 1 root root 106711 Sep 15 00:11 firegl_public.c.orig
-rw-r--r-- 1 root root 33663 Sep 15 00:11 firegl_public.h
-rw-r--r-- 1 root root 5361 Sep 15 00:11 i7505-agp.c
lrwxrwxrwx 1 root root 20 Sep 15 00:15 libfglrx_ip.a -> ./libfglrx_ip.a.GCC4
-rw-r--r-- 1 root root 379716 Sep 15 00:11 libfglrx_ip.a.GCC3
-rw-r--r-- 1 root root 379716 Sep 15 00:11 libfglrx_ip.a.GCC4
-rwxr-xr-x 1 root root 33628 Sep 15 00:11 make.sh
-rw-r--r-- 1 root root 5517 Sep 15 00:15 make.sh.log
-rw-r--r-- 1 root root 14360 Sep 15 00:11 nvidia-agp.c
drwxr-xr-x 3 root root 4096 Sep 15 00:15 patch
[root@raider build_mod]# diff -ru firegl_public.c firegl_public.c.orig
--- firegl_public.c 2005-09-15 00:14:57.000000000 +1000
+++ firegl_public.c.orig 2005-09-15 00:11:43.000000000 +1000
@@ -121,7 +121,7 @@
#endif
#ifdef __x86_64__
-#include "linux/ioctl32.h"
+#include "asm/ioctl32.h"
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,2)
#include "linux/syscalls.h"
#endif
[root@raider build_mod]# ./make.sh
ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
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.12-1.1447_FC4/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/kernels/2.6.12-1.1447_FC4-x86_64'
Building modules, stage 2.
MODPOST
Warning: could not find /lib/modules/fglrx/build_mod/2.6.x/.libfglrx_ip.a.GCC4.cmd for /lib/modules/fglrx/build_mod/2.6.x/libfglrx_ip.a.GCC4
make[1]: Leaving directory `/usr/src/kernels/2.6.12-1.1447_FC4-x86_64'
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.
==============================
[root@raider build_mod]# uname -a
Linux raider 2.6.12-1.1447_FC4 #1 Fri Aug 26 20:35:25 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux
[root@raider build_mod]# ls -al /mnt/lib/modules/2.6.12-1.1447_FC4/kernel/drivers/char/drm/fglrx.ko
-rw-r--r-- 1 root root 907193 Sep 14 20:46 /mnt/lib/modules/2.6.12-1.1447_FC4/kernel/drivers/char/drm/fglrx.ko
[root@raider X11]# pwd
/etc/X11
[root@raider X11]# less xorg.conf
...
Modes "1600x1200" "1280x1024" "1024x768" "800x600"
...
Modes must in this format. When I put
Modes "1600x1200"
X Window started, but it crashes immediately while you click mouse and type a key.
[root@raider X11]# lsmod
Module Size Used by
...
fglrx 295184 7
...
|