Trying to get ATI HD 4770 to run on Centos 5.5 x86_64

Issues related to hardware problems
gilesaj
Posts: 47
Joined: 2006/08/16 23:53:23
Location: Australia
Contact:

Trying to get ATI HD 4770 to run on Centos 5.5 x86_64

Post by gilesaj » 2010/11/28 01:34:45

In the system-config-display the system sees the video card but when you look in the Configuration tab it is running on the vesa - generic driver.

I downloaded the latest driver from ATI for x86_64 Linux and after I ran it there was an error that it could not find X-server:

[code]
[root@coopers ATI-4770]# chmod +x ati-driver-installer-10-5-x86.x86_64.run
[root@coopers ATI-4770]# ./ati-driver-installer-10-5-x86.x86_64.run
Created directory fglrx-install.ob5679
Verifying archive integrity... All good.
Uncompressing ATI Proprietary Linux Driver-8.732..................
==================================================
ATI Technologies Linux Driver Installer/Packager
==================================================
Detected configuration:
Architecture: x86_64 (64-bit)
X Server: Unknown X Window

Detected version of X does not have a matching 'x480_64a' directory
You may override the detected version using the following syntax:
X_VERSION=<xdir> ./ati-driver-installer-<ver>-<arch>.run [--install]

The following values may be used for <xdir>:
x680 X.Org 6.8.x
x680_64a X.Org 6.8.x 64-bit
x690 X.Org 6.9 7.0 7.1 7.2 7.3
x690_64a X.Org 6.9 7.0 7.1 7.2 7.3 64-bit
x740 X.Org 7.4
x740_64a X.Org 7.4 64-bit
x750 X.Org 7.5
x750_64a X.Org 7.5 64-bit
Removing temporary directory: fglrx-install.ob5679
[/code]
Now I checked my system and I could not find the versions in the list but I do have all the mandatory files loaded for xorg-x11

Mandatory Packages:

[code]
bitmap-fonts
desktop-backgrounds-basic
xorg-x11-drivers
xorg-x11-fonts-100dpi
xorg-x11-fonts-75dpi
xorg-x11-fonts-ISO8859-1-100dpi
xorg-x11-fonts-ISO8859-1-75dpi
xorg-x11-fonts-Type1
xorg-x11-fonts-misc
xorg-x11-fonts-truetype
xorg-x11-server-Xorg
xorg-x11-xauth
xorg-x11-xfs
xorg-x11-xinit
[/code]
My desktop is gnome and I do not know how to get the driver installed. I have looked at other posts on this forum and on Google and could not find a solution.

I use the PC as a web server and because it is on 24/7 I also use it for BOINC. Without using the GPU on the video card it is a waste of time having it there.
Any help appreciated. I have come to a dead end with my limited expertise in Linux.

gilesaj
Posts: 47
Joined: 2006/08/16 23:53:23
Location: Australia
Contact:

Re: Trying to get ATI HD 4770 to run on Centos 5.5 x86_64

Post by gilesaj » 2010/11/28 01:56:59

I ran the getinfo script for drivers and this is what was returned.:

Information for driver problems.
[code]
== BEGIN uname -rmi ==
2.6.18-194.26.1.el5 x86_64 x86_64
== END uname -rmi ==

== BEGIN rpm -q centos-release ==
centos-release-5-5.el5.centos
== END rpm -q centos-release ==

== BEGIN cat /etc/redhat-release ==
CentOS release 5.5 (Final)
== END cat /etc/redhat-release ==

== BEGIN getenforce ==
Enforcing
== END getenforce ==

== BEGIN rpm -qa kernel\* | sort ==
kernel-2.6.18-194.26.1.el5
kernel-2.6.18-194.el5
kernel-headers-2.6.18-194.26.1.el5
== END rpm -qa kernel\* | sort ==

== BEGIN lspci ==
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 82P965/G965 PCI Express Root Port (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller (rev 02)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon HD 4770 [RV740]
01:00.1 Audio device: ATI Technologies Inc RV710/730
03:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 13)
04:00.0 SATA controller: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller (rev 02)
04:00.1 IDE interface: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller (rev 02)
05:07.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)
== END lspci ==

