Problem installing catalyst 13.1 in debian
#9
(04-16-2013, 07:09 PM)eljolot Wrote: ...
At this moment all should work, and the drivers could be installed, if you want install them or keep working in the command line. I installed and rebooted to use graphics and work faster, then write in your command line:

Code:
./amd-driver-installer-catalyst-12.10-x86.x86_64.run

after installing, reboot, and the graphics should work. Hope you remember that we donwloaded the patch, now we will use it to patch the installer.
first we need to extract the .run installer where we consider necessary.

Code:
root@The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali):~# ./amd-driver-installer-catalyst-13.1-linux-x86.x86_64.run --extract ./src
Creating directory ./src
Verifying archive integrity... All good.
Uncompressing AMD Catalyst(TM) Proprietary Driver-9.012...............................
root@The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali):~# cd ./src

then you should go where the file fglrx-3.7.patch was saved, and patch the file firegl_public.c located in the extracted .run file, in our case in the folder:

Code:
/root/src/common/lib/modules/fglrx/build_mod/

then

Code:
root@The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali):~# cd ..
root@The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali):~# patch -Np1 --verbose < fglrx-3.7.patch
Hmm...  Looks like a unified diff to me...
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- firegl_public.c    2012-12-26 14:53:14.843334069 +0700
|+++ firegl_public.c.new    2012-12-26 15:23:23.220996869 +0700
--------------------------
File to patch: /root/src/common/lib/modules/fglrx/build_mod/firegl_public.c    
Patching file /root/src/common/lib/modules/fglrx/build_mod/firegl_public.c using Plan A...
Hunk #1 succeeded at 3892.
Hunk #2 succeeded at 3926.
Hunk #3 succeeded at 3949.
Hunk #4 succeeded at 3962.
Hunk #5 succeeded at 4008.
Hunk #6 succeeded at 4047.
Hunk #7 succeeded at 4065.
Hunk #8 succeeded at 4090.
done
root@The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali):~# cd ./src
root@The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali):~/src# ./ati-installer.sh 9.002 --install

after that the drivers should be installed without any problem, then reboot your machine. and enjoy hashcat Big Grin
let's see a screenshot from my terminal. Big Grin

http://oi49.tinypic.com/212zsr4.jpg

any questions, ask us Big Grin

The last part is really kind of messy, not correct and inconsistent:
the patch does not work on the installer alone, but instead on of the actual code. So there is really no point to run the installer and then extract the source code from it, patch it, compile and install again. the first step is redundant and does not serve the purpose, since is just not really installing the correct version, actaully most likely not installing anything since the compilation fails.
Also using that approach if the installer did not check for previous installation and clean up left-overs you would have a mess of a patchwork drivers and unfinished opcode files.
also the patch you are using would only work for a very narrow kernel versions, instead the "official" and correct patches for debian and catalyst 13.1 are more then just one and are available here:
http://wiki.debian.org/Installing_ATI_fg...est_kernel
or you can also try the official packages here:
http://wiki.debian.org/ATIProprietary

Just my 2c.


Messages In This Thread
RE: Problem installing catalyst 13.1 in debian - by MaKr0 - 07-15-2013, 06:22 PM