oclHashcat-plus + Ubuntu Desktop 12.04 + AMD Radeon 7600M
#8
Okay - I got it working!!!!

It's a bit of a fudge and I dont know what the performance will be like but I have the following working.

Dell Vostro 3650 with AMD Radeon HD 7600M Series in Hybrid mode (Intel VGA driver running ubuntu and AMD Catalyst for Hashcat)

Here's how i did it.

Fresh 12.04.1 LTS x86_64 install

update

Code:
sudo apt-get update ; sudo apt-get upgrade -y

install some other bits and bobs for building the package and some 32 bit libs:

Code:
sudo apt-get install ia32-libs lib32gcc1 libc6-i386 build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases linux-headers-generic xserver-xorg-core libgcc1

link 32 bit libs to 64 bit libs

Code:
cd /usr ; sudo ln -svT lib /usr/lib64
Get the ati catalyst driver

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

Build a dpkg rather than running the install script:

Code:
sudo sh ./amd-driver-installer-catalyst-13.1-linux-x86.x86_64.run --buildpkg Ubuntu/precise

install your debs:

Code:
sudo dpkg -i fglrx*.deb

Build a new xorg.conf file

Code:
sudo aticonfig --initial -f

OPTIONAL - enable dual monitors

Code:
sudo aticonfig --set-pcs-str="DDX,EnableRandR12,FALSE"

discrete GPU mode (important for me as i wanted intel to run ubuntu)

Code:
sudo aticonfig --px-dgpu

reboot

Code:
sudo reboot

Fingers crossed you dont get the dreaded "running in low graphics mode"

Test your setup:

Code:
fglrxinfo

display: :0  screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon HD 7600M Series
OpenGL version string: 4.2.12002 Compatibility Profile Context 9.012

Code:
clinfo
Number of platforms:                 1
  Platform Profile:                 FULL_PROFILE
  Platform Version:                 OpenCL 1.2 AMD-APP (1084.4)
  Platform Name:                 AMD Accelerated Parallel Processing
  Platform Vendor:                 Advanced Micro Devices, Inc.
  Platform Extensions:                 cl_khr_icd cl_amd_event_callback cl_amd_offline_devices


  Platform Name:                 AMD Accelerated Parallel Processing
Number of devices:                 2
  Device Type:                     CL_DEVICE_TYPE_GPU
  Device ID:                     4098
  Board name:                     AMD Radeon HD 7600M Series
  Device Topology:                 PCI[ B#1, D#0, F#0 ]
  Max compute units:                 6
  Max work items dimensions:             3
    Max work items[0]:                 256
    Max work items[1]:                 256
    Max work items[2]:                 256
  Max work group size:                 256
  Preferred vector width char:             16
  Preferred vector width short:             8
  Preferred vector width int:             4
  Preferred vector width long:             2
  Preferred vector width float:             4
  Preferred vector width double:         0
  Native vector width char:             16
  Native vector width short:             8
  Native vector width int:             4
  Native vector width long:             2
  Native vector width float:             4
  Native vector width double:             0
  Max clock frequency:                 600Mhz
  Address bits:                     32
  Max memory allocation:             134217728
  Image support:                 Yes
  Max number of images read arguments:         128
  Max number of images write arguments:         8
  Max image 2D width:                 16384
  Max image 2D height:                 16384
  Max image 3D width:                 2048
  Max image 3D height:                 2048
  Max image 3D depth:                 2048
  Max samplers within kernel:             16
  Max size of kernel argument:             1024
  Alignment (bits) of base address:         2048
  Minimum alignment (bytes) for any datatype:     128
  Single precision floating point capability
    Denorms:                     No
    Quiet NaNs:                     Yes
    Round to nearest even:             Yes
    Round to zero:                 Yes
    Round to +ve and infinity:             Yes
    IEEE754-2008 fused multiply-add:         Yes
  Cache type:                     None
  Cache line size:                 0
  Cache size:                     0
  Global memory size:                 536870912
  Constant buffer size:                 65536
  Max number of constant args:             8
  Local memory type:                 Scratchpad
  Local memory size:                 32768
  Kernel Preferred work group size multiple:     64
  Error correction support:             0
  Unified memory for Host and Device:         0
  Profiling timer resolution:             1
  Device endianess:                 Little
  Available:                     Yes
  Compiler available:                 Yes
  Execution capabilities:                
    Execute OpenCL kernels:             Yes
    Execute native function:             No
  Queue properties:                
    Out-of-Order:                 No
    Profiling :                     Yes
  Platform ID:                     0x00007f9ce1fadee0
  Name:                         Turks
  Vendor:                     Advanced Micro Devices, Inc.
  Device OpenCL C version:             OpenCL C 1.2
  Driver version:                 1084.4
  Profile:                     FULL_PROFILE
  Version:                     OpenCL 1.2 AMD-APP (1084.4)
  Extensions:                     cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_atomic_counters_32 cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt


  Device Type:                     CL_DEVICE_TYPE_CPU
  Device ID:                     4098
  Board name:                    
  Max compute units:                 4
  Max work items dimensions:             3
    Max work items[0]:                 1024
    Max work items[1]:                 1024
    Max work items[2]:                 1024
  Max work group size:                 1024
  Preferred vector width char:             16
  Preferred vector width short:             8
  Preferred vector width int:             4
  Preferred vector width long:             2
  Preferred vector width float:             8
  Preferred vector width double:         4
  Native vector width char:             16
  Native vector width short:             8
  Native vector width int:             4
  Native vector width long:             2
  Native vector width float:             8
  Native vector width double:             4
  Max clock frequency:                 1200Mhz
  Address bits:                     64
  Max memory allocation:             2147483648
  Image support:                 Yes
  Max number of images read arguments:         128
  Max number of images write arguments:         8
  Max image 2D width:                 8192
  Max image 2D height:                 8192
  Max image 3D width:                 2048
  Max image 3D height:                 2048
  Max image 3D depth:                 2048
  Max samplers within kernel:             16
  Max size of kernel argument:             4096
  Alignment (bits) of base address:         1024
  Minimum alignment (bytes) for any datatype:     128
  Single precision floating point capability
    Denorms:                     Yes
    Quiet NaNs:                     Yes
    Round to nearest even:             Yes
    Round to zero:                 Yes
    Round to +ve and infinity:             Yes
    IEEE754-2008 fused multiply-add:         Yes
  Cache type:                     Read/Write
  Cache line size:                 64
  Cache size:                     32768
  Global memory size:                 8243982336
  Constant buffer size:                 65536
  Max number of constant args:             8
  Local memory type:                 Global
  Local memory size:                 32768
  Kernel Preferred work group size multiple:     1
  Error correction support:             0
  Unified memory for Host and Device:         1
  Profiling timer resolution:             1
  Device endianess:                 Little
  Available:                     Yes
  Compiler available:                 Yes
  Execution capabilities:                
    Execute OpenCL kernels:             Yes
    Execute native function:             Yes
  Queue properties:                
    Out-of-Order:                 No
    Profiling :                     Yes
  Platform ID:                     0x00007f9ce1fadee0
  Name:                         Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
  Vendor:                     GenuineIntel
  Device OpenCL C version:             OpenCL C 1.2
  Driver version:                 1084.4 (sse2,avx)
  Profile:                     FULL_PROFILE
  Version:                     OpenCL 1.2 AMD-APP (1084.4)
  Extensions:                     cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt

crack a cheap wpa psk, just cause you can ;-)

