Page 1 of 4 123 ... LastLast
Results 1 to 10 of 36

Thread: ATI-APP-SDK + Pyrit + Cal++ How-To Guide (BT5 KDE 64bit)

  1. #1
    Just burned his ISO
    Join Date
    May 2011
    Posts
    5

    Default ATI-APP-SDK + Pyrit + Cal++ How-To Guide (BT5 KDE 64bit)

    This is a guide on the best way (I've found) to install ATI Driver, ATI APP SDK, Cal++ and pyrit.Some of the instructions are from the old how to for bt4, but edited for bt5 and some I just figured out on my own. Hope this helps some people:

    First prepare kernel sources by:

    Code:
    prepare-kernel-sources
    cd /usr/src/linux
    cp -rf include/generated/* include/linux/
    Now install ati driver by running:

    Code:
    sh  ati-driver-installer-11-5-x86.x86_64.run
    Follow install and then restart computer.

    Download the AMD-APP SDK from
    http://orwell.fiit.stuba.sk/~nou/amd-app_2.4_amd64.deb
    Install amd-app (SDK) by clicking on the
    amd-app_2.4_amd64.deb file and clicking install.
    *** Note this installs the amd app sdk with opencl support only ***

    Also download the AMD-APP-SDK-v2.4-lnx64.tgz (With CAL++ Libraries) from:
    http://developer.amd.com/gpu/AMDAPPS...s/default.aspx
    Untar by typing:
    Code:
    tar -xvzf AMD-APP-SDK-v2.4-lnx64.tgz
    Then go into the directory:
    Code:
    cd AMD-APP-SDK-v2.4-lnx64
    tar -xvzf icd-regisration.tgz
    make
    make install
    Install the boost library and dev tools by typing:
    Code:
    apt-get install libboost1.40-all-dev
    install cmake by typing:
    Code:
    apt-get install cmake
    Download cal++ to your root directory from:
    http://sourceforge.net/projects/calp...ar.gz/download

    Now untar calpp-0.90 by typing:
    Code:
    tar -xvzf calpp-0.90.tar.gz
    
    cd calpp-0.90
    First edit the CMakeLists.txt file in the cal++ directory so that it knows where ATI APP is installed.
    Open the file in nano by:

    Code:
    nano CMakeLists.txt
    Find the lines that start with FIND_LIBRARY() and edit to look like this:
    FIND_LIBRARY( LIB_ATICALCL aticalcl PATHS "/root/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/" )
    FIND_LIBRARY( LIB_ATICALRT aticalrt PATHS "/root/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/" )
    FIND_PATH( LIB_ATICAL_INCLUDE NAMES cal.h calcl.h PATHS "/root/AMD-APP-SDK-v2.4-lnx64/include/CAL" )

    Then edit the bashrc file by typing:
    Code:
    nano ~/.bashrc
    Go to the bottom and add this:

    ATISTREAMSDKROOT=/root/AMD-APP-SDK-v2.4-lnx64/
    ATISTREAMSDKSAMPLESROOT=/root/AMD-APP-SDK-v2.4-lnx64/samples
    LD_LIBRARY_PATH=opt/oracle/instantclient_10_2:$ATISTREAMSDKROOT/lib/x86_64
    export ATISTREAMSDKROOT
    export ATISTREAMSDKSAMPLESROOT

    Then install cal++ by going into the cal++ directory and typing:

    Code:
    cmake .
    once that's finished, type
    Code:
    make install
    cd into pyrit_svn/pyrit
    type:
    Code:
    python setup.py build install
    cd ..
    cd cpyrit_calpp
    python setup.py build install
    Now run pyrit list_cores (should show cal++ device & cpus) & then run pyrit benchmark

    *** Note, you may get an error about a version mismatch between cpyrit_calpp & cpyrit_cpu, you can just ignore that (or edit the version number in setup.py under the cpyrit_calpp directory to version 1.4.1-dev (I think it is) to match the version of pyrit's setup.py). ***

    Again hope this helps some people that want to use cal++ with pyrit and their ATI cards, feel free to comment and ask questions. This may also work for 32bit systems and possibly gnome, but some adjustments would have to be made to file paths and the files downloaded.
    Last edited by jeff2011; 05-25-2011 at 04:22 AM. Reason: Updated guide a little.

  2. #2
    Just burned his ISO
    Join Date
    Apr 2011
    Posts
    20

    Default Re: ATI-APP-SDK + Pyrit + Cal++ How-To Guide (BT5 KDE 64bit)

    Thank you very

    But there is a problem I got with me what is the solution

    Code:
    root@bt:~/pyrit_svn/cpyrit_calpp# ./setup.py build
    running build
    running build_ext
    Building modules...
    building 'cpyrit._cpyrit_calpp' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/root/AMD-APP-SDK-v2.4-lnx64/include -I/usr/include/python2.6 -c _cpyrit_calpp.cpp -o build/temp.linux-x86_64-2.6/_cpyrit_calpp.o -Wall -fno-strict-aliasing -DVERSION="0.4.0-dev (svn r308)"
    cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
    In file included from _cpyrit_calpp.cpp:38:
    /usr/local/include/cal/cal.hpp:26:17: error: cal.h: No such file or directory
    /usr/local/include/cal/cal.hpp:27:19: error: calcl.h: No such file or directory
    /usr/local/include/cal/cal.hpp:28:21: error: cal_ext.h: No such file or directory
    In file included from _cpyrit_calpp.cpp:38:
    /usr/local/include/cal/cal.hpp:132: error: ‘CALdeviceinfo’ was not declared in this scope
    /usr/local/include/cal/cal.hpp:132: error: template argument 2 is invalid
    /usr/local/include/cal/cal.hpp:141: error: ‘CALdeviceattribs’ was not declared in this scope
    /usr/local/include/cal/cal.hpp:141: error: template argument 2 is invalid
    /usr/local/include/cal/cal.hpp:151: error: ‘CALdevicestatus’ was not declared in this scope
    /usr/local/include/cal/cal.hpp:151: error: template argument 2 is invalid
    /usr/local/include/cal/cal.hpp:162: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:169: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:184: error: ‘CALresult’ does not name a type
    In file included from _cpyrit_calpp.cpp:38:
    /usr/local/include/cal/cal.hpp:271: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALtarget’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceinfo’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceinfo’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceinfo’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceinfo’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALtarget’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALboolean’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALboolean’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALboolean’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALboolean’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALboolean’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALboolean’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALboolean’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALboolean’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdeviceattribs’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdevicestatus’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdevicestatus’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALdevicestatus’ does not name a type
    /usr/local/include/cal/cal.hpp:271: error: ‘CALresult’ does not name a type
    /usr/local/include/cal/cal.hpp:287: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:287: error: ‘CALfuncInfo’ does not name a type
    /usr/local/include/cal/cal.hpp:287: error: ‘param_type’ has not been declared
    /usr/local/include/cal/cal.hpp:287: error: ‘CALfuncInfo’ has not been declared
    /usr/local/include/cal/cal.hpp: In static member function ‘static void cal::detail::param_traits<4, 31>::getInfo(int&, int&)’:
    /usr/local/include/cal/cal.hpp:287: error: request for member ‘maxScratchRegsNeeded’ in ‘info’, which is of non-class type ‘int’
    /usr/local/include/cal/cal.hpp: At global scope:
    /usr/local/include/cal/cal.hpp:287: error: ‘CALuint’ does not name a type
    /usr/local/include/cal/cal.hpp:287: error: ‘CALfuncInfo’ does not name a type
    /usr/local/include/cal/cal.hpp:287: error: ‘param_type’ has not been declared

  3. #3
    Senior Member
    Join Date
    Jan 2011
    Location
    over the under
    Posts
    197

    Default Re: ATI-APP-SDK + Pyrit + Cal++ How-To Guide (BT5 KDE 64bit)

    yeah i get the exact same error as zakoo when using AMD-APP-SDK... oh well i guess its back to ATI STREAM for now.

  4. #4
    Just burned his ISO
    Join Date
    May 2011
    Posts
    6

    Default Re: ATI-APP-SDK + Pyrit + Cal++ How-To Guide (BT5 KDE 64bit)

    [double post, more info below]

  5. #5
    Just burned his ISO
    Join Date
    Apr 2011
    Posts
    20

    Default Re: ATI-APP-SDK + Pyrit + Cal++ How-To Guide (BT5 KDE 64bit)

    Quote Originally Posted by 2901119 View Post
    yeah i get the exact same error as zakoo when using AMD-APP-SDK... oh well i guess its back to ATI STREAM for now.
    ok , you can test ATI STREAM and tell us what happend

  6. #6
    Senior Member
    Join Date
    Jan 2011
    Location
    over the under
    Posts
    197

    Default Re: ATI-APP-SDK + Pyrit + Cal++ How-To Guide (BT5 KDE 64bit)

    ok , you can test ATI STREAM and tell us what happend
    test it? what do you think people used before amd app? stream works just fine.

  7. #7
    Just burned his ISO
    Join Date
    May 2011
    Posts
    2

    Default Re: ATI-APP-SDK + Pyrit + Cal++ How-To Guide (BT5 KDE 64bit)

    Had same error...fixed by

    Code:
    apt-get install libroot-python-dev
    apt-get install libboost-python-dev
    apt-get install zlib1g-dev
    apt-get install libssl-dev

  8. #8
    Just burned his ISO
    Join Date
    Apr 2011
    Posts
    20

    Default Re: ATI-APP-SDK + Pyrit + Cal++ How-To Guide (BT5 KDE 64bit)

    Code:
    root@bt:~/cpyrit_calpp# pyrit benchmark
    /usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py:63: UserWarning: WARNING: Version mismatch between <module 'cpyrit._cpyrit_cpu' from '/usr/local/lib/python2.6/dist-packages/cpyrit/_cpyrit_cpu.so'> ('0.4.1-dev (svn r308)') and <module 'cpyrit._cpyrit_calpp' from '/usr/local/lib/python2.6/dist-packages/cpyrit/_cpyrit_calpp.so'> ('0.4.0-dev (svn r304)')
    
      "('%s')\n" % (_cpyrit_cpu, _cpyrit_cpu.VERSION, mod, ver))
    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+
    
    Running benchmark (13251.7 PMKs/s)... - 
    
    Computed 13251.72 PMKs/s total.
    #1: 'CAL++ Device #1 'AMD REDWOOD'': 12922.5 PMKs/s (RTT 1.5)
    #2: 'CPU-Core (SSE2)': 324.1 PMKs/s (RTT 3.2)
    #3: 'CPU-Core (SSE2)': 335.9 PMKs/s (RTT 3.0)
    #4: 'CPU-Core (SSE2)': 332.2 PMKs/s (RTT 2.9)
    it's work
    but why work 1 Device
    can work 2 Device ?
    my Device HD 5650
    Last edited by zakoo; 05-22-2011 at 12:54 PM.

  9. #9
    Just burned his ISO
    Join Date
    May 2011
    Posts
    6

    Default Re: ATI-APP-SDK + Pyrit + Cal++ How-To Guide (BT5 KDE 64bit)

    Quote Originally Posted by 2901119 View Post
    yeah i get the exact same error as zakoo when using AMD-APP-SDK... oh well i guess its back to ATI STREAM for now.
    or you can read the error and fix what is wrong.

    Code:
    cal.h: No such file or directory
    calcl.h: No such file or directory
    cal_ext.h: No such file or directory
    edit setup.py in pyrit_svn/cpyrit_calpp and change

    Code:
    CALPP_INC_DIRS.append(os.path.join(CALPP_INC_DIR, 'include'))
    to

    Code:
    CALPP_INC_DIRS.append(os.path.join(CALPP_INC_DIR, 'include/CAL'))

  10. #10
    Just burned his ISO
    Join Date
    Apr 2011
    Posts
    20

    Default Re: ATI-APP-SDK + Pyrit + Cal++ How-To Guide (BT5 KDE 64bit)

    Code:
    root@bt:~# pyrit -b E8:39:DF:7C:30:84 -i all.lst -r sss-01.cap attack_passthrough
    /usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py:63: UserWarning: WARNING: Version mismatch between <module 'cpyrit._cpyrit_cpu' from '/usr/local/lib/python2.6/dist-packages/cpyrit/_cpyrit_cpu.so'> ('0.4.0') and <module 'cpyrit._cpyrit_calpp' from '/usr/local/lib/python2.6/dist-packages/cpyrit/_cpyrit_calpp.so'> ('0.4.0-dev (svn r304)')
    
      "('%s')\n" % (_cpyrit_cpu, _cpyrit_cpu.VERSION, mod, ver))
    Pyrit 0.4.0 (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
    This code is distributed under the GNU General Public License v3+
    
    Traceback (most recent call last):
      File "/usr/local/bin/pyrit", line 6, in <module>
        pyrit_cli.Pyrit_CLI().initFromArgv()
      File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 117, in initFromArgv
        func(self, **options)
      File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 159, in new_f
        import cpyrit.pckttools
      File "/usr/local/lib/python2.6/dist-packages/cpyrit/pckttools.py", line 838, in <module>
        class CCMPCrackerThread(CrackerThread, _cpyrit_cpu.CCMPCracker):
    AttributeError: 'module' object has no attribute 'CCMPCracker'
    some problem !!!

Page 1 of 4 123 ... LastLast

Similar Threads

  1. BT5 KDE 64bit - startx problem
    By fnord0 in forum BackTrack 5 Fixes
    Replies: 60
    Last Post: 12-24-2012, 03:15 PM
  2. BT5 KDE 64bit - Teensy/S.E.T.
    By ColForbin in forum BackTrack 5 Fixes
    Replies: 0
    Last Post: 05-13-2011, 07:19 AM
  3. Replies: 1
    Last Post: 05-11-2011, 05:03 AM
  4. 64bit
    By RageLtMan in forum OLD BackTrack 4 (pre) Final
    Replies: 6
    Last Post: 10-01-2009, 07:52 PM
  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
  •