Results 1 to 10 of 10

Thread: Can't build fglrx module in kernel 2.6.36

  1. #1
    Join Date
    Nov 2009
    Location
    Santiago, Chile
    Posts
    171

    Question Can't build fglrx module in kernel 2.6.36

    That's it guys. I have successfully installed the proprietary ati drivers in past 6.34 and 6.35 kernels but not in latest .6.36.
    I'm wondering if this have something to do with compatibility or not.

    Installation log shows me some errors I can't recognize:
    Code:
    [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.36-90-desktop/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
    make[1]: se ingresa al directorio `/usr/src/linux-2.6.36-90-obj/i386/desktop'
    make -C ../../../linux-2.6.36-90 O=/usr/src/linux-2.6.36-90-obj/i386/desktop/. modules
      CC [M]  /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:410:5: error: unknown field ‘ioctl’ specified in initializer
    /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:410:5: warning: initialization from incompatible pointer type
    make[4]: *** [/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
    make[3]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2
    make[2]: *** [sub-make] Error 2
    make[1]: *** [all] Error 2
    make[1]: se sale del directorio `/usr/src/linux-2.6.36-90-obj/i386/desktop'
    make: *** [kmod_build] Error 2
    build failed with return value 2
    [Error] Kernel Module : Failed to compile kernel module - please consult readme.
    [Reboot] Kernel Module : mkinitrd
    HP pavilion dv6-6185la - Intel i7 - AMD Radeon 6770M - openSUSE 12.2 - KDE 4.9

  2. #2
    Join Date
    Jun 2008
    Location
    Kansas City Area, Missouri, USA
    Posts
    7,235

    Default Re: Can't build fglrx module in kernel 2.6.36

    ATI seems to be a bit brain-dead when it comes to following kernel ABI changes.

    According to
    http://forums.amd.com/game/messagevi...hreadid=141734, you need
    to download and apply 4 patches from:

    http://www.cosmicencounter.net/mirror/patch/

    ati-drivers-2.6.36.patch
    arch-2.6.36.patch
    ati-drivers-fix_compilation-bug-297322.patch
    sema_init.patch

  3. #3
    Join Date
    Nov 2009
    Location
    Santiago, Chile
    Posts
    171

    Default Re: Can't build fglrx module in kernel 2.6.36

    Quote Originally Posted by lwfinger View Post
    ATI seems to be a bit brain-dead when it comes to following kernel ABI changes.

    According to
    AMD Game Forums - ati-driver-installer-10-10-x86.x86_64.run does not work on linux kernel 2.6.36, you need
    to download and apply 4 patches from:

    Index of /mirror/patch

    ati-drivers-2.6.36.patch
    arch-2.6.36.patch
    ati-drivers-fix_compilation-bug-297322.patch
    sema_init.patch
    Great that seems to work but before I try anything, would you tell me how do I apply these patches? I have seen somewhere that it needs the "patch" command but cannot find it even as root.

    Thanks!
    HP pavilion dv6-6185la - Intel i7 - AMD Radeon 6770M - openSUSE 12.2 - KDE 4.9

  4. #4
    Join Date
    Jun 2008
    Location
    Kansas City Area, Missouri, USA
    Posts
    7,235

    Default Re: Can't build fglrx module in kernel 2.6.36

    On 11/07/2010 12:36 PM, faco84 wrote:
    >
    > lwfinger;2249513 Wrote:
    >> ATI seems to be a bit brain-dead when it comes to following kernel ABI
    >> changes.
    >>
    >> According to
    >> 'AMD Game Forums - ati-driver-installer-10-10-x86.x86_64.run does not
    >> work on linux kernel 2.6.36'
    >> (http://forums.amd.com/game/messagevi...hreadid=141734),
    >> you need
    >> to download and apply 4 patches from:
    >>
    >> 'Index of /mirror/patch' (http://www.cosmicencounter.net/mirror/patch/)
    >>
    >> ati-drivers-2.6.36.patch
    >> arch-2.6.36.patch
    >> ati-drivers-fix_compilation-bug-297322.patch
    >> sema_init.patch

    >
    > Great that seems to work but before I try anything, would you tell me
    > how do I apply these patches? I have seen somewhere that it needs the
    > "patch" command but cannot find it even as root.


    Whenever a command is missing, use the "cnf" command to find what package
    contains it. On my system,

    ~> cnf patch
    Program 'patch' is present in package 'patch'.

    Thus you need to

    sudo zypper patch

  5. #5
    Join Date
    Nov 2009
    Location
    Santiago, Chile
    Posts
    171

    Thumbs up Re: Can't build fglrx module in kernel 2.6.36

    Got it!
    I successfully get the catalyst 10.10 drivers with kernel 2.6.36 - openSUSE 11.3.
    Steps:
    1. extract the .run ati installer:
      Code:
      ./ati-driver-installer-10-10-x86.x86_64.run --extract
    2. This will create a new folder (/fglrx-install.****). Apply all patches to this new folder. It's necessary to specify the sub-directory /common. Execute the following line for each patch and if it can't find the right file try avoiding the /common folder:
      Code:
      patch -p1 -d fglrx-install.zDqZkW/common/ <*.patch
    3. build a new catalyst 10.10 patched package for your current openSUSE version (11.3 32bits in my case):
      Code:
      ./ati-installer.sh --attributes --buildpkg SuSE/SUSE113-IA32
    4. install & reboot

    Module fglrx will be up and running.

    Thanks!
    Last edited by faco84; 07-Nov-2010 at 14:45. Reason: don't forget to say thanks!
    HP pavilion dv6-6185la - Intel i7 - AMD Radeon 6770M - openSUSE 12.2 - KDE 4.9

  6. #6

    Default Re: Can't build fglrx module in kernel 2.6.36

    Did you use the openSuSE vanilla 2.6.36 kernel or the release from kernel.org?

    I'm getting module mismatch on the compile of the kernel from kernel.org.

    Also, are you using:
    xorg 1.9?
    KDE 4.5?

    Thanks!

  7. #7
    Join Date
    Nov 2009
    Location
    Santiago, Chile
    Posts
    171

    Default Re: Can't build fglrx module in kernel 2.6.36

    Quote Originally Posted by lnozot View Post
    Did you use the openSuSE vanilla 2.6.36 kernel or the release from kernel.org?

    I'm getting module mismatch on the compile of the kernel from kernel.org.

    Also, are you using:
    xorg 1.9?
    KDE 4.5?

    Thanks!
    I'm using:
    • 2.6.36-90-desktop (from Kernel HEAD repo)
    • Xorg 1.8
    • KDE 4.5.2


    Make sure you've got all the right packages for current kernel version and hopefully from same source.

    PS: BTW just realized you are asking about compiling and in my case I made a new kernel installation from repositories (multiple kernels). If so I'm not sure if this helps you.
    HP pavilion dv6-6185la - Intel i7 - AMD Radeon 6770M - openSUSE 12.2 - KDE 4.9

  8. #8
    Join Date
    Oct 2008
    Location
    Santiago, Chile
    Posts
    648

    Default Re: Can't build fglrx module in kernel 2.6.36

    Does this apply to catalyst 10.11 aswell?

  9. #9
    Join Date
    Nov 2009
    Location
    Santiago, Chile
    Posts
    171

    Default Re: Can't build fglrx module in kernel 2.6.36

    Quote Originally Posted by assas1n View Post
    Does this apply to catalyst 10.11 aswell?
    Can't yet find the changelog. We have to find if it supports or not the 6.36 kernel. However someone at forosuse.org mention that these patches works also for catalyst 10.11. Guess we have to make the try
    HP pavilion dv6-6185la - Intel i7 - AMD Radeon 6770M - openSUSE 12.2 - KDE 4.9

  10. #10

    Default Re: Can't build fglrx module in kernel 2.6.36

    setp 1,2 and 3 works for me, but the install part doesn't.

    During the fglrx package installation, i got this error massage:

    Specified path '/var/tmp/TmpDir.lsGH4A' is not a directory: dir:///var/tmp/TmpDir.lsGH4A

    failed to install file: Specified path '/var/tmp/TmpDir.YBbYQ1' is not a directory: dir:///var/tmp/TmpDir.YBbYQ1

    I gave the root password when the installer ask it, what shoud i do? Got the same error with both Catalyst 10.10 and 10.12.

    System: OpenSuse 11.3 I386 after installation, just "patch" package installed. Radeon HD5670

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •