Driver fglrx on kernel 2.6.28.7

Sekcia: Hardware a Drivery 31.03.2009 | 00:27
Avatar johnny.ha ArchLinux  Používateľ
Nazdar ludia, chcel by som sa spitat, ci nieco musi byt skompilovane v kernely pri instalacii fglrx. mam taky problem ze som si robil kernel pre book, na mieru siti, ale potom sa mi neda skompilovat fglrx driver. mali by ste riesenie????
    • Re: Driver fglrx on kernel 2.6.28.7 31.03.2009 | 05:49
      Avatar asi Gentoo  Používateľ
      Device drivers --->
      Graphics support --->
      <M> /dev/agpgart (AGP Support) --->
      Modul k tvojmu AGP
      <M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
      <M> (Select your graphics card from the list)
      Ostatne by si maly rozbehat zavislosti
    • Re: Driver fglrx on kernel 2.6.28.7 31.03.2009 | 09:59
      peto   Návštevník
      System Requirements
      Before attempting to install the ATI Catalyst™ Linux software suite, the following
      software must be installed:
      XOrg 6.8, 6.9, 7.0, 7.1, 7.2, 7.3 or 7.4
      Linux kernel 2.6 or above
      glibc version 2.2 or 2.3
      POSIX Shared Memory (/dev/shm) support is required for 3D applications

      The ATI Catalyst™ Linux software suite no longer provides precompiled Kernel
      Modules; all installations require GCC compiler and kernel-headers or kernel-source in
      order to enable 2D and 3D acceleration.

      For best performance and ease of use, ATI recommends the following:
      Kernel module build environment
      o Kernel source code include either the Kernel Source or Kernel Headers packages
      The RPM utility should be installed and configured correctly on your system, if you
      intend to install via RPM packages

      The following packages must be installed in order for the Catalyst™ Linux driver to
      install and work properly:
      XFree86-Mesa-libGL
      libstdc++
      libgcc
      XFree86-libs
      fontconfig
      freetype
      zlib
      gcc
      https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/catalyst_93_linux.pdf

      povedal si, ze z tohotpo mas urcite len kernel source

      zlib XFree86-libs XFree86-Mesa-libGL nie su vzdy v default instalacii a nemas nahodou novy X.org 7.5 (napr. Ubuntu 9.04 beta)?


    • Re: Driver fglrx on kernel 2.6.28.7 31.03.2009 | 12:14
      Avatar johnny.ha ArchLinux  Používateľ
      davam log subor

      [Message] Kernel Module : Trying to install a precompiled kernel module.
      [Message] Kernel Module : Precompiled kernel module version mismatched.
      [Message] Kernel Module : Found kernel module build environment, generating kernel module now.
      AMD kernel module generator version 2.1
      doing Makefile based build for kernel 2.6.x and higher
      rm -rf *.c *.h *.o *.ko *.GCC* .??* *.symvers
      make -C /lib/modules/2.6.29/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
      make[1]: Entering directory `/usr/src/linux-2.6.29'
      CC [M] /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
      In file included from /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:169:
      /lib/modules/fglrx/build_mod/2.6.x/firegl_public.h:164:1: warning: "PM_EVENT_SUSPEND" redefined
      In file included from /usr/src/linux-2.6.29/arch/x86/include/asm/apic.h:4,
      from /usr/src/linux-2.6.29/arch/x86/include/asm/smp.h:13,
      from include/linux/smp.h:36,
      from include/linux/topology.h:33,
      from include/linux/mmzone.h:767,
      from include/linux/gfp.h:4,
      from include/linux/kmod.h:22,
      from include/linux/module.h:13,
      from /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:91:
      include/linux/pm.h:241:1: warning: this is the location of the previous definition
      /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_GetEffectiveUid’:
      /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1405: error: ‘struct task_struct’ has no member named ‘euid’
      /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_PosixSecurityCapSetIPCLock’:
      /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1779: error: ‘struct task_struct’ has no member named ‘cap_effective’
      /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1783: error: ‘struct task_struct’ has no member named ‘cap_effective’
      /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_MEM_VM_GetRegionPhysAddrStr’:
      /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3223: warning: return makes pointer from integer without a cast
      /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3224: warning: return makes pointer from integer without a cast
      /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3225: warning: return makes pointer from integer without a cast
      /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3227: warning: return makes pointer from integer without a cast
      make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
      make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2
      make[1]: Leaving directory `/usr/src/linux-2.6.29'
      make: *** [kmod_build] Error 2
      build failed with return value 2
      [Error] Kernel Module : Failed to compile kernel module - please consult readme.
      • Re: Driver fglrx on kernel 2.6.28.7 31.03.2009 | 23:29
        peto   Návštevník
        Toto urcite nie je chyba Catalystov. systemova struktura opisu procesu nema efektivne userID to znamena, ze nema vyznam suid bit na disku. To by ma zaujimalo, ako si tak nakonfiguroval kernel...
    • Re: Driver fglrx on kernel 2.6.28.7 31.03.2009 | 12:23
      Avatar johnny.ha ArchLinux  Používateľ
      A mam spraveny monolitický kernel. Ziadne moduly, vsetko v jadre.
    • Re: Driver fglrx on kernel 2.6.28.7 31.03.2009 | 21:04
      Avatar asi Gentoo  Používateľ
      Mas splnene zavislosti v 32 aj 64 bitoch? Ak mas 64bit tak driver potrebuje vacsinu balikov v oboch, pri tom v zavislostiach si skontroluje ci ten balik existuje ale nie architektury... V jadre musis mat podporu 32 bytovej architektury myslim tiez... Inak ti vygeneruje balik ktory ti nebude vediet nainstalovat.
      • Re: Driver fglrx on kernel 2.6.28.7 31.03.2009 | 22:51
        Avatar johnny.ha ArchLinux  Používateľ
        Zavisi to od toho ako skompilujem kernel, hej???
        • Re: Driver fglrx on kernel 2.6.28.7 31.03.2009 | 23:06
          Avatar asi Gentoo  Používateľ
          Viacero balikov sa kompiluje do jadra na ktore ma /usr/src/linux link takze po kompilacii jadra ich musis pre-instalovat.
          Takisto an, je myslim v jadre nastavenie
          Executable file formats / Emulations
          * IA32 Emulation
          *IA32 a.out support
          Ale skor by som sa zameral na preinstalaciu balikov k novemu jadru
    • Re: Driver fglrx on kernel 2.6.28.7 01.04.2009 | 01:18
      Avatar johnny.ha ArchLinux  Používateľ
      Novy log. poradte,

      [Message] Kernel Module : Trying to install a precompiled kernel module.
      [Message] Kernel Module : Precompiled kernel module version mismatched.
      [Message] Kernel Module : Found kernel module build environment, generating kernel module now.
      AMD kernel module generator version 2.1
      doing Makefile based build for kernel 2.6.x and higher
      rm -rf *.c *.h *.o *.ko *.GCC* .??* *.symvers
      make -C /lib/modules/2.6.28.7/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
      make[1]: Entering directory `/usr/src/linux-2.6.28.7'
      CC [M] /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
      In file included from /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:169:
      /lib/modules/fglrx/build_mod/2.6.x/firegl_public.h:164:1: warning: "PM_EVENT_SUSPEND" redefined
      In file included from /usr/src/linux-2.6.28.7/arch/x86/include/asm/apic.h:4,
      from /usr/src/linux-2.6.28.7/arch/x86/include/asm/smp.h:13,
      from include/linux/smp.h:30,
      from include/linux/topology.h:33,
      from include/linux/mmzone.h:763,
      from include/linux/gfp.h:4,
      from include/linux/kmod.h:22,
      from include/linux/module.h:13,
      from /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:91:
      include/linux/pm.h:267:1: warning: this is the location of the previous definition
      /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_MEM_VM_GetRegionPhysAddrStr’:
      /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3223: warning: return makes pointer from integer without a cast
      /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3224: warning: return makes pointer from integer without a cast
      /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3225: warning: return makes pointer from integer without a cast
      /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3227: warning: return makes pointer from integer without a cast
      CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o
      CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o
      CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o
      CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o
      CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_io.o
      CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_pci.o
      CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_str.o
      CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_wait.o
      LD [M] /lib/modules/fglrx/build_mod/2.6.x/fglrx.o
      Building modules, stage 2.
      MODPOST 1 modules
      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.28.7'
      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.
      - recreating module dependency list
      - trying a sample load of the kernel modules
      failed.
      [Error] Kernel Module : Failed to install compiled kernel module - please consult readme.
      • Re: Driver fglrx on kernel 2.6.28.7 02.04.2009 | 11:49
        peto   Návštevník
        >build succeeded with return value 0

        Kompilacia je 100%

        >duplicating results into driver repository...
        >done.
        toto je tiez OK
        >You must change your working directory to /lib/modules/fglrx
        >and then call ./make_install.sh in order to install the built module.

        takze zadat treba
        cd /lib/modules/fglrx<Enter>
        ./make_install.sh <Enter>

        a malo by byt vsteko v poriadku

        • Re: Driver fglrx on kernel 2.6.28.7 03.04.2009 | 01:05
          Avatar johnny.ha ArchLinux  Používateľ
          no ked dam ./make_install.sh skonci to s hlaskou:

          [fglrx:firegl_init_module] *ERROR* firegl_stub_register failed
          FATAL: ERROR inserting fglrx (/lib/modules/2.6.28.7/kernel/drivers/char/drm/fglrx.ko) Operation not permitted
          • Re: Driver fglrx on kernel 2.6.28.7 03.04.2009 | 07:26
            Avatar asi Gentoo  Používateľ
            To s tym vojdi dnu bol vtip.
            Dufam
            TO s tym dokoncenim instalacii je pre pripad ze vyriesis problem.
            Keby stacilo spustit jeden subor, instalator by si ho spustil sam.
            Este stale si my neodpovedal, co mas za architekturu?
          • Re: Driver fglrx on kernel 2.6.28.7 03.04.2009 | 10:03
            peto   Návštevník
            >fglrx:firegl_init_module] *ERROR* firegl_stub_register failed
            >FATAL: ERROR inserting fglrx (/lib/modules/2.6.28.7/kernel/drivers/char/drm/fglrx.ko) Operation not permitted

            v tom pripade mam podozrenie, ze ked
            napsies

            whoami <enter>

            nevypise to

            root

            t.j. nie si prihlasny ako administrator

            este kolegovi, ktory chcel vediet architekturu
            posli vypis
            uname -a <enter>
            • Re: Driver fglrx on kernel 2.6.28.7 03.04.2009 | 11:47
              Avatar johnny.ha ArchLinux  Používateľ
              uname -r : 2.6.28.7
              architektura i386
              • Re: Driver fglrx on kernel 2.6.28.7 03.04.2009 | 21:54
                peto   Návštevník
                a ten
                whoami <enter>
                da co?
                • Re: Driver fglrx on kernel 2.6.28.7 04.04.2009 | 10:43
                  Avatar johnny.ha ArchLinux  Používateľ
                  neboj sa, pri whoami napise root. ja viem ze to treba robit cez roota.
                  • Re: Driver fglrx on kernel 2.6.28.7 06.04.2009 | 10:12
                    peto   Návštevník
                    No len aby

                    >[fglrx:firegl_init_module] *ERROR* firegl_stub_register failed
                    >FATAL: ERROR inserting fglrx (/lib/modules/2.6.28.7/kernel/drivers/char/drm/fglrx.ko) Operation not permitted

                    Lebo tato veta hovori jasne,ze nemas prava na vlozenie modulu

                    este je tu monost, ze starry modul bezi


                    t.j co vypise
                    lsmod<enter>

                    a co

                    ls -la /lib/modules/2.6.28.7/kernel/drivers/char/drm/fglrx.ko <enter>
                    • Re: Driver fglrx on kernel 2.6.28.7 08.04.2009 | 16:25
                      Avatar johnny.ha ArchLinux  Používateľ
                      ako vam mam povedat ze som pod rootom
            • Re: Driver fglrx on kernel 2.6.28.7 03.04.2009 | 12:23
              Avatar johnny.ha ArchLinux  Používateľ
              uname -a

              Linux debian 2.6.28.7 #1 SMP Thu Apr 2 22:23:02 CEST 2009 i686 GNU/Linux
    • Re: Driver fglrx on kernel 2.6.28.7 05.04.2009 | 18:23
      Avatar johnny.ha ArchLinux  Používateľ
      Tak asi nikto nevie odpoved???
      • Re: Driver fglrx on kernel 2.6.28.7 08.04.2009 | 17:47
        Avatar Laco Debian Lenny  Používateľ
        chapem dobre ze si si skompiloval sam jadro? skontroluj ci mas nastavenia v tychto parametroch:
        CONFIG_DRM=m
        CONFIG_DRM_RADEON=m
        • Re: Driver fglrx on kernel 2.6.28.7 08.04.2009 | 17:51
          Avatar Laco Debian Lenny  Používateľ
          som si nevsimol ze mas monoliticky kernel, tak proste tie dva moduly vydrb z kernelu
          • Re: Driver fglrx on kernel 2.6.28.7 16.04.2009 | 11:54
            Avatar johnny.ha ArchLinux  Používateľ
            Tak ani toto nezobralo. Netreba nejak opatchovat kernel na tieto ati ovladace. Mam stiahnuty original zo stranky ati.
            • Re: Driver fglrx on kernel 2.6.28.7 16.04.2009 | 12:01
              Avatar Laco Debian Lenny  Používateľ
              svojho casu som patchoval fglrx, ale to pri starsich jadrach, kazdopadne skus sa kuknut sem:
              http://linuxos.sk/KnowledgeBase_show_entry/158/index.html
              • Re: Driver fglrx on kernel 2.6.28.7 22.04.2009 | 22:51
                Avatar johnny.ha ArchLinux  Používateľ
                Tak stacilo odstranit z kernelu

                CONFIG_DRM=y
                CONFIG_DRM_RADEON=y


                Vsetko slape.

                Len este jedna otazka. 530.280 fps je dobre?????
                • Re: Driver fglrx on kernel 2.6.28.7 22.04.2009 | 23:40
                  Avatar Laco Debian Lenny  Používateľ
                  no ved som ti vravel, to '=m' som tam pisal lebo som si nevsimol ze mas monoliticky kernel, no hned potom som sa opravil:) ale fasa ze ti to ide :)