Code:
./oclHashcat-plus64.bin -m 2500 /tmp/[i]REDACTED[/i]-01.CAP.HCCAP.HCCAP ~/Tools/Wordlists/rockyou.txt
oclHashcat-plus v0.14 by atom starting...

Hashes: 1 total, 1 unique salts, 1 unique digests
Bitmaps: 8 bits, 256 entries, 0x000000ff mask, 1024 bytes
Rules: 1
Workload: 16 loops, 8 accel
Watchdog: Temperature abort trigger set to 90c
Watchdog: Temperature retain trigger set to 80c
Device #1: Turks, 512MB, 600Mhz, 6MCU
Device #1: Kernel ./kernels/4098/m2500.Turks_1084.4_1084.4.kernel (1787592 bytes)

Generated dictionary stats for /home/mac/Tools/Wordlists/rockyou.txt: 139986396 bytes, 14350512 words, 14106170 keyspace                    

[i]REDACTED-REDACTED-2[/i]:wireless                    
                                            
Session.Name...: oclHashcat-plus
Status.........: Cracked
Input.Mode.....: File (/home/mac/Tools/Wordlists/rockyou.txt)
Hash.Target....: REDACTED-REDACTED-2 (??:??:??:??:??:?? <-> ??:??:??:??:??:??)
Hash.Type......: WPA/WPA2
Time.Started...: 0 secs
Speed.GPU.#1...:    14490/s
Recovered......: 1/1 (100.00%) Digests, 1/1 (100.00%) Salts
Progress.......: 50440/14106170 (0.36%)
Rejected.......: 44296/50440 (87.82%)
HWMon.GPU.#1...:  0% Util, 45c Temp, 30% Fan

Started: Fri Jun 21 15:19:59 2013
Stopped: Fri Jun 21 15:20:01 2013

Thanks to dioxide for putting me in the right path to begin with, it seems it was an xorg.conf issue and looking back at the xorg logs, a libs issue too!

Thanks to HashCat also, long live the good work of @atom and co.

Hope this helps someone else with a Radeon card, its so much simpler with nvidia.

PS - can an admin mark this as solved, if they are happy with the fix/fudge?

T


Messages In This Thread
RE: oclHashcat-plus + Ubuntu Desktop 12.04 + AMD Radeon 7600M - by redf00t - 06-21-2013, 04:27 PM