== BEGIN lspci -n ==
00:00.0 0600: 8086:29a0 (rev 02)
00:01.0 0604: 8086:29a1 (rev 02)
00:1a.0 0c03: 8086:2834 (rev 02)
00:1a.1 0c03: 8086:2835 (rev 02)
00:1a.7 0c03: 8086:283a (rev 02)
00:1b.0 0403: 8086:284b (rev 02)
00:1c.0 0604: 8086:283f (rev 02)
00:1c.1 0604: 8086:2841 (rev 02)
00:1c.2 0604: 8086:2843 (rev 02)
00:1d.0 0c03: 8086:2830 (rev 02)
00:1d.1 0c03: 8086:2831 (rev 02)
00:1d.2 0c03: 8086:2832 (rev 02)
00:1d.7 0c03: 8086:2836 (rev 02)
00:1e.0 0604: 8086:244e (rev f2)
00:1f.0 0601: 8086:2810 (rev 02)
00:1f.2 0101: 8086:2820 (rev 02)
00:1f.3 0c05: 8086:283e (rev 02)
00:1f.5 0101: 8086:2825 (rev 02)
01:00.0 0300: 1002:94b3
01:00.1 0403: 1002:aa38
03:00.0 0200: 11ab:4364 (rev 13)
04:00.0 0106: 197b:2363 (rev 02)
04:00.1 0101: 197b:2363 (rev 02)
05:07.0 0c00: 104c:8024
== END lspci -n ==
[/code]

gilesaj
Posts: 47
Joined: 2006/08/16 23:53:23
Location: Australia
Contact:

Re: Trying to get ATI HD 4770 to run on Centos 5.5 x86_64

Post by gilesaj » 2010/12/06 09:36:21

I guess I am out of luck as there have been no posts.

You may as well close this thread, even though I still have the problem

gilesaj
Posts: 47
Joined: 2006/08/16 23:53:23
Location: Australia
Contact:

Re: Trying to get ATI HD 4770 to run on Centos 5.5 x86_64

Post by gilesaj » 2010/12/09 01:36:18

OK maybe I am asking the wrong question ?

How do I change my GUI from Gnome over to X Server, so that the card driver will find one of these files ?

[code]
The following values may be used for <xdir>:
x680 X.Org 6.8.x
x680_64a X.Org 6.8.x 64-bit
x690 X.Org 6.9 7.0 7.1 7.2 7.3
x690_64a X.Org 6.9 7.0 7.1 7.2 7.3 64-bit
x740 X.Org 7.4
x740_64a X.Org 7.4 64-bit
x750 X.Org 7.5
x750_64a X.Org 7.5 64-bit
[/code]
The 64 bit ones I guess seen as I have a 64 bit system .

Thanks.

markkuk
Posts: 739
Joined: 2007/09/07 10:56:28
Location: Finland

Re: Trying to get ATI HD 4770 to run on Centos 5.5 x86_64

Post by markkuk » 2010/12/09 11:55:10

You are already running a X server, Gnome runs on top of X. CentOS 5 uses X.org 7.1, so "x690_64a" is the right setting.

gilesaj
Posts: 47
Joined: 2006/08/16 23:53:23
Location: Australia
Contact:

Re: Trying to get ATI HD 4770 to run on Centos 5.5 x86_64

Post by gilesaj » 2010/12/11 13:19:48

Thanks for your post. The installer seemed to work with that directory but in the end it is still not working.

I ran in a terminal window the command:

[code]
X_VERSION=x690_64a ./ati-driver-installer-10-5-x86.x86_64.run --install
[/code]
The following is what was put in the terminal window and the installations screens seemed to work fine and I selected automatic install.

[code]
Created directory fglrx-install.pF5120
Verifying archive integrity... All good.
Uncompressing ATI Proprietary Linux Driver-8.732..................
==================================================
ATI Technologies Linux Driver Installer/Packager
==================================================
Detected configuration:
Architecture: x86_64 (64-bit)
X Server (OVERRIDEN BY USER): X.Org 6.9 7.0 7.1 7.2 7.3 64-bit
loki_setup: directory: (null)
Removing temporary directory: fglrx-install.pF5120
[/code]
The log file contents is as follows:

[code]
[Message] Kernel Module : Trying to install a precompiled kernel module.
[Message] Kernel Module : Precompiled kernel module version mismatched.
[Error] Kernel Module : Kernel module build environment not found - please consult readme.
[/code]
There is no readme file in that folder ??

Any ideas on how I can get this to install ??

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Trying to get ATI HD 4770 to run on Centos 5.5 x86_64

Post by AlanBartlett » 2010/12/11 17:19:22

Have you looked in the subdirectories for that elusive [i]readme[/i] file? From the directory where you invoked the installer --

[code]
[b]find -name readme -ls[/b]
[/code]
With reference to the error message, do you have the relevant [i]kernel-devel[/i] package installed? Perhaps the following is appropriate --

[code]
[b]yum install kernel-devel[/b]
[/code]
Please show the output returned by --

[code]
[b]uname -rmi
rpm -qa kernel\* | sort[/b]
[/code]

gilesaj
Posts: 47
Joined: 2006/08/16 23:53:23
Location: Australia
Contact:

Re: Trying to get ATI HD 4770 to run on Centos 5.5 x86_64

Post by gilesaj » 2010/12/12 10:51:50

Hi

I had this post all done with all the data put in but I did not hit the submit button before I rebooted so I have done it all again:

The readme file is not in the folder anywhere.

I intalled kernel-devel

I tried to install the driver for the HD 4770 and I got more information as follows in the install log.

