Here's how I got the rpms to build for Fedora 10.
Note that the rpm fails to run aticonfig --initial. You have to create /etx/X11/xorg.conf yourself. Here's mine:
Also note that no local files are overwritten. All fglrx specific libraries isolated in /usr/lib/fglrx and an fglrx-x86.conf entry is added to /etc/ls.so.conf.d.
If you want to switch back to Open Source rendering you do not have uninstall the packages, all you have to remove that entry or to comment the first line in that file (#).
You also need to run ldconfig as root after that, and of course you have to switch /etc/X11/xorg.conf back.
- Extract the driver:
ati-driver-installer-9-1-x86.x86_64.run --extract ati
This extract the files into a diretory called ati - Apply my diff (this just adds the F10 target, fixes up the spec file, and fixes an infinite loop in the build script):
Code:diff -ur orig/common/lib/modules/fglrx/build_mod/make.sh ati/common/lib/modules/fglrx/build_mod/make.sh --- orig/common/lib/modules/fglrx/build_mod/make.sh 2009-01-23 14:00:26.000000000 -0800 +++ ati/common/lib/modules/fglrx/build_mod/make.sh 2009-01-29 15:55:09.000000000 -0800 @@ -122,6 +122,9 @@ fi shift ;; + verbose) + shift + ;; esac done diff -ur orig/packages/Fedora/ATI-fglrx.spec-tmpl ati/packages/Fedora/ATI-fglrx.spec-tmpl --- orig/packages/Fedora/ATI-fglrx.spec-tmpl 2009-01-23 14:00:28.000000000 -0800 +++ ati/packages/Fedora/ATI-fglrx.spec-tmpl 2009-01-29 15:56:32.000000000 -0800 @@ -277,7 +277,6 @@ %{_sbindir}/atigetsysteminfo %{_bindir}/amdupdaterandrconfig %{_bindir}/amdxdg-su -%{_bindir}/amdxdg-su %{_bindir}/aticonfig %{_bindir}/atiodcli %{_bindir}/atiode @@ -291,6 +290,7 @@ @X11_MODULE_DIR@/glesx.so @X11_MODULE_DIR@/amdxmm.so %{_libdir}/fglrx/*.cap +%{_libdir}/libamdcal* %{_libdir}/fglrx/*.so* %{_libdir}/fglrx/*.cap %{_mandir}/man[1-9]/atieventsd.* diff -ur orig/packages/Fedora/ati-packager.sh ati/packages/Fedora/ati-packager.sh --- orig/packages/Fedora/ati-packager.sh 2009-01-23 14:00:28.000000000 -0800 +++ ati/packages/Fedora/ati-packager.sh 2009-01-29 15:52:27.000000000 -0800 @@ -22,7 +22,7 @@ # Purpose: List supported distributions and associated X version get_supported_packages() { - SUPPORTED_DISTROS="FC3 FC4 FC5 FC6 F7 F8 F9 RHEL3 RHEL4" + SUPPORTED_DISTROS="FC3 FC4 FC5 FC6 F7 F8 F9 F10 RHEL3 RHEL4" for distros in ${SUPPORTED_DISTROS}; do echo "${distros}" @@ -66,6 +66,7 @@ FC5) X11_RELEASE='x700';; FC6) X11_RELEASE='x710';; F7|F8|F9) X11_RELEASE='x710';; + F10) X11_RELEASE='x740';; esac # Detect the target architecture @@ -225,7 +226,7 @@ ICD_PATH_BUG="" ICD_PATH_BUG_32="" ;; - FC5|FC6|F7|F8|F9) + FC5|FC6|F7|F8|F9|F10) DRI_MODULE_DIR="%{_libdir}/dri" X11_MODULE_DIR="%{_libdir}/xorg/modules" X11_INCLUDE_DIR="%{_includedir}" @@ -236,7 +237,7 @@ # Lower the case of the distribution release tag case "${distro_name}" in - FC3|FC4|FC5|FC6|F7|F8|F9) RH_RELEASE_TAG="$(echo ${distro_name}|tr A-Z a-z)";; + FC3|FC4|FC5|FC6|F7|F8|F9|F10) RH_RELEASE_TAG="$(echo ${distro_name}|tr A-Z a-z)";; RHEL3|RHEL4) RH_RELEASE_TAG="$(echo ${distro_name}|tr A-Z a-z|cut -c 3-)";; esac
- Copy libdrm.so.2.3.0 of Fedora 9 to ati/arch/x86/usr/X11R6/lib
Download libdrm-2.4.0-0.13.fc9.i386.rpm from either convert the rpm to a cpio file and extract libdrm.so.2.3.0 from there, or run
rpm -i -r /tmp/x --nodeps libdrm-2.4.0-0.13.fc9.i386.rpm and get libdrm.so.2.3.0 from /tmp/x/usr/lib. - cd ati; ./ati-installer.sh 9-1 --buildpkg Fedora/F10
- In the parent directory you will find the rpms to install.
Note that the rpm fails to run aticonfig --initial. You have to create /etx/X11/xorg.conf yourself. Here's mine:
Code:
Section "ServerLayout" Identifier "single head" Screen 0 "ScreenFGLRX" 0 0 EndSection Section "ServerFlags" Option "AIGLX" "on" EndSection Section "Monitor" Identifier "LCD" ModelName "LCD Panel 1650x1050" HorizSync 31.5 - 65.5 VertRefresh 56.0 - 65.0 Option "DPMS" "true" EndSection Section "Device" Identifier "FGLRX" Driver "fglrx" Option "VideoOverlay" "on" Option "OpenGLOverlay" "off" Option "UseFastTLS" "on" Option "BlockSignalsOnLock" "off" BusID "PCI:1:0:0" EndSection Section "Screen" Identifier "ScreenFGLRX" Device "FGLRX" Monitor "LCD" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection Section "DRI" Mode 0666 EndSection
If you want to switch back to Open Source rendering you do not have uninstall the packages, all you have to remove that entry or to comment the first line in that file (#).
You also need to run ldconfig as root after that, and of course you have to switch /etc/X11/xorg.conf back.
Comment