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

Thread: Install AMD/ATI Driver in Kali Linux 1.x

  1. #1
    Senior Member
    Join Date
    Jun 2013
    Posts
    103

    Install AMD/ATI Driver in Kali Linux 1.x

    I always had issues with ATI/Intel gfx cards in pretty much every version of Linux I've used. Kali is no different. Following guide would help to resolve the problem for everyone with similar issues. Many thanks to 'Sani Morphic' for his original post. Also big thanks goes to "http://wiki.debian.org/ATIProprietary" for their updates on Linux Header and ATIEventSD notes.

    Note: This guide works fine with Kernel 3.7. (as available in official Kali repository).

    I've kept a copy of this guide here: Install AMD ATI Driver (fglrx) in Kali Linux 1.x
    Users who wish to try our AMD APP SDK, Pyrit and CAL++ to make GPU cracking faster, please read the following guides:
    How to install AMD APP SDK in Kali Linux?
    How to install CAL++ in Kali Linux?
    How to install Pyrit in Kali Linux?

    Note: Kali Linux 1.0.6 users running Kernel version 3.12.6

    If you're a Kali Linux 1.0.6 users running Kernel version 3.12.6 following instructions will not work anymore. Follow these new instructions on how to Install AMD ATI proprietary driver (fglrx) in Kali Linux 1.0.6 running Kernel version 3.12.6

    Step 1
    Code:
    apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev* xorg-driver-fglrx
    Check your /etc/apt/sources.list

    Code:
    # deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot amd64 LIVE/INSTALL Binary 20130315-11:02]/ kali contrib main non-free
    # deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot amd64 LIVE/INSTALL Binary 20130315-11:02]/ kali contrib main non-free
    
    deb http://http.kali.org/kali kali main non-free contrib
    deb-src http://http.kali.org/kali kali main non-free contrib
    
    ## Security updates
    deb http://security.kali.org/kali-security kali/updates main contrib non-free
    deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
    Step 2
    Code:
      apt-get update
    Step 3
    Code:
     apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') 
     apt-get install fglrx-driver fglrx-control fglrx-glx fglrx-atieventsd fglrx-modules-dkms 
     apt-get install fglrx-glx-ia32
    ...

    Error! Bad return status for module build on kernel: 3.7-trunk-amd64 (x86_64)
    Consult /var/lib/dkms/fglrx/12-6+point/build/make.log for more information.



    Step 4 (download patch and patch)

    Need to patch the kernel
    Download patch from here (I've personally used this patch but users are advised to check/verify it before installing.)

    Download and "fglrx-3.7.patch" and copy to /root
    (Thanks to Henry Hermawan for posting this patch)

    Copy the file fglrx-modules-dkms_1%3a12-6+point-3_amd64.deb //check if amd6 architecture or i386, based on which version you're using filename might be slightly different

    to /root

    from

    /var/cache/apt/archives

    Code:
    cp /var/cache/apt/archives/fglrx-modules-dkms_1%3a12-6+point-3_amd64.deb /root
    Step 5 (patch and repack)

    Code:
     mkdir -p extract/DEBIAN
     dpkg-deb -x fglrx-modules-dkms_1%3a12-6+point-3_amd64.deb extract/
     dpkg-deb -e fglrx-modules-dkms_1%3a12-6+point-3_amd64.deb extract/DEBIAN
    
     cp fglrx-3.7.patch extract/usr/src/fglrx-12-6+point/
     cp Downloads/fglrx-3.7.patch extract/usr/src/fglrx-12-6+point/
     cd extract/usr/src/fglrx-12-6+point/
     patch -p0 < fglrx-3.7.patch
    
    patching file firegl_public.c
    Hunk #1 succeeded at 3890 (offset -2 lines).
    Hunk #2 succeeded at 3920 (offset -2 lines).
    Hunk #3 succeeded at 3935 (offset -2 lines).
    Hunk #4 succeeded at 3944 (offset -2 lines).
    Hunk #5 succeeded at 3982 (offset -2 lines).
    Hunk #6 succeeded at 4013 (offset -2 lines).
    Hunk #7 succeeded at 4023 (offset -2 lines).
    Hunk #8 succeeded at 4044 (offset -2 lines).
    
     cd /root
     mkdir build
     dpkg-deb -b extract/ build/
     dpkg-deb: building package `fglrx-modules-dkms' in `build//fglrx-modules-dkms_1%3a12-6+point-3_amd64.deb'.
    
     cd build
     dpkg -i *.deb
    ...
    DKMS: install completed.

    Generate xorg configuration
    Code:
      
    aticonfig --initial -f
    Step 6 (radeon and reboot)

    Code:
      
    leafpad /boot/grub/grub.cfg
    you see this:


    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Debian GNU/Linux, with Linux 3.7-trunk-amd64' --class debian --class gnu-linux --class gnu --class os {
    load_video
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos5)'
    search --no-floppy --fs-uuid --set=root 7f79eea2-1668-407f-b7ed-d5613fecd26c
    echo 'Loading Linux 3.7-trunk-amd64 ...'
    linux /boot/vmlinuz-3.7-trunk-amd64 root=UUID=7f79eea2-1668-407f-b7ed-d5613fecd26c ro initrd=/install/gtk/initrd.gz quiet
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-3.7-trunk-amd64
    }

    add radeon.modeset=0 in the end of the following line

    linux /boot/vmlinuz-3.7-trunk-amd64 root=UUID=7f79eea2-1668-407f-b7ed-d5613fecd26c ro initrd=/install/gtk/initrd.gz quiet

    So the line above becomes this:

    linux /boot/vmlinuz-3.7-trunk-amd64 root=UUID=7f79eea2-1668-407f-b7ed-d5613fecd26c ro initrd=/install/gtk/initrd.gz quiet radeon.modeset=0

    Note: "fee64a58-2e36-43f5-962d-8c33f936d452" UUID would be different for every PC. Use your one here.

    Save and exit
    Code:
       reboot
    Feedback is most welcome.

    Edit Note: A version of this Guide will be added here including patch file.
    Last edited by blackMORE; 02-11-2014 at 08:38 AM. Reason: Updated supported Kernel details

  2. #2
    Member
    Join Date
    Mar 2013
    Location
    In AnonWorld
    Posts
    44
    brother your link is working (fglrx-3.7.patch)

  3. #3
    Member
    Join Date
    Mar 2013
    Location
    In AnonWorld
    Posts
    44
    oh i found it please update your patch link with this one
    https://docs.google.com/file/d/0B4Vf...WlU/edit?pli=1

  4. #4
    Senior Member
    Join Date
    Jun 2013
    Posts
    103
    ah yes, Thanks for pointing it out. Post updated. I'm keeping a more updated version here: http://wiki.cchtml.com/index.php/Kali
    Last edited by blackMORE; 06-23-2013 at 12:29 PM. Reason: Fixed a link

  5. #5
    Junior Member
    Join Date
    Jun 2013
    Posts
    1
    blackMORE,
    Great job! This worked so good that I made it a bash script... You can get it here: https://docs.google.com/file/d/0B3s5...it?usp=sharing

    I tested it using the XFX Double D Radeon HD 7870 and the Kali 1.0.3 amd64 ISO...

    ~skysploit

  6. #6
    Senior Member
    Join Date
    Jun 2013
    Posts
    114
    so awesome! Thank you so much! I want to learn this stuff so much! THANKS!

  7. #7
    Junior Member
    Join Date
    Aug 2013
    Posts
    2
    so awesome..thanks this is I need

  8. #8
    Senior Member
    Join Date
    Jun 2013
    Posts
    103

    Angry

    @skysploit

    Sorry, the file you have requested does not exist.

    I'll remove your link from Wiki for now. Thanks
    Last edited by blackMORE; 09-03-2013 at 01:06 AM.

  9. #9
    Junior Member
    Join Date
    Aug 2013
    Location
    Indonesia
    Posts
    8
    Work 100% Thanks

  10. #10
    Junior Member
    Join Date
    Mar 2013
    Posts
    14
    What about OpenCL support?
    I install the AMD APP SDK and get an odd error
    Code:
    root@kali:~# oclhashcat+ -m 0 098f6bcd4621d373cade4e832627b4f6 --force
    /usr/bin/oclhashcat+: line 3:  4467 Segmentation fault      ./oclHashcat-plus.bin "$@"
    and if I run clinfo I get
    Code:
    root@kali:~# clinfo
    Segmentation fault
    Does anyone have recent guide to setup opencl?
    Last edited by thomasb9511; 09-23-2013 at 01:07 AM.

Tags for this Thread

Posting Permissions

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