Install AMD ATI Driver (fglrx) in Kali Linux 1.x 35


UPDATE 11/02/2014: Post published on How to Install AMD ATI proprietary driver (fglrx) in Kali Linux 1.0.6 running Kernel version 3.12.6. Follow instructions in new post if you’re running Kali 1.0.6 with Kernel version 3.12.6.

 

UPDATE 10/02/2014: Finally I have managed to install AMD ATI proprietary driver (fglrx) in Kali Linux 1.0.6 running Kernel version 3.12-6. I will write a new guide soon. Thanks for your patience and I appreciate the emails/feedback/comment’s I’ve received asking for this solution.  Here’s a screenshot from my running configuration:

 

Install AMD ATI Driver (fglrx) in Kali Linux 1.0.6 with Kernel 3.12-6 fglrx  version 13.251 - blackMORE Ops

UPDATE 16/01/2014: If you’re using Kali Linux v1.0.6 with Kernel 3.12-6, there’s yet no solution to suite everyone’s need. I am working hard to find a solution and a generic method of implementation that can be followed easily by everyone. If you come across a solution, please let me know. Following guide works flawlessly with Kernel v3.7.

 

Install AMD ATI Driver (fglrx) in Kali Linux 1.x - blackMORE Ops

 

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. This post will guide you through installation of AMD ATI Driver in Kali Linux 1.x.

This guide (Install AMD ATI Driver (fglrx) in Kali Linux 1.x) is part of a series that guides readers on How to install FGLRX, AMD APP SDK, CAL++ and Pyrit in Kali Linux. The idea is to install correct drivers in Kali Linux for your GPU and use CPU+GPU combination with Pyrit to make raw data crunching faster. An example would be to utilize this combined processing power to crunch though WPA/WPA2 capture file to find Wifi password.

Check AMD APP SDK Installation

Check if AMD APP SDK is installed. If not installed, follow this guide to install it.

How to install AMD APP SDK in Kali Linux?

Check CAL++ Installation

Check if CAL++ is installed. If not installed, follow this guide to install it.

How to install CAL++ in Kali Linux?

How to install Pyrit in Kali Linux?

Check if Pyrit is installed. If not installed, follow this guide to install it.

How to install Pyrit in Kali Linux

Readers, please follow this series in the following order:

  1. Install AMD ATI Driver (fglrx) in Kali Linux 1.x
  2. How to install AMD APP SDK in Kali Linux?
  3. How to install CAL++ in Kali Linux?
  4. How to install Pyrit in Kali Linux?

Install AMD ATI Driver (fglrx) in Kali Linux

Following instructions are for Kali Linux 1.0

lsb_release -a

Output:

No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux Kali Linux 1.0
Release:	Kali Linux 1.0
Codename:	n/a

Step 1 (remove old or unused drivers and fix source file)

apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev* xorg-driver-fglrx

Check your /etc/apt/sources.list. If it’s anything different to the following, you need to fix it.
There’s another post with how to update your srouces.list ..

How to add official Kali Linux Repositories?

# 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 (update with apt-get)

apt-get update

Stop: NVIDIA users after driver installation and cuda/pyrit related issues go here: How to Install Nvidia Kernel Module Cuda and Pyrit in Kali Linux

Also those who would like to use Graphics card processing power to crunch data (such as recovering wii password faster) see the following posts:

  1. Helpful ATIconfig fglrx commands
  2. How to install Pyrit in Kali Linux?
  3. How to install CAL++ in Kali Linux?
  4. How to install AMD APP SDK in Kali Linux?

Step 3 (install linux headers and necessary drivers)

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

At this point, you will see the following error message. This is why I had to write this guide to fix and patch kernel which allows you to install official AMD Catalyst Center.

...

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)

Now we need to patch the kernel

Download fglrx-3.7.patch (I’ve personally used this path 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 amd64 architecture or i386, based on which version you’re using file-names might be slightly different)

to /root

from

/var/cache/apt/archives

 

cp /var/cache/apt/archives/fglrx-modules-dkms_1%3a12-6+point-3_amd64.deb /root

Step 5 (patch and repack)

At this point we are making folders and unpacking the downloaded .deb file so that we can patch it and re-pack it.

First we make a directory so that all of our work is in that folder. Don’t want to mess up /root folder

mkdir -p extract/DEBIAN

Now unpack .deb file.

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

Copy patch to correct directory and patch it.

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

