Announcement

Collapse
No announcement yet.

Fglrx 9-1 on Fedora 10

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Fglrx 9-1 on Fedora 10

    Here's how I got the rpms to build for Fedora 10.
    1. Extract the driver:
      ati-driver-installer-9-1-x86.x86_64.run --extract ati
      This extract the files into a diretory called ati
    2. 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
    3. 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.
    4. cd ati; ./ati-installer.sh 9-1 --buildpkg Fedora/F10
    5. 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
    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.

  • #2
    9-1 Fglrx RPM build problem Fedora 8 64 bit

    Tried to follow a combination of your advice and hints from another thread on Fedora 64 bit packaging issues. I got past the infinite loop problem, but I am still getting the following error message...

    Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/ATI-fglrx-8.573-1-17691-root/tmp/ATI-fglrx-8.573-1.f8-root-root
    error: Installed (but unpackaged) file(s) found:
    /usr/X11R6/lib/libAMDXvBA.cap
    /usr/X11R6/lib/libatiadlxx.so


    RPM build errors:
    Installed (but unpackaged) file(s) found:
    /usr/X11R6/lib/libAMDXvBA.cap
    /usr/X11R6/lib/libatiadlxx.so

    Would be grateful for any help to get the Fedora 64 bit RPMs built.

    Comment


    • #3
      Originally posted by conchis View Post
      ...
      RPM build errors:
      Installed (but unpackaged) file(s) found:
      /usr/X11R6/lib/libAMDXvBA.cap
      /usr/X11R6/lib/libatiadlxx.so
      These must be extra files that 64 bit build creates...

      You need to add those two files to .../packages/Fedora/ATI-fglrx.spec-tmpl (look at the diff on how I added the other files).

      You might also have to copy libdrm into .../arch/x86_64/usr/X11R6/lib64 (instead of .../arch/x86/usr/X11R6/lib)

      Comment


      • #4
        Originally posted by linuxhansl View Post
        Here's how I got the rpms to build for Fedora 10.
        Thanks for this info - I built the Fedora/F10 rpms without a hitch on my i686 F10 install. DRM isn't working, but it wasn't working before either, so that's not your fault!

        Cheers,
        Toby Haynes

        Comment

        Working...
        X