Problem installing catalyst 13.1 in debian
#6
Sorry for the long waiting, I have some problems understanding what we do, also I tried to get help from the team working in The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali) linux, and they said that they are not going to fix anything. they gave some commands to "fix" the problem but that commands are only the peak of iceberg.

Special thanks to philsmd Big Grin

Let's begin :3]

this tuto was made using a pc with linux, kernel:
Code:
Linux The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali) 3.7-trunk-686-pae #1 SMP Debian 3.7.2-0+kali5 i686 GNU/Linux

1. lets see try to find out what you have installed by issuing following command

Code:
sudo dpkg --get-selection|grep -i fglrx

we should remove the drivers installed by the distro and try to do a clean install, at the ouput we shoul have someting like this:

Code:
fglrx-atieventsd
fglrx-control
fglrx-driver
fglrx-modules-dkms
glx-alternative-fglrx
libfglrx:i386
libfglrx-amdxba1:i386

then we should uninstall all using purge, we should write in the terminal something like this, if you have more, the add them:

Code:
apt-get remove fglrx-atieventsd fglrx-control fglrx-driver fglrx-modules-dkms glx-alternative-fglrx glx-alternative-fglrx libfglrx-amdxba1:i386

WARNING!!!! after this you should have your installer downloaded, cause after rebooting you won't have graphics at all, just command line !!!!

download the version 13.1 catalyst from:

Code:
http://www2.ati.com/drivers/linux/amd-driver-installer-catalyst-13.1-linux-x86.x86_64.zip

uncompress it and then

Code:
sudo chmod +x amd-driver-installer-catalyst-13.1-linux-x86.x86_64.run


Suggestion, download the file in /root then you won't have to be writing the full path were is it, you will save time.

Also, you have to download the patch for the .run file from:

Code:
https://docs.google.com/file/d/0B4VfWnVnFzi4a3R6N2xnOC1TWlU/edit?pli=1
Then we reboot, and if your computer is well configurated even only with the command line you should have internet cause we will need it.
The problem with this kernel is that the file "version.h" is not in the correct folder, the only will do a simbolic link. also you will need maybe other pc or write all this commands in a papper. I guess you're now in your command line the follow the next steps:

to avoid any problems we will check if we have the headers installed:

Code:
apt-get install linux-headers-$(uname -r)

If they are installed uninstall them and the reinstall(optional step)

Code:
apt-get remove --purge linux-headers-$(uname -r)

then again

Code:
apt-get install linux-headers-$(uname -r)

after the install of the headers we will try to locate were the "version.h" is located

Code:
locate version.h

in our case was located in

Code:
/usr/include/linux/version.h

the correct place should be(that was written in our logs file when tried to install, this folder can be other)

Code:
/lib/modules/3.7-trunk-686-pae/build/include/linux/

then in this step could be different from other versions, cause in the bug trackers of The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali) linux said that the folder should be /usr/src/ but in our case was /lib/modules/ , we made the symlink with this commands:

Code:
ln -s /usr/include/linux/ /lib/modules/3.7-trunk-686-pae/build/include/linux/

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


Messages In This Thread
RE: Problem installing catalyst 13.1 in debian - by eljolot - 04-16-2013, 07:09 PM