You will see the following output

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).

Once patching is done, we need to re-build the package, pack it again for installation.

cd /root
mkdir build
dpkg-deb -b extract/ build/

dpkg-deb will show you the following output. This also creates the necessary .deb packages.

dpkg-deb: building package `fglrx-modules-dkms' in `build//fglrx-modules-dkms_1%3a12-6+point-3_amd64.deb'.

Time to install our newly patched .deb package.

cd build
dpkg -i *.deb

And the final output is as follows:

...
DKMS: install completed.

Now we generate a xorg configuration file which will be in /etc/X11 folder.

aticonfig --initial -f

Step 6 (radeon and reboot)

Almost there. AMD cards needs the following parameters passed into grub.cfg during boot. Let’s do that: Edit the grub.cfg file:

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. Then reboot.

  reboot

Enjoy your AMD ATI fglrx driver in Kali Linux 3.7-trunk Kernel.

Lastly, I couldn’t thank Offensive Security enough for bringing such great pen-test distro like Kali Linux.

Thanks for reading. Please share.


Leave a Reply

35 thoughts on “Install AMD ATI Driver (fglrx) in Kali Linux 1.x

  • gemeni

    my grub.cfg looking different, will be the entry radeon.modeset=0 in

    ...
    ### BEGIN /etc/grub.d/30_os-prober ###
    ...
    menuentry "Debian GNU/Linux, mit Linux 3.7-trunk-amd64 (on /dev/sdb3)" --class gnu-linux --class gnu --class os {
    	insmod part_msdos 
    	insmod ext2
    	set root='(hd1,msdos3)'
    	search --no-floppy --fs-uuid --set=root fa6c31ad-7362-4ef8-804d-1ce70d415618
    	linux /boot/vmlinuz-3.7-trunk-amd64 root=UUID=fa6c31ad-7362-4ef8-804d-1ce70d415618 ro initrd=/install/initrd.gz quiet radeon.modeset=0
    	initrd /boot/initrd.img-3.7-trunk-amd64
    ...

    also right ? Because the entry in ### BEGIN /etc/grub.d/10_linux ### did not content "ro initrd=/install/initrd.gz quiet " in the specified line as in your description.

      • tiesto14789

        when i tape this cmd
        dpkg-deb: building package `fglrx-modules-dkms' in `build//fglrx-modules-dkms_1%3a12-6+point-3_i386
        >
        >
        >
        >
        and i leave with CTRL D and i have this message "syntaxe error "

        • admin Post author

          Why would you leave a build process with CTRL+D in the middle? This guide worked for almost every user when using 3.7v Kernel in Kali Linux. Can you please try to leave the build process (takes only few seconds for me) and see if that works? Let me know.

          • tiesto14789

            i leave because cmd don't work :( when i execute it

            >

            >

            >

            >

            > appear.

            and root@localhost:# became hidden (sorry for bad english )

          • admin Post author

            Your English is just fine. Don’t worry about it.
            I see that you’re using build//fglrx-modules-dkms_1%3a12-6+point-3_i386 which is 32-bit version. Personally I haven’t tested this patch against 32-bit version Kali. I’ll see what I can do (maybe reinstall a 32-bit Kali) and try out. In the meantime, please let me know if you’ve found a solution. Thanks :)

          • admin Post author

            Can't say just based on that you have an error! :) You might want to tail /var/log/messages in one terminal and try to open System settings. In this way you will able to see what logs were generated when it couldn't open System settings. Also depends on the fact which desktop manager you're using (i.e. Gnome, KDE, XFCE etc.) and what extra things you have in your repositories. I prefer to have a clean repo for Kali (i.e. supported ones: see here How to add official Kali Linux Repositories? ). Good luck.

    • admin Post author

      Command reference:

      amdconfig –pxl # List current activated GPU
      amdconfig –px-dgpu # Activates discrete GPU (High-Performance mode), must re-start X to take effect
      amdconfig –px-igpu # Activate integrated GPU (Power-Saving mode), must re-start X to take effect

      To do:
      Stop X (in your case kdm).
      You need different xorg.conf file for Integrated GPU. (I haven’t seen anyone being able to use 1 xorg.conf file for both d and I GPU). Rename dgpu xorg or point to igpu xorg.conf, whichever is easier for you.
      Start X.

    • admin Post author

      First thing first, we need to get GUI back. Press ATL+CTRL+F2 when you see the blank screen (with a blinking cursor in top left). This should take you to a terminal login screen where you can login as root. Once logged in, rename /etc/X11/xorg.conf file.

      mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bkp

      Now reboot. This should take you back to GUI. Once logged in, you can check /var/log/messages for details on what was the actual error message and work on a solution.
      My config was tested for x64 (64-bit) Kali Linux.

      • Francesco
        cat /proc/version
        Linux version 3.7-trunk-amd64 (debian-kernel@lists.debian.org) (gcc version 4.7.2 (Debian 4.7.2-5) ) #1 SMP Debian 3.7.2-0+kali8

        patch 3.7.1 work in kernel 3.7.2? ;|
        now Intel graphic work fine.
        but if reboot with the dedicated card, server x start

        root@kali:~# aticonfig –pxl
        PowerXpress: Discrete GPU is active (High-Performance mode).
        root@kali:~# fglrxinfo
        X Error of failed request: BadRequest (invalid request code or no such operation)
        Major opcode of failed request: 136 (GLX)
        Minor opcode of failed request: 19 (X_GLXQueryServerString)
        Serial number of failed request: 12
        Current serial number in output stream: 12

        but my dedicate card sure don’t work!
        this is my xorg.conf

        Section "ServerLayout"
        Identifier "aticonfig Layout"
        Screen 0 "aticonfig-Screen[0]-0" 0 0
        EndSection
        Section "Module"
        EndSection
        Section "Monitor"
        Identifier "aticonfig-Monitor[0]-0"
        Option "VendorName" "ATI Proprietary Driver"
        Option "ModelName" "Generic Autodetecting Monitor"
        Option "DPMS" "true"
        EndSection
        Section "Device"
        Identifier "aticonfig-Device[0]-0"
        #Driver "fglrx"
        Driver "intel"
        #BusID "PCI:1:0:0"
        BusID "PCI:0:2:0"
        EndSection
        Section "Screen"
        Identifier "aticonfig-Screen[0]-0"
        Device "aticonfig-Device[0]-0"
        Monitor "aticonfig-Monitor[0]-0"
        DefaultDepth 24
        SubSection "Display"
        Viewport 0 0
        Depth 24
        EndSubSection
        EndSection

        when the need to modify depending on the card want to use
        sorry for english ;)
        Any idea?

        • admin Post author

          Your English is fine, don’t worry about it.
          Minor kernel version shouldn’t make any difference.

          root@kali:~# fglrxinfo
          X Error of failed request: BadRequest (invalid request code or no such operation)

          What this means is the installation for fglrx failed.
          Please ensure you reboot after you’ve followed this guide and then issue the following commands to verify a working installation.

          fglrxinfo

          and

          fgl_glxgears

          Did you modify grub as state above? (Don’t do update-grub as it will rewrite grub.cfg with default values)
          I would recommend trying out this site http://wiki.cchtml.com/index.php/Main_Page (they are unofficial AMD/ATI driver support but some really good info there).
          I haven’t seen anyone manage to make Intel/ATI hybrid working with single xorg.conf.
          You need different xorg.conf file for Integrated GPU. (I haven’t seen anyone being able to use 1 xorg.conf file for both d and I GPU). Rename dgpu xorg or point to igpu xorg.conf.
          Some more related info here:
          AMD Catalyst
          Hybrid graphics
          How do I get AMD/Intel Hybrid Graphics drivers to work?
          AMD/Intel Hybrid Graphics works
          As you can see, nothing much been developed on this one except to use bash script to switch between GPU’s. Hope that helps in someway.

  • Quyen Vu

    hello, i have installed it on my kali but i have a question

    is this path can do for new kernel 3.12 of kali?

    if i install path for kernel 3.7 and then update to 3.12. any problem?

    ( my kali can not start after i update)

    • admin Post author

      Hi Quyen, Thanks for posting. No, the patch is for kernel v3.7 only. I haven’t found any reliable patch for kernel v3.12. You can try porting Kolasa’s patch (works on Ubuntu derivative) in Kali. As for Kali not starting after update(you are probably seeing a blinking cursor instead of Desktop Manager), press ALT+CTRL+F2 and login with root account. Delete /etc/X11/xorg.conf and restart. This way you should be able to login in newer Kernel without using fglrx. Hope that helps.

      • Quyen Vu

        i have reinstalled kali 1.0.5 and update today but kernel still 3.7 ( i don’t know previous how can i update to 3.12)
        i have disable ATI like link but it does not work.
        here is my output lsb_release -a

        ———————————————————————————————–
        root@TiTan:~# lsb_release -a
        No LSB modules are available.
        Distributor ID:	Debian
        Description:	Debian GNU/Linux Kali Linux 1.0.6
        Release:	Kali Linux 1.0.6
        Codename:	n/a
        root@TiTan:~# lspci
        00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
        00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
        00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
        00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
        00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
        00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
        00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
        00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5)
        00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5)
        00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5)
        00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
        00:1f.0 ISA bridge: Intel Corporation HM67 Express Chipset Family LPC Controller (rev 05)
        00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05)
        00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
        01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Whistler [AMD Radeon HD 6600M Series]
        02:00.0 Network controller: Intel Corporation Centrino Wireless-N 1030 [Rainbow Peak] (rev 34)
        03:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)
        04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
        ———————————————————————————————–

        with that,does this way can work?

        • admin Post author

          This guide will work as long the kernel version in 3.7 (minor versions doesn't matter). Latest update in Kali fixes the version number (until 1.0.5 it wasn't working). Are you saying you want kernel 3.12? You won't get it via Kali repositories. You can download, compile and update yourself(fglrx wont work then), or maybe try via adding Debian repositories (which might or might not break few things in Kali).

      • Quyen Vu

        and here is my uname -a

        —————————-
        root@TiTan:~# uname -a
        Linux TiTan 3.7-trunk-amd64 #1 SMP Debian 3.7.2-0+kali8 x86_64 GNU/Linux
        ——————————-
        

        (after update it show kali 1.0.6 althought version 1.0.5 show output is 1.0

      • Quyen Vu

        i checked and i know 3.12 is header
        here is my step:
        install kali 1.05 -> update to 1.06-> do your way and at this sep apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')
        it install header 3.12
        next step is notice no kernel version patch

  • Andrew

    HI, need help here.

    when i perform step 5 command : dpkg -i *.deb , it gave me error :

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

    the log file:

    DKMS make.log for fglrx-12-6+point for kernel 3.12-kali1-amd64 (x86_64)
    Mon Jan 13 21:34:42 PST 2014
    make: Entering directory `/usr/src/linux-headers-3.12-kali1-amd64'
    LD /var/lib/dkms/fglrx/12-6+point/build/built-in.o
    CC [M] /var/lib/dkms/fglrx/12-6+point/build/firegl_public.o
    In file included from /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:467:0:
    /var/lib/dkms/fglrx/12-6+point/build/drm_proc.h: In function ‘FGLDRM_proc_init’:
    /var/lib/dkms/fglrx/12-6+point/build/drm_proc.h:98:2: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
    /var/lib/dkms/fglrx/12-6+point/build/drm_proc.h:98:19: warning: assignment makes pointer from integer without a cast [enabled by default]
    /var/lib/dkms/fglrx/12-6+point/build/drm_proc.h:105:12: warning: assignment makes pointer from integer without a cast [enabled by default]
    /var/lib/dkms/fglrx/12-6+point/build/drm_proc.h:112:7: warning: assignment makes pointer from integer without a cast [enabled by default]
    /var/lib/dkms/fglrx/12-6+point/build/drm_proc.h:124:6: error: dereferencing pointer to incomplete type
    /var/lib/dkms/fglrx/12-6+point/build/drm_proc.h:125:6: error: dereferencing pointer to incomplete type
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c: In function ‘firegl_proc_init’:
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:589:14: warning: assignment makes pointer from integer without a cast [enabled by default]
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:601:13: warning: assignment makes pointer from integer without a cast [enabled by default]
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:608:12: error: dereferencing pointer to incomplete type
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:608:27: error: ‘read_proc_t’ undeclared (first use in this function)
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:608:27: note: each undeclared identifier is reported only once for each function it appears in
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:608:39: error: expected expression before ‘)’ token
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:612:15: warning: assignment makes pointer from integer without a cast [enabled by default]
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:622:13: warning: assignment makes pointer from integer without a cast [enabled by default]
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:642:16: error: dereferencing pointer to incomplete type
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:642:43: error: expected expression before ‘)’ token
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:647:16: error: dereferencing pointer to incomplete type
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:651:16: error: dereferencing pointer to incomplete type
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:660:13: warning: assignment makes pointer from integer without a cast [enabled by default]
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:663:16: error: dereferencing pointer to incomplete type
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:663:43: error: expected expression before ‘)’ token
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:664:16: error: dereferencing pointer to incomplete type
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:664:32: error: ‘write_proc_t’ undeclared (first use in this function)
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:664:45: error: expected expression before ‘)’ token
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:665:16: error: dereferencing pointer to incomplete type
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c: In function ‘KCL_GetEffectiveUid’:
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:1537:5: error: incompatible types when returning type ‘kuid_t’ but ‘KCL_TYPE_Uid’ was expected
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c: At top level:
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:514:1: warning: ‘firegl_debug_proc_read_wrap’ defined but not used [-Wunused-function]
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:519:12: warning: ‘firegl_debug_proc_write_wrap’ defined but not used [-Wunused-function]
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:537:12: warning: ‘firegl_major_proc_read’ defined but not used [-Wunused-function]
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c: In function ‘KCL_GetEffectiveUid’:
    /var/lib/dkms/fglrx/12-6+point/build/firegl_public.c:1541:1: warning: control reaches end of non-void function [-Wreturn-type]
    cc1: some warnings being treated as errors
    make[3]: *** [/var/lib/dkms/fglrx/12-6+point/build/firegl_public.o] Error 1
    make[2]: *** [_module_/var/lib/dkms/fglrx/12-6+point/build] Error 2
    make[1]: *** [sub-make] Error 2
    make: *** [all] Error 2
    make: Leaving directory `/usr/src/linux-headers-3.12-kali1-amd64'
    root@kali:~# uname -a
    
    Linux kali 3.12-kali1-amd64 #1 SMP Debian 3.12.6-2kali1 (2014-01-06) x86_64 GNU/Linux

    Anyone please help.

  • admin Post author

    @Subscribed users/readers: UPDATE 10/02/2014: Finally I have managed to install AMD ATI proprietary driver (fglrx) in Kali Linux 1.0.6 running Kernel version 3.12-6. I will write a new guide soon. Thanks for your patience and I appreciate the emails/feedback/comment’s I’vereceived asking for this solution.

  • g30

    Hey can yo help me, when i build and repack the package dont let me, this is my error: Please help me!!

    root@kali:~/build# dpkg -i *.deb
    (Leyendo la base de datos … 307086 ficheros o directorios instalados actualmente.)
    Preparando para reemplazar fglrx-modules-dkms 1:13.12-3kali1 (usando fglrx-modules-dkms_13.12-3kali1_amd64.deb) …
    
    ——————————
    Deleting module version: 13.12
    completely from the DKMS tree.
    ——————————
    Done.
    Desempaquetando el reemplazo de fglrx-modules-dkms …
    Configurando fglrx-modules-dkms (1:13.12-3kali1) …
    Loading new fglrx-13.12 DKMS files…
    Building only for 3.7-trunk-amd64
    Module build for the currently running kernel was skipped since the
    kernel source for this kernel does not seem to be installed.
    

    I run Kali 1.0.5 x64 and follows all yours instructions… Please help me!

    • admin Post author

      Hi g30,
      Your error is kernel source for this kernel does not seem to be installed.. Kali removed linux-headers for Kernel version 3.7. You need to add Debian Jessie repositories to get linux-headers for Kernel v3.7. Change your /etc/apt/sources.list file similar to shown below,

      ## Kali Regular repositories
      #deb http://http.kali.org/kali kali main non-free contrib
      #deb http://security.kali.org/kali-security kali/updates main contrib non-free
      ## Kali Source repositories
      #deb-src http://http.kali.org/kali kali main non-free contrib
      #deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
      ## Debian Main
      deb http://ftp.debian.org/debian testing main contrib non-free
      deb-src http://ftp.debian.org/debian testing main contrib non-free
      ## Debian Updates
      deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
      deb-src http://ftp.debian.org/debian/ jessie-updates main contrib non-free
      ## Debian Security
      deb http://security.debian.org/ jessie/updates main contrib non-free
      deb-src http://security.debian.org/ jessie/updates main contrib non-free

      Update with apt-get

      apt-get update

      Then install linux-headers

      apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')

      Once updated, revert back to Kali Official repositories. DO NOT INSTALL ANYTHING ELSE from Debian Jessie repositories.

  • ed

    Can’t install fglrx-glx, same error every time:

    The following packages have unmet dependencies:
    fglrx-glx : Depends: libgl1-fglrx-glx but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.