29 Replies Latest reply on Nov 28, 2015 3:01 AM by nipponicshell

    driver hd4200 ubuntu 14.04

    nipponicshell

      I'm trying to install the driver, even already follow some tutorials I found on the internet, when you install and restart the notebook ... I can not access the system, the login screen appears for entering the password, put the password and back again to the login screen, I tried putting out the .Xauthority and creating a new user, even by downloading the driver from the AMD website itself.

        • Re: driver hd4200 ubuntu 14.04
          natasha

          I had the same problem with 15.7-th driver (at openSUSE, KDE, desktop machine).

           

          Installation of 15.9-th version fixed this. I am not sure that this is due to a new version,  rather due to more correct installation. I didn't dig this since it wasn't very principal for me that time.

           

          I understand, this is not exactly answer your question, but try to reinstall driver over installed one with --force option / completely uninstall it and install again / install other version of the driver.

           

          Maybe, someone can answer more...

          • Re: driver hd4200 ubuntu 14.04
            nipponicshell

            summarize a little here ... when I download the driver from the prórpio site and try to install, following message appears: There was a problem starting the Catalyst Control Center Linux Edition.

            No AMD graphics driver installed or gfráfico driver AMD is not working properly, install AMD driver suitable for your AMD or configure hardware using aticonfig.

            Now when I try to install the unstable drivers from AMD and restart, then that the problem occurs, arrives at Logina screen for entering the password and not enter, is always coming back to the login screen.

            Not auditioned giving startx in root mode, will install the driver commands below and try startx by root mode.

            Note: commands used to install sudo add-apt-repository ppa: ubuntu-x-swat / x-updates >>> sudo apt-get update >>> sudo apt-get install fglrx

              • Re: driver hd4200 ubuntu 14.04
                natasha

                nipponicshell wrote:

                 

                summarize a little here ... when I download the driver from the prórpio site and try to install, following message appears: There was a problem starting the Catalyst Control Center Linux Edition.

                No AMD graphics driver installed or gfráfico driver AMD is not working properly, install AMD driver suitable for your AMD or configure hardware using aticonfig.

                Consider a driver from AMD site. You downloaded this driver, didn't you? You have tried to install it with GUI. Instead of this, try to boot into 3-rd runlevel and execute .run file of the driver as root (maybe with --force option). Is it installed in this way?

              • Re: driver hd4200 ubuntu 14.04
                nipponicshell

                I usually install, open the terminal in my ctrl + alt + t user after then go to the folder where you will find the driver "amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.run" I type chmod + x amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.run give enter, then sh amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.run begins the process to instalção mess that error message, as mentioned above.

                • Re: driver hd4200 ubuntu 14.04
                  nipponicshell

                  Made installation even with --force! gave error in the installation of DKMS, when I install talks that have already latest version when renicio ... not appear the login screen when I delete the .Xauthority file and reboot, a screen appears with Ubuntu name and is, following the images below of the process.

                   

                   

                   

                  20151103_010734.jpg

                   

                  Despite this error, it completes 100% of the installation.

                   

                  20151103_010925.jpg

                   

                  When you complete 100% installation, this message appears, the last image is sometimes appearing UBUNTU, most often appears or anything, just the same background.

                   

                  20151102_235714.jpg

                   

                   

                  20151103_011932.jpg

                    • Re: driver hd4200 ubuntu 14.04
                      natasha

                      nipponicshell wrote:


                      3-rd figure:

                      "One or more tools required for installation cannot be found on the system..."

                       

                      It requires something... Actually, it is worth to see the /usr/share/ati/fglrx-install.log file. Here are the Release Notes to the latest driver. Check if you have all required components installed.

                       

                      And one more bad thing. As I understand, the code name of Ubuntu 14.04 is Trusty. If you look possible fglrx package variants,

                      > ./amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.run --listpkg | grep 'Ubuntu'

                      Created directory fglrx-install.5PIg2L

                      Ubuntu Packages:

                              Ubuntu/gutsy

                              Ubuntu/hardy

                              Ubuntu/intrepid

                              Ubuntu/jaunty

                              Ubuntu/karmic

                              Ubuntu/lucid

                              Ubuntu/maverick

                              Ubuntu/natty

                              Ubuntu/oneiric

                              Ubuntu/precise

                              Ubuntu/source

                      there is no 'trusty' among them, whereas for the latest driver version it is present:

                      > ./AMD-Catalyst-15.9-Linux-installer-15.201.1151-x86.x86_64.run --listpkg | grep 'Ubuntu'

                      Created directory fglrx-install.PzNjSH

                      Ubuntu Packages:

                              Ubuntu/gutsy

                              Ubuntu/hardy

                              Ubuntu/intrepid

                              Ubuntu/jaunty

                              Ubuntu/karmic

                              Ubuntu/lucid

                              Ubuntu/maverick

                              Ubuntu/natty

                              Ubuntu/oneiric

                              Ubuntu/precise

                              Ubuntu/quantal

                              Ubuntu/raring

                              Ubuntu/saucy

                              Ubuntu/source

                              Ubuntu/trusty

                              Ubuntu/utopic

                              Ubuntu/vivid

                              Ubuntu/wily

                      However, maybe they are compatible in some way, since, at least, the installer does start...

                       

                      Thus, uninstall fglrx. The result of

                      $ lspci -nnk

                      corresponding to the graphics card must not contain 'fglrx'. The GPU should be run on radeon driver. After that, install tools listed in the cited above Release Notes. Then try to execute .run file from 3-rd runlevel, and show the fglrx-install.log file, please. And also show the result of lspci -nnk corresponding to the videocard after uninstalling of fglrx, please.

                        • Re: driver hd4200 ubuntu 14.04
                          nipponicshell

                          I will install the driver again and see fglrx-install.log file

                           

                          result of the command: lspci -nnk

                           

                          nipponicshell@nipponicshell-HP-Pavilion-dv5-Notebook-PC:~$ $ lspci -nnk

                          $: comando não encontrado

                          nipponicshell@nipponicshell-HP-Pavilion-dv5-Notebook-PC:~$ lspci -nnk

                          00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] RS880 Host Bridge [1022:9601]

                          00:01.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (int gfx) [1022:9602]

                          00:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 0) [1022:9604]

                              Kernel driver in use: pcieport

                          00:05.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 1) [1022:9605]

                              Kernel driver in use: pcieport

                          00:11.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] [1002:4391]

                              Subsystem: Hewlett-Packard Company Device [103c:144e]

                              Kernel driver in use: ahci

                          00:12.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]

                              Subsystem: Hewlett-Packard Company Device [103c:144e]

                              Kernel driver in use: ohci-pci

                          00:12.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]

                              Subsystem: Hewlett-Packard Company Device [103c:144e]

                              Kernel driver in use: ehci-pci

                          00:13.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]

                              Subsystem: Hewlett-Packard Company Device [103c:144e]

                              Kernel driver in use: ohci-pci

                          00:13.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]

                              Subsystem: Hewlett-Packard Company Device [103c:144e]

                              Kernel driver in use: ehci-pci

                          00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller [1002:4385] (rev 41)

                              Subsystem: Hewlett-Packard Company Device [103c:144e]

                          00:14.1 IDE interface [0101]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller [1002:439c] (rev 40)

                              Subsystem: Hewlett-Packard Company Device [103c:144e]

                              Kernel driver in use: pata_atiixp

                          00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) [1002:4383] (rev 40)

                              Subsystem: Hewlett-Packard Company Device [103c:144e]

                              Kernel driver in use: snd_hda_intel

                          00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller [1002:439d] (rev 40)

                              Subsystem: Hewlett-Packard Company Device [103c:144e]

                          00:14.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge [1002:4384] (rev 40)

                          00:14.5 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller [1002:4399]

                              Subsystem: Hewlett-Packard Company Device [103c:144e]

                              Kernel driver in use: ohci-pci

                          00:16.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]

                              Subsystem: Hewlett-Packard Company Device [103c:144e]

                              Kernel driver in use: ohci-pci

                          00:16.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]

                              Subsystem: Hewlett-Packard Company Device [103c:144e]

                              Kernel driver in use: ehci-pci

                          00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 10h Processor HyperTransport Configuration [1022:1200]

                          00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Address Map [1022:1201]

                          00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 10h Processor DRAM Controller [1022:1202]

                          00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Miscellaneous Control [1022:1203]

                              Kernel driver in use: k10temp

                          00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Link Control [1022:1204]

                          01:05.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RS880M [Mobility Radeon HD 4225/4250] [1002:9712]

                              Subsystem: Hewlett-Packard Company Device [103c:144e]

                              Kernel driver in use: radeon

                          01:05.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] RS880 HDMI Audio [Radeon HD 4200 Series] [1002:970f]

                              Subsystem: Hewlett-Packard Company Device [103c:144e]

                              Kernel driver in use: snd_hda_intel

                          02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 03)

                              Subsystem: Hewlett-Packard Company Device [103c:144e]

                              Kernel driver in use: r8169

                          08:00.0 Network controller [0280]: Ralink corp. RT3090 Wireless 802.11n 1T/1R PCIe [1814:3090]

                              Subsystem: Hewlett-Packard Company Device [103c:1453]

                              Kernel driver in use: rt2800pci

                            • Re: driver hd4200 ubuntu 14.04
                              nipponicshell

                              file fglrx.install.log result

                               

                              Check if system has the tools required for installation.

                              fglrx installation requires that the system have kernel headers.  /lib/modules/3.19.0-31-generic/build/include/linux/version.h cannot be found on this system.

                              fglrx installation is being forced. Installation will proceed without the required tools on the system.

                              Uninstalling any previously installed drivers.

                               

                              Creating symlink /var/lib/dkms/fglrx/8.97.100.7/source ->

                                               /usr/src/fglrx-8.97.100.7

                               

                              DKMS: add completed.

                               

                              Kernel preparation unnecessary for this kernel.  Skipping...

                               

                              Building module:

                              cleaning build area....

                              cd /var/lib/dkms/fglrx/8.97.100.7/build; sh make.sh --nohints --uname_r=3.19.0-31-generic --norootcheck....(bad exit status: 1)

                              [Error] Kernel Module : Failed to build fglrx-8.97.100.7 with DKMS

                              [Error] Kernel Module : Removing fglrx-8.97.100.7 from DKMS

                               

                              ------------------------------

                              Deleting module version: 8.97.100.7

                              completely from the DKMS tree.

                              ------------------------------

                              Done.

                              [Reboot] Kernel Module : update-initramfs

                                • Re: driver hd4200 ubuntu 14.04
                                  natasha

                                  nipponicshell wrote:

                                   

                                  01:05.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RS880M [Mobility Radeon HD 4225/4250] [1002:9712]

                                      Subsystem: Hewlett-Packard Company Device [103c:144e]

                                      Kernel driver in use: radeon

                                  This is right.

                                  nipponicshell wrote:

                                   

                                  fglrx installation requires that the system have kernel headers.  /lib/modules/3.19.0-31-generic/build/include/linux/version.h cannot be found on this system.

                                   

                                  Kernel headers cannot be found... Do you have version.h file anywhere in your system? Try to install kernel-devel package (seems, this can help you).

                                    • Re: driver hd4200 ubuntu 14.04
                                      nipponicshell

                                      It says that it is impossible to find the package linux-kernel-devel.

                                        • Re: driver hd4200 ubuntu 14.04
                                          natasha

                                          nipponicshell wrote:

                                           

                                          It says that it is impossible to find the package linux-kernel-devel.

                                          Have you tried sudo apt-get install linux-headers-$(uname -r)?

                                            • Re: driver hd4200 ubuntu 14.04
                                              nipponicshell

                                              Reading package lists ... Done

                                              Building dependency tree

                                              Reading state information ... Done

                                              linux-headers-3.19.0-33-generic is already the newest version.

                                                • Re: driver hd4200 ubuntu 14.04
                                                  natasha

                                                  Ok. So do you have a file version.h somewhere at your computer? Where is it located?

                                                    • Re: driver hd4200 ubuntu 14.04
                                                      nipponicshell

                                                      version.h found several files, has someone who is in a specific location?

                                                        • Re: driver hd4200 ubuntu 14.04
                                                          natasha

                                                          Here, post #27, user proposes to copy /usr/include/linux/version.h into /lib/modules/`uname -r`/build/include/linux/, where the driver would like to see it. Try to do this.

                                                            • Re: driver hd4200 ubuntu 14.04
                                                              nipponicshell

                                                              /usr/include/linux/version.h

                                                               

                                                              #define LINUX_VERSION_CODE 199947

                                                              #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

                                                                • Re: driver hd4200 ubuntu 14.04
                                                                  natasha

                                                                  So have you tried to copy this file into /lib/modules/3.19.0-31-generic/build/include/linux/ and install driver?

                                                                    • Re: driver hd4200 ubuntu 14.04
                                                                      nipponicshell

                                                                      I tried not to! I was reading some things in the above link you sent, they said that AMD failed to give support for HD 4200, the HD 5000 only on, then why can not I install the same, right?!

                                                                        • Re: driver hd4200 ubuntu 14.04
                                                                          natasha

                                                                          In that answer, "AMD's fglrx does not support the HD 4200 in that version of Ubuntu.", it is said that the driver which supports your card doesn't support the 14.04-th Ubuntu, and the driver which explicitly supports 14.04-th Ubuntu doesn't support your GPU. This is what I meant in the post from 3-rd of November. But I said this not so sharp.

                                                                           

                                                                          However, the explicit error written by the installer is that it cannot find some file that is really absent in the expected by the driver place. So I think it is worth to try to place that version.h into the desired folder and to try to install the driver again. Who knows, maybe it will work... Or, of course, there is a variant to downgrade the operating system.

                                                                           

                                                                          Citing that discussion I didn't mean that their general problem is connected with your. It was rather an attempt not to use another's minds as my own... Excuse me that I sent you in a slightly wrong direction in this way...

                                                                            • Re: driver hd4200 ubuntu 14.04
                                                                              nipponicshell

                                                                              version.he copied the file installed by the terminal

                                                                                • Re: driver hd4200 ubuntu 14.04
                                                                                  nipponicshell

                                                                                  the complete installation ...

                                                                                   

                                                                                  Error message appeared again: There were errors during installation. Details can be found in /usr/share/ati/fglrx-install.log

                                                                                    • Re: driver hd4200 ubuntu 14.04
                                                                                      natasha

                                                                                      The screenshot looks well. When does the message about errors appear? And what is in the fglrx-install.log file?

                                                                                        • Re: driver hd4200 ubuntu 14.04
                                                                                          nipponicshell

                                                                                          when I click the exit button, as shown in attached picture, there appears error message. I will put the fglrx-install.log

                                                                                           

                                                                                          Check if system has the tools required for installation.

                                                                                          fglrx installation is being forced. Installation will proceed without the required tools on the system.

                                                                                          Uninstalling any previously installed drivers.

                                                                                          Unloading radeon module...

                                                                                          rmmod: ERROR: Module radeon is in use

                                                                                          Unloading drm module...

                                                                                          rmmod: ERROR: Module drm is in use by: ttm drm_kms_helper radeon

                                                                                          [Message] Kernel Module : Trying to install a precompiled kernel module.

                                                                                          [Message] Kernel Module : Precompiled kernel module version mismatched.

                                                                                          [Message] Kernel Module : Found kernel module build environment, generating kernel module now.

                                                                                          AMD kernel module generator version 2.1

                                                                                          doing Makefile based build for kernel 2.6.x and higher

                                                                                          rm -rf *.c *.h *.o *.ko *.a .??* *.symvers

                                                                                          make -C /lib/modules/3.19.0-33-generic/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules

                                                                                          make[1]: Entrando no diretório `/usr/src/linux-headers-3.19.0-33-generic'

                                                                                            CC [M]  /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o

                                                                                          In file included from /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:464:0:

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/drm_proc.h: In function ‘FGLDRM_proc_init’:

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:98:2: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]

                                                                                            if (!minor) root = create_proc_entry("dri", S_IFDIR, NULL);

                                                                                            ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:98:19: warning: assignment makes pointer from integer without a cast [enabled by default]

                                                                                            if (!minor) root = create_proc_entry("dri", S_IFDIR, NULL);

                                                                                                             ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:105:12: warning: assignment makes pointer from integer without a cast [enabled by default]

                                                                                            *dev_root = create_proc_entry(name, S_IFDIR, root);

                                                                                                      ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:112:7: warning: assignment makes pointer from integer without a cast [enabled by default]

                                                                                             ent = create_proc_entry(DRM(proc_list)[i].name,

                                                                                                 ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:124:6: error: dereferencing pointer to incomplete type

                                                                                             ent->read_proc = DRM(proc_list)[i].f;

                                                                                                ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:125:6: error: dereferencing pointer to incomplete type

                                                                                             ent->data      = dev;

                                                                                                ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘firegl_proc_init’:

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:586:14: warning: assignment makes pointer from integer without a cast [enabled by default]

                                                                                                   root = create_proc_entry("ati", S_IFDIR, NULL);

                                                                                                        ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:598:13: warning: assignment makes pointer from integer without a cast [enabled by default]

                                                                                                   ent = create_proc_entry("major", S_IFREG|S_IRUGO, root);

                                                                                                       ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:605:12: error: dereferencing pointer to incomplete type

                                                                                                   ent->read_proc = (read_proc_t*)firegl_major_proc_read;

                                                                                                      ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:605:27: error: ‘read_proc_t’ undeclared (first use in this function)

                                                                                                   ent->read_proc = (read_proc_t*)firegl_major_proc_read;

                                                                                                                     ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:605:27: note: each undeclared identifier is reported only once for each function it appears in

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:605:39: error: expected expression before ‘)’ token

                                                                                                   ent->read_proc = (read_proc_t*)firegl_major_proc_read;

                                                                                                                                 ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:609:15: warning: assignment makes pointer from integer without a cast [enabled by default]

                                                                                               *dev_root = create_proc_entry(name, S_IFDIR, root);

                                                                                                         ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:619:13: warning: assignment makes pointer from integer without a cast [enabled by default]

                                                                                                   ent = create_proc_entry(list->name, S_IFREG|S_IRUGO, *dev_root);

                                                                                                       ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:639:16: error: dereferencing pointer to incomplete type

                                                                                                       ent->read_proc = (read_proc_t*)list->f;

                                                                                                          ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:639:43: error: expected expression before ‘)’ token

                                                                                                       ent->read_proc = (read_proc_t*)list->f;

                                                                                                                                     ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:644:16: error: dereferencing pointer to incomplete type

                                                                                                       ent->proc_fops = (struct file_operations*)list->fops;

                                                                                                          ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:648:16: error: dereferencing pointer to incomplete type

                                                                                                       ent->data = (dev->pubdev.signature == FGL_DEVICE_SIGNATURE)? firegl_find_device(minor) : (dev);

                                                                                                          ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:657:13: warning: assignment makes pointer from integer without a cast [enabled by default]

                                                                                                   ent = create_proc_entry("debug", S_IFREG|S_IRUGO, root);

                                                                                                       ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:660:16: error: dereferencing pointer to incomplete type

                                                                                                       ent->read_proc = (read_proc_t*)firegl_debug_proc_read_wrap;    

                                                                                                          ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:660:43: error: expected expression before ‘)’ token

                                                                                                       ent->read_proc = (read_proc_t*)firegl_debug_proc_read_wrap;    

                                                                                                                                     ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:661:16: error: dereferencing pointer to incomplete type

                                                                                                       ent->write_proc = (write_proc_t*)firegl_debug_proc_write_wrap; 

                                                                                                          ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:661:32: error: ‘write_proc_t’ undeclared (first use in this function)

                                                                                                       ent->write_proc = (write_proc_t*)firegl_debug_proc_write_wrap; 

                                                                                                                          ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:661:45: error: expected expression before ‘)’ token

                                                                                                       ent->write_proc = (write_proc_t*)firegl_debug_proc_write_wrap; 

                                                                                                                                       ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:662:16: error: dereferencing pointer to incomplete type

                                                                                                       ent->data = dev;

                                                                                                          ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_GetEffectiveUid’:

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1558:5: error: incompatible types when returning type ‘kuid_t’ but ‘KCL_TYPE_Uid’ was expected

                                                                                               return current_euid();

                                                                                               ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_MEM_AllocLinearAddrInterval’:

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2152:5: error: implicit declaration of function ‘do_mmap’ [-Werror=implicit-function-declaration]

                                                                                               vaddr = (void *) do_mmap(file, 0, len, prot, flags, pgoff);

                                                                                               ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_MEM_VM_MapRegion’:

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3700:39: error: ‘VM_RESERVED’ undeclared (first use in this function)

                                                                                                       vma->vm_flags |= VM_SHM | VM_RESERVED; /* Don't swap */

                                                                                                                                 ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘kasSetExecutionLevel’:

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4258:5: error: implicit declaration of function ‘__get_cpu_var’ [-Werror=implicit-function-declaration]

                                                                                               orig_level = __get_cpu_var(kasExecutionLevel);

                                                                                               ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4259:38: error: lvalue required as left operand of assignment

                                                                                               __get_cpu_var(kasExecutionLevel) = level;

                                                                                                                                ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: At top level:

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:511:16: warning: ‘firegl_debug_proc_read_wrap’ defined but not used [-Wunused-function]

                                                                                          READ_PROC_WRAP(firegl_debug_proc_read)

                                                                                                          ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:496:12: note: in definition of macro ‘READ_PROC_WRAP’

                                                                                          static int func##_wrap(char *buf, char **start, kcl_off_t offset,      \

                                                                                                      ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:516:12: warning: ‘firegl_debug_proc_write_wrap’ defined but not used [-Wunused-function]

                                                                                          static int firegl_debug_proc_write_wrap(void* file, const char *buffer, unsigned long count, void *data)

                                                                                                      ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:534:12: warning: ‘firegl_major_proc_read’ defined but not used [-Wunused-function]

                                                                                          static int firegl_major_proc_read(char *buf, char **start, kcl_off_t offset,

                                                                                                      ^

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_GetEffectiveUid’:

                                                                                          /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1562:1: warning: control reaches end of non-void function [-Wreturn-type]

                                                                                          }

                                                                                          ^

                                                                                          cc1: some warnings being treated as errors

                                                                                          make[2]: ** [/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Erro 1

                                                                                          make[1]: ** [_module_/lib/modules/fglrx/build_mod/2.6.x] Erro 2

                                                                                          make[1]: Saindo do diretório `/usr/src/linux-headers-3.19.0-33-generic'

                                                                                          make: ** [kmod_build] Erro 2

                                                                                          build failed with return value 2

                                                                                          [Error] Kernel Module : Failed to compile kernel module - please consult readme.

                                                                                          [Reboot] Kernel Module : update-initramfs

                                                                                            • Re: driver hd4200 ubuntu 14.04
                                                                                              natasha

                                                                                              nipponicshell wrote:

                                                                                               

                                                                                              . . .

                                                                                              /lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:98:2: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]

                                                                                                if (!minor) root = create_proc_entry("dri", S_IFDIR, NULL);

                                                                                                ^

                                                                                              . . .

                                                                                              /lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:124:6: error: dereferencing pointer to incomplete type

                                                                                                 ent->read_proc = DRM(proc_list)[i].f;

                                                                                                    ^

                                                                                              /lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:125:6: error: dereferencing pointer to incomplete type

                                                                                                 ent->data      = dev;

                                                                                                    ^

                                                                                              . . . etc.

                                                                                              This really looks as if the system and driver don't understand each other... So actually, maybe, the best solution is to downgrade your system...

                                                        • Re: driver hd4200 ubuntu 14.04
                                                          adutzu89

                                                          Maybe my answer will not satisfy you..: AMD Radeon™HD 4000, HD 3000, and HD 2000 Series LINUX support

                                                           

                                                          I had a hd4570 and couldn't solve it since 12.04.1(or .2) point release. The open source driver worked pretty great for me though.