[code]
[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 *.GCC* .??* *.symvers
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
make -C /lib/modules/2.6.18-194.26.1.el5/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: gcc: Command not found
make[1]: Entering directory `/usr/src/kernels/2.6.18-194.26.1.el5-x86_64'
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
CC [M] /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/bin/sh: gcc: command not found
make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 127
make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-194.26.1.el5-x86_64'
make: *** [kmod_build] Error 2
build failed with return value 2
[Error] Kernel Module : Failed to compile kernel module - please consult readme.
[/code]
I tried to see what gcc was so I ran find / -name gcc and the following was displayed

[code]
[root@coopers ~]# find / -name gcc
/usr/lib/gcc
/usr/libexec/gcc
[/code]
the libexec/gcc is the 64 bit version

I then ran the command that you requested

[code]
[root@coopers ~]# uname -rmi
2.6.18-194.26.1.el5 x86_64 x86_64
[root@coopers ~]# rpm -qa kernel\* | sort
kernel-2.6.18-194.26.1.el5
kernel-2.6.18-194.el5
kernel-devel-2.6.18-194.26.1.el5
kernel-headers-2.6.18-194.26.1.el5
[/code]
So searching the web I found that there were newer drivers so I tried 10-9 to see what would happen.

[code]
[root@coopers 10-9-x86_64]# X_VERSION=x690_64a ./ati-driver-installer-10-9-x86.x86_64.run --install
Created directory fglrx-install.nn6641
Verifying archive integrity... All good.
Uncompressing ATI Catalyst(TM) Proprietary Driver-.771.................................................................
=====================================================================
ATI Technologies Catalyst(TM) Proprietary Driver Installer/Packager
=====================================================================
Detected configuration:
Architecture: x86_64 (64-bit)
X Server (OVERRIDEN BY USER): X.Org 6.9 7.0 7.1 7.2 7.3 64-bit
loki_setup: directory: (null)
Removing temporary directory: fglrx-install.nn6641
[/code]
The log file now looks like this

[code]
[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 *.GCC* .??* *.symvers
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
make -C /lib/modules/2.6.18-194.26.1.el5/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: gcc: Command not found
make[1]: Entering directory `/usr/src/kernels/2.6.18-194.26.1.el5-x86_64'
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
CC [M] /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/bin/sh: gcc: command not found
make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 127
make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-194.26.1.el5-x86_64'
make: *** [kmod_build] Error 2
build failed with return value 2
[Error] Kernel Module : Failed to compile kernel module - please consult readme.
[Message] Kernel Module : update initramfs not required
[/code]
Right at the bottom of the AMD page that I got the drivers from there is a note that " 32-bit packages must be installedfor 64 bit Linux drivers to install or work"

I am not sure what packages they are talking about because the file downloaded is for x86 & x86_64 and it decides what to load as it detects the system

The following is from the log above:

[code]
Detected configuration:
Architecture: x86_64 (64-bit)
X Server (OVERRIDEN BY USER): X.Org 6.9 7.0 7.1 7.2 7.3 64-bit
[/code]
I hope this is enough information for you to help me.

Cheers Giles

markkuk
Posts: 739
Joined: 2007/09/07 10:56:28
Location: Finland

Re: Trying to get ATI HD 4770 to run on Centos 5.5 x86_64

Post by markkuk » 2010/12/12 12:24:21

[quote]
gilesaj wrote:

[code]
[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 *.GCC* .??* *.symvers
/bin/sh: gcc: command not found
[/code][/quote]

Install the gcc package with:
[code]yum install gcc[/code]

gilesaj
Posts: 47
Joined: 2006/08/16 23:53:23
Location: Australia
Contact:

Re: Trying to get ATI HD 4770 to run on Centos 5.5 x86_64

Post by gilesaj » 2010/12/12 12:28:31

I looked at the doco and confirmed that the required packages were installed. I did not have gcc installed.

There are two packages that are for XFree86, but because I already have Gnome I did not install them. I could not find either of them in YUM anyway

[code]
XFree86-Mesa_libGL
XFree86-libs
[/code]
I installed gcc and ran the install for the HD4770 Drivers again but it still did not work. The log is now like the following:

[code]
[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 *.GCC* .??* *.symvers
make -C /lib/modules/2.6.18-194.26.1.el5/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-194.26.1.el5-x86_64'
CC [M] /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2445: warning: ‘kcl_flush_tlb_one’ defined but not used
CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o
/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.c: In function ‘KCL_IOCTL_AllocUserSpace32’:
/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.c:196: error: implicit declaration of function ‘compat_alloc_user_space’
/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.c:196: warning: return makes pointer from integer without a cast
make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o] Error 1
make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-194.26.1.el5-x86_64'
make: *** [kmod_build] Error 2
build failed with return value 2
[Error] Kernel Module : Failed to compile kernel module - please consult readme.
[Message] Kernel Module : update initramfs not required
[/code]

Post Reply