Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Pyrit + Cal++ (Radeon) How-To Guide (BT5R2 KDE 64bit)

  1. #1
    Just burned their ISO
    Join Date
    Apr 2012
    Posts
    6

    Default Pyrit + Cal++ (Radeon) How-To Guide (BT5R2 KDE 64bit)

    The old howtos don't work anymore, and the wiki article only uses plain OpenCL
    CAL++ is up to 2x faster in pyrit, so here's how to get it working on RadeonHD cards.

    This should work well for HD4000/HD5000/HD6000 series.
    Unfortunately, HD7000 series are not supported.
    For HD7000s, use ut0ugh1's updated OpenCL guide here

    If you have already tried to get this working on your current install, the "leftovers" will cause this to fail.
    Only works consistently on a CLEAN FRESH BT5R2/R3 install.

    0.5: fix for libs install errors (thanks to adriancard) & update system
    Code:
    echo "deb http://updates.repository.backtrack-linux.org revolution main microverse non-free testing" >> /etc/apt/sources.list
    apt-get update
    apt-get dist-upgrade
    reboot
    1: preparation - remove pre-installed Pyrit, update system, kernel sources & libs/tools
    Code:
    apt-get purge pyrit
    rm -r /usr/local/lib/python2.6/dist-packages/cpyrit
    prepare-kernel-sources
    cd /usr/src/linux
    cp -rf include/generated/* include/linux/
    apt-get install libroot-python-dev libboost-python-dev zlib1g-dev libssl-dev cmake libboost1.40-all-dev
    2: download & install 09/11 drivers (dont use newer drivers, the SDKs we install after this will not like it)
    Code:
    wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-9-x86.x86_64.run
    chmod +x ati-driver-installer-11-9-x86.x86_64.run
    ./ati-driver-installer-11-9-x86.x86_64.run
    reboot
    3: after reboot, install SDKs.
    AMD added an "accept license" page to the SDK download, so first download SDK to default (home) directory from here:
    http://developer.amd.com/Downloads/A...v2.5-lnx64.tgz
    Code:
    wget http://orwell.fiit.stuba.sk/~nou/amd-app_2.5_amd64.deb
    dpkg -i amd-app_2.5_amd64.deb
    tar -xvzf AMD-APP-SDK-v2.5-lnx64.tgz
    ./Install-AMD-APP.sh
    echo "ATISTREAMSDKROOT=/opt/AMDAPP
    export ATISTREAMSDKROOT" >> ~/.bashrc
    source ~/.bashrc
    4: installing CAL++
    Code:
    svn co https://calpp.svn.sourceforge.net/svnroot/calpp calpp
    cd calpp/trunk
    cmake .
    make
    make install
    5: and finally Pyrit
    Code:
    svn checkout http://pyrit.googlecode.com/svn/trunk/ /tmp/pyrit
    cd /tmp/pyrit/pyrit && python setup.py build && python setup.py install
    cd /tmp/pyrit/cpyrit_calpp && python setup.py build && python setup.py install
    there will be a bunch of warnings during complie, so long as there are no ERRORs all is fine.

    test with:
    Code:
    pyrit list_cores
    pyrit benchmark
    ignore any Pyrit warnings, your RadeonHD devices should show up as something like:
    #1: 'CAL++ Device #1 'AMD REDWOOD''

    Happy crunching!
    Last edited by n3lson; 12-09-2012 at 05:54 AM. Reason: added adriancard's libs fix, removed unnecessary reboots, confirmed working in BT5R3

  2. #2
    Junior Member
    Join Date
    Jun 2012
    Posts
    42

    Default Re: Pyrit + Cal++ (Radeon) How-To Guide (BT5R2 KDE 64bit)

    Thanks n3lson for this! Switching from OpenCL to CAL++ squeezed out a few more PMKs/s from my Radeon HD 4890. I went from ~23k to ~25k, a decent improvement for 10 minutes of tweaking.

    For the record I wasn't working with a clean BT5R2 install, and initially ran into "Segmentation faults" when running pyrit after following your guide. I installed all the drivers and software listed above, but kept getting segfaults.

    I fixed it by manually removing pyrit and re-compiling pyrit and cpyrit_calpp from source, as described above. Manually remove all instances of pyrit from /usr/local. I found all pyrit's pieces by running
    Code:
    find /usr/local | grep pyrit
    and deleted everything I found. There may have been something in /usr/bin as well, can't remember. Obviously don't go blindly deleting anything, be careful! Then run
    Code:
    python setup.py build && python setup.py install
    for both pyrit and cpyrit_calpp. Running pyrit list_cores now recognizes my HD4890 as a CAL++ device!

    I wouldn't expect double performance over OpenCL, but definitely an improvement. Thanks again n3lson!

  3. #3
    Senior Member
    Join Date
    Feb 2012
    Location
    Cyberspace
    Posts
    174

    Default Re: Pyrit + Cal++ (Radeon) How-To Guide (BT5R2 KDE 64bit)

    Hey many thanks for this guide and I am going to use it however before I do I have got a question.

    My card is ATI Mobility Radeon HD 4500 Series and I have followed instruction here:
    http://www.backtrack-linux.org/wiki/...Install_OpenCL

    but at the end when I run this pyrit benchmark command I receive errors:

    Code:
    root@bt:~# pyrit list_cores
    Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
    This code is distributed under the GNU General Public License v3+
    
    The following cores seem available...
    #1:  'OpenCL-Device 'ATI RV710''
    #2:  'CPU-Core (SSE2)'
    #3:  'CPU-Core (SSE2)'
    #4:  'CPU-Core (SSE2)'
    root@bt:~# pyrit benchmark
    Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
    This code is distributed under the GNU General Public License v3+
    
    Calibrating... Segmentation fault
    So I am moving to Cal++.

    Question: How to remove OpenCL and any other leftovers from my previous attempt.

    Mind it also I am running BackTrack 5 R2 Gnome 64 bit : Linux bt 3.2.6 x86_64 GNU/Linux : HDD installed

    Will this process work for me too?

    Many thanks in advance.

  4. #4
    Just burned his ISO
    Join Date
    Jul 2012
    Posts
    1

    Default Re: Pyrit + Cal++ (Radeon) How-To Guide (BT5R2 KDE 64bit)

    Thanks for that solution!

    But that still didnt fix my problem, i have found a solution tho. If you are still gettin errors when installing lib's try to :

    Code:
    echo "deb http://updates.repository.backtrack-linux.org revolution main microverse non-free testing" >> /etc/apt/sources.list
    apt-get update
    apt-get dist-upgrade
    that fixed my problems. cheers.

  5. #5
    Junior Member
    Join Date
    Jun 2012
    Posts
    42

    Default Re: Pyrit + Cal++ (Radeon) How-To Guide (BT5R2 KDE 64bit)

    @hannah

    I ran into the same problem and mentioned my fix in the above post:

    For the record I wasn't working with a clean BT5R2 install, and initially ran into "Segmentation faults" when running pyrit after following your guide. I installed all the drivers and software listed above, but kept getting segfaults.

    I fixed it by manually removing pyrit and re-compiling pyrit and cpyrit_calpp from source, as described above. Manually remove all instances of pyrit from /usr/local. I found all pyrit's pieces by running
    Code:
    find /usr/local | grep pyrit
    and deleted everything I found. There may have been something in /usr/bin as well, can't remember. Obviously don't go blindly deleting anything, be careful!
    Update: Using Cal++ vs. OpenCL did almost double my cracking performance, when used with attack_batch or just batch mode, as opposed to attack_passthrough. I only saw about 10-20% improvement with attack_passthrough, and about 80% improvement with attack_batch. Now if I could only get my system stable enough for the job

  6. #6
    Junior Member
    Join Date
    Jun 2012
    Posts
    42

    Default Re: Pyrit + Cal++ (Radeon) How-To Guide (BT5R2 KDE 64bit)

    @hannah one other thing: I checked ATI/AMD's documentation on Stream, and they list all 4xxx generation hardware as "beta support." Stream is not officially supported until 5xxx hardware, just a thought.

  7. #7
    Senior Member
    Join Date
    Feb 2012
    Location
    Cyberspace
    Posts
    174

    Default Re: Pyrit + Cal++ (Radeon) How-To Guide (BT5R2 KDE 64bit)

    Quote Originally Posted by ternarybit View Post
    @hannah

    I ran into the same problem and mentioned my fix in the above post:
    hey thanks a lot.. the question still remains as I have got OpenCL installed:

    Question: How to remove OpenCL and any other leftovers from my previous attempt.

    Also did you try this in Gnome or KDE plz

  8. #8
    Junior Member
    Join Date
    Jun 2012
    Posts
    42

    Default Re: Pyrit + Cal++ (Radeon) How-To Guide (BT5R2 KDE 64bit)

    Quote Originally Posted by hannah View Post
    hey thanks a lot.. the question still remains as I have got OpenCL installed:

    Question: How to remove OpenCL and any other leftovers from my previous attempt.

    Also did you try this in Gnome or KDE plz
    In reverse order:

    I'm using KDE, but Gnome/KDE is just the desktop environment and won't affect this issue at all.

    Finding and removing all files related to pyrit with the method I list above should remove OpenCL. I believe the file is actually called _cpyrit_opencl.so, or something very similar. Deleting this file effectively uninstalls OpenCL. Then, just compile Cal++ according to the OP's guide.

  9. #9
    Senior Member
    Join Date
    Feb 2012
    Location
    Cyberspace
    Posts
    174

    Default Re: Pyrit + Cal++ (Radeon) How-To Guide (BT5R2 KDE 64bit)

    Quote Originally Posted by n3lson View Post
    4: installing CAL++
    Code:
    svn co https://calpp.svn.sourceforge.net/svnroot/calpp calpp
    cd calpp/trunk
    cmake .
    make
    make install
    OK I took the jump and I am at step 4 and having issues

    Code:
    root@bt:~# svn co https://calpp.svn.sourceforge.net/svnroot/calpp calpp
    A    calpp/trunk
    -------snip-----
    A    calpp/tags/calpp-0.87/examples/nbody_kernel.cpp
    A    calpp/tags/calpp-0.87/examples/CMakeLists.txt
    Checked out revision 91.
    root@bt:~# cd calpp/trunk
    You have new mail in /var/mail/root
    root@bt:~/calpp/trunk# cmake
    cmake version 2.8.1
    Usage
    
      cmake [options] <path-to-source>
      cmake [options] <path-to-existing-build>
    
    Options
      -C <initial-cache>          = Pre-load a script to populate the cache.
      -D <var>:<type>=<value>     = Create a cmake cache entry.
      -U <globbing_expr>          = Remove matching entries from CMake cache.
      -G <generator-name>         = Specify a makefile generator.
      -Wno-dev                    = Suppress developer warnings.
      -Wdev                       = Enable developer warnings.
      -E                          = CMake command mode.
      -i                          = Run in wizard mode.
      -L[A][H]                    = List non-advanced cached variables.
      --build <dir>               = Build a CMake-generated project binary tree.
      -N                          = View mode only.
      -P <file>                   = Process script mode.
      --graphviz=[file]           = Generate graphviz of dependencies.
      --system-information [file] = Dump information about this system.
      --debug-trycompile          = Do not delete the try compile directories..
      --debug-output              = Put cmake in a debug mode.
      --trace                     = Put cmake in trace mode.
      --help-command cmd [file]   = Print help for a single command and exit.
      --help-command-list [file]  = List available listfile commands and exit.
      --help-commands [file]      = Print help for all commands and exit.
      --help-compatcommands [file]= Print help for compatibility commands.
      --help-module module [file] = Print help for a single module and exit.
      --help-module-list [file]   = List available modules and exit.
      --help-modules [file]       = Print help for all modules and exit.
      --help-custom-modules [file]= Print help for all custom modules and exit.
      --help-policy cmp [file]    = Print help for a single policy and exit.
      --help-policies [file]      = Print help for all policies and exit.
      --help-property prop [file] = Print help for a single property and exit.
      --help-property-list [file] = List available properties and exit.
      --help-properties [file]    = Print help for all properties and exit.
      --help-variable var [file]  = Print help for a single variable and exit.
      --help-variable-list [file] = List documented variables and exit.
      --help-variables [file]     = Print help for all variables and exit.
      --copyright [file]          = Print the CMake copyright and exit.
      --help                      = Print usage information and exit.
      --help-full [file]          = Print full help and exit.
      --help-html [file]          = Print full help in HTML format.
      --help-man [file]           = Print full help as a UNIX man page and exit.
      --version [file]            = Show program name/version banner and exit.
    
    Generators
    
    The following generators are available on this platform:
      Unix Makefiles              = Generates standard UNIX makefiles.
      CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
      Eclipse CDT4 - Unix Makefiles
                                  = Generates Eclipse CDT 4.0 project files.
      KDevelop3                   = Generates KDevelop 3 project files.
      KDevelop3 - Unix anythingMakefiles  = Generates KDevelop 3 project files.
    
    root@bt:~/calpp/trunk# make
    make: *** No targets specified and no makefile found.  Stop.
    root@bt:~/calpp/trunk#
    Full dump here:
    http://pastebin.com/QNqVgheb

    cmake and make are not doing anything.. what am I missing here plz...

    regards

  10. #10
    Junior Member
    Join Date
    Jun 2012
    Posts
    42

    Default Re: Pyrit + Cal++ (Radeon) How-To Guide (BT5R2 KDE 64bit)

    You missed the period at the end of the command, which tells cmake that the <path-to-source> is the current working directory Be sure to run:
    Code:
    cmake .

Page 1 of 2 12 LastLast

Similar Threads

  1. is there no official working guide of installing BT5R2-KDE-32 persistent USB?
    By dusf345 in forum BackTrack 5 Beginners Section
    Replies: 13
    Last Post: 03-19-2012, 11:46 AM
  2. Pyrit with ATI CAL++ Support Install Guide
    By Si2006 in forum BackTrack 5 Beginners Section
    Replies: 0
    Last Post: 03-03-2012, 03:01 PM
  3. ATI-APP-SDK + Pyrit + Cal++ How-To Guide (BT5 KDE 64bit)
    By jeff2011 in forum BackTrack 5 How-To's
    Replies: 35
    Last Post: 10-12-2011, 01:39 AM
  4. ATI-APP-SDK + Pyrit + Cal++ How-To Guide (BT5 KDE 64bit)
    By jeff2011 in forum BackTrack 5 Beginners Section
    Replies: 35
    Last Post: 10-12-2011, 01:39 AM
  5. Error - Wireless Assistant , Guide Guide Guide ....
    By eliv3n in forum OLD Newbie Area
    Replies: 1
    Last Post: 10-08-2007, 07:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •