Jack Howarth a écrit :
Are there any patches available yet to allow the kernel modules from the ATI non-free drivers (fglrx-4.3.0-3.14.1.i386.rpm) to be built on current Fedora Core 2? Thanks in advance for any information. Jack ps The site where I found the fc2 patches for the fglrx drivers doesn't have anything newer than patches for fglrx-4.3.0-3.9.0.
Visit : http://www.stanford.edu/~fenn/linux/
You'll find a patch for lastest version.
Remi.
Ooooups. http://www.stanford.edu/~fenn/linux/fglrx-3.14.1-fc2.patch
Or (i post here the one as use as it is very small)
diff -Nru build_mod.orig/2.6.x/Makefile build_mod/2.6.x/Makefile --- build_mod.orig/2.6.x/Makefile 2004-08-05 23:06:07.709571464 +0200 +++ build_mod/2.6.x/Makefile 2004-08-05 23:06:35.673320328 +0200 @@ -11,7 +11,7 @@ endif
EXTRA_CFLAGS += \ - -Idrivers/char/drm/ \ + -I$(DRMINCLUDES) \ -D__AGP__ \ -DFGL \ -DFGL_LINUX \ diff -Nru build_mod.orig/make.sh build_mod/make.sh --- build_mod.orig/make.sh 2004-08-05 23:06:07.708571616 +0200 +++ build_mod/make.sh 2004-08-05 23:06:37.253080168 +0200 @@ -180,6 +180,11 @@ drmincludes=${linuxincludes}/../drivers/char/drm #drmincludes=/usr/local/src/dripkg/drm
+# Fedora Core 2 work around +if [ ! -e "/usr/src/linux" ] && [ -d "/usr/src/linux-${uname_r}" ]; then + drmincludes=/usr/src/linux-${uname_r}/drivers/char/drm +fi + # since kernel 2.4.8 the X4.1.0 drm kernel module headers are part # of the kernel build environment - check dir and expected files.
@@ -993,7 +998,7 @@
if [ $kernel_is_26x -gt 0 ]; then
echo "doing Makefile based build for kernel 2.6.x and higher" | tee -a $logfile
cd 2.6.x
- make PAGE_ATTR_FIX=$PAGE_ATTR_FIX 2>&1 | tee -a $logfile
+ make PAGE_ATTR_FIX=$PAGE_ATTR_FIX DRMINCLUDES=$drmincludes 2>&1 | tee -a $logfile
res=$?
cd ..
if [ $res -eq 0 ]; then