How to install ATI Catalyst 12.3 in Racy 5.3

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
ilewis
Posts: 1
Joined: Fri 20 Apr 2012, 15:21

How to install ATI Catalyst 12.3 in Racy 5.3

#1 Post by ilewis »

Hi all,

I'm sure this solution has probably been posted before, but here is a quick guide for installing ATI Catalyst 12.3 drivers on Puppy Racy 5.3 with Kernel 3.0.25.

Firstly you will need to have the development and Kernel Sources SFS's set up and installed/loaded.

http://ftp.nluug.nl/ftp/pub/os/Linux/di ... cy_5.3.sfs

http://ftp.nluug.nl/ftp/pub/os/Linux/di ... atched.sfs

Next download the ATI Catalyst 12.3 setup from
http://support.amd.com/us/gpudownload/Pages/index.aspx

Execute a "chmod +x" on the Catalyst setup and then perform a DEFAULT installation.

It should install ok, but at the very end when you close the installer, it will show an error.

What has happened here is that the kernel driver has not built properly. Locate the error log "/usr/share/ati/fglrx-install.log", the contents should appear as follows:

Code: Select all

Uninstalling any previously installed drivers.
[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 *.a .??* *.symvers
make -C /lib/modules/3.0.25/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-3.0.25'
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_fpu_begin':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:5804: error: 'TS_USEDFPU' undeclared (first use in this function)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:5804: error: (Each undeclared identifier is reported only once
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:5804: error: for each function it appears in.)
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-3.0.25'
make: *** [kmod_build] Error 2
build failed with return value 2
[Error] Kernel Module : Failed to compile kernel module - please consult readme.
Now, navigate to "/lib/modules/fglrx/build_mod" and edit the file "firegl_public.c", on line 5804, it will look like this:

Code: Select all

if (cur_task->status & TS_USEDFPU)
"TS_USEDFPU" is defined by default in most linux kernels as "0x0001"

Simply change line 5804 to:

Code: Select all

if (cur_task->status & 1)
Save the file and then execute "./make.sh", is should now build with no dramas.

Next install the kernel module in the system as follows: Navigate to "/lib/modules/fglrx" and execute "./make_install.sh". This part of the process should complete and finish with no errors.

Optional: Execute a "modprobe fglrx" to make sure that the module has been compiled and installed properly.

You may now restart X and the new driver should work with no dramas at all.

Happy Hacking!
iLewis

Post Reply