[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch for fglrx-kernel-src 8.16.20-1 to run under linux kernel 2.6.14



Hello everybody,

I've written a simple patch for fglrx-kernel-src 8.16.20-1 to load fglrx.ko under linux kernel 2.6.14.
You can find some compareable patches on the web, also the information what to do. Without these information, I woudn't have been able to do this.

I'm just posting this patch because I haven't found anything about this on flavio's website and this list.

But now here's, a description what's the problem:

situation: kernel 2.6.14 and fglrx-kernel-src 8.16.20-1

# modprobe fglrx
FATAL: Error inserting fglrx (/lib/modules/2.6.14-r51/kernel/drivers/char/drm/fglrx.ko): Unknown symbol in module, or unknown parameter (see dmesg)

# dmesg | grep fglrx
fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
fglrx: Unknown symbol verify_area

the function verify_area() was removed from kernel 2.6.14 and replaced by access_ok(). the older function is used by the files firegl_public.c and drm_os_linux.h of the fglrx-kernel-src, so you had to replace them, too.
also in firegl_public.c the include object ioctl32.h has to be included from $INCLUDE_PATH/linux (not from $INCLUDE_PATH/asm) to have the functions register_ioctl32_conversion() and unregister_ioctl32_conversion(), which were also removed or moved.

(sorry for that bad description :D)

This patch works for me. Perhaps it's usefull for somebody.

Greets, Chris Mager.