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:

[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

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

According to
http://forums.amd.com/game/messageview.cfm?catid=279&threadid=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

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!

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/messageview.cfm?catid=279&threadid=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

Got it! :slight_smile:
I successfully get the catalyst 10.10 drivers with kernel 2.6.36 - openSUSE 11.3.
Steps:

  1. extract the .run ati installer:
./ati-driver-installer-10-10-x86.x86_64.run --extract
  1. 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
    :
patch -p1 -d fglrx-install.zDqZkW/common/ <*.patch
  1. build a new catalyst 10.10 patched package for your current openSUSE version (11.3 32bits in my case):
./ati-installer.sh --attributes --buildpkg SuSE/SUSE113-IA32
  1. install & reboot

Module fglrx will be up and running.

Thanks!

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.

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 :stuck_out_tongue:

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