LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-27-2011, 12:24 AM   #1
Alpo
Member
 
Registered: Jul 2011
Location: US and A.
Distribution: RHEL 6.1 & Ubuntu 10.04
Posts: 50

Rep: Reputation: Disabled
ATI Radeon fglrx driver install


Ubuntu 10.04 gives the following error when trying to install the ATI fglrx driver:

Code:
DKMS make.log for fglrx-8.723.1 for kernel 2.6.38 (x86_64)
Wed Jul 27 00:15:17 CDT 2011
AMD kernel module generator version 2.1
make.sh: line 373: [: =: unary operator expected
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.38/build SUBDIRS=/var/lib/dkms/fglrx/8.723.1/build/2.6.x modules
make[1]: Entering directory `/usr/src/linux-source-2.6.38'
  CC [M]  /var/lib/dkms/fglrx/8.723.1/build/2.6.x/firegl_public.o
/var/lib/dkms/fglrx/8.723.1/build/2.6.x/firegl_public.c:402: error: unknown field ‘ioctl’ specified in initializer
/var/lib/dkms/fglrx/8.723.1/build/2.6.x/firegl_public.c:402: warning: initialization from incompatible pointer type
In file included from /var/lib/dkms/fglrx/8.723.1/build/2.6.x/firegl_public.c:443:
/var/lib/dkms/fglrx/8.723.1/build/2.6.x/drm_proc.h: In function ‘FGLDRM__vma_info’:
/var/lib/dkms/fglrx/8.723.1/build/2.6.x/drm_proc.h:497: warning: format ‘%08lx’ expects type ‘long unsigned int’, but argument 5 has type ‘phys_addr_t’
/var/lib/dkms/fglrx/8.723.1/build/2.6.x/firegl_public.c: In function ‘fglrx_pci_suspend’:
/var/lib/dkms/fglrx/8.723.1/build/2.6.x/firegl_public.c:833: error: implicit declaration of function ‘acquire_console_sem’
/var/lib/dkms/fglrx/8.723.1/build/2.6.x/firegl_public.c:855: error: implicit declaration of function ‘release_console_sem’
/var/lib/dkms/fglrx/8.723.1/build/2.6.x/firegl_public.c: In function ‘KCL_SetPageCache_Array’:
/var/lib/dkms/fglrx/8.723.1/build/2.6.x/firegl_public.c:1316: warning: passing argument 1 of ‘KCL_ConvertPageToKernelAddress’ makes pointer from integer without a cast
/var/lib/dkms/fglrx/8.723.1/build/2.6.x/firegl_public.h:325: note: expected ‘void *’ but argument is of type ‘long unsigned int’
/var/lib/dkms/fglrx/8.723.1/build/2.6.x/firegl_public.c: In function ‘__ke__cmpxchg’:
/var/lib/dkms/fglrx/8.723.1/build/2.6.x/firegl_public.c:1473: error: variable or field ‘__ret’ declared void
/var/lib/dkms/fglrx/8.723.1/build/2.6.x/firegl_public.c:1473: error: variable or field ‘__old’ declared void
/var/lib/dkms/fglrx/8.723.1/build/2.6.x/firegl_public.c:1473: error: variable or field ‘__new’ declared void
/var/lib/dkms/fglrx/8.723.1/build/2.6.x/firegl_public.c: In function ‘KAS_Mutex_Initialize’:
/var/lib/dkms/fglrx/8.723.1/build/2.6.x/firegl_public.c:5051: error: implicit declaration of function ‘init_MUTEX’
make[2]: *** [/var/lib/dkms/fglrx/8.723.1/build/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/var/lib/dkms/fglrx/8.723.1/build/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.38'
make: *** [kmod_build] Error 2
build failed with return value 2
Anyone know how I can get around this? My screen resolution is set precisely on crappy until I can get a proper driver for this card.

Thanks.
 
Old 07-27-2011, 02:31 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Do you have any particular reason why you are building from source? As far as I know the fglrx packages are available from repositories:
Code:
eric@ericvs-laptop ~ $ sudo apt-cache search fglrx
xserver-xorg-video-radeon - X.Org X server -- AMD/ATI Radeon display driver
glx-alternative-fglrx - allows the selection of FGLRX as GLX provider
xvba-va-driver - XvBA-based backend for VA API (AMD fglrx implementation)
fglrx-atieventsd - external events daemon for the non-free ATI/AMD RadeonHD display driver
fglrx-control - control panel for the non-free ATI/AMD RadeonHD display driver
fglrx-driver - non-free ATI/AMD RadeonHD display driver
fglrx-glx - proprietary libGL for the non-free ATI/AMD RadeonHD display driver
fglrx-glx-ia32 - proprietary libGL for the non-free ATI/AMD display driver (ia32 libs)
fglrx-modules-dkms - dkms module source for the non-free ATI/AMD RadeonHD display driver
I use them also and never needed to compile from source.

Kind regards,

Eric
 
1 members found this post helpful.
Old 07-27-2011, 03:29 AM   #3
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
fglrx-8.7? That is ancient. It wont work with newer kernels/xorg versions anyway.

Quote:
Originally Posted by EricTRA View Post
Do you have any particular reason why you are building from source?
I'd bet that the OP has a ATI/AMD card that had support dropped in 2008, and is trying to get the old 2008 era drivers working. Just a guess mind you.
 
1 members found this post helpful.
Old 07-27-2011, 10:21 AM   #4
Alpo
Member
 
Registered: Jul 2011
Location: US and A.
Distribution: RHEL 6.1 & Ubuntu 10.04
Posts: 50

Original Poster
Rep: Reputation: Disabled
The repo version was giving me a "No supported device found" error while the source, downloaded from ATI (http://support.amd.com/us/gpudownloa...eon_linux.aspx), is giving me the same thing.

The card I'm using is an ATI Radeon HD 6490m.

Cascade - What does OP mean?

Thanks for the help.
 
Old 07-27-2011, 11:21 AM   #5
sandwormusmc
Member
 
Registered: Nov 2006
Distribution: Fedora 15 x86_64
Posts: 76

Rep: Reputation: 24
Quote:
Originally Posted by Alpo View Post
What does OP mean?
OP = Original poster (in this case, you).
 
1 members found this post helpful.
Old 07-27-2011, 11:23 AM   #6
Alpo
Member
 
Registered: Jul 2011
Location: US and A.
Distribution: RHEL 6.1 & Ubuntu 10.04
Posts: 50

Original Poster
Rep: Reputation: Disabled
Boom goes the dynamite. I'm learning already. Thanks!
 
Old 07-27-2011, 11:36 AM   #7
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Pop!_OS
Posts: 945

Rep: Reputation: 297Reputation: 297Reputation: 297
The atid site has a linux wiki link on the page you download the drivers from. Going there, and then clicking the Ubuntu link we get to here: http://wiki.cchtml.com/index.php/Ubuntu which covers:

Code:
Unsupported adapter 
Specific notes for Radeon HD 6xxx cards with no official support yet (see Hardware#Not_Yet_Supported_or_Unoffically_Supported). 

After installing the fglrx module, you might get the following message when trying to configure X through aticonfig:
You may want to visit that page for what to do next. Maybe try the newer Ubuntu too. It may have more support?
 
1 members found this post helpful.
Old 07-27-2011, 11:41 AM   #8
Alpo
Member
 
Registered: Jul 2011
Location: US and A.
Distribution: RHEL 6.1 & Ubuntu 10.04
Posts: 50

Original Poster
Rep: Reputation: Disabled
Kirchner:

Interesting; thanks for the heads up.

The wiki says, "Numerous reports on forums show that users end up using the drivers successfully anyway, e.g. for an HD 6850 card (BARTS codename). To force Xorg to load the driver for fglrx anyway, just manually create a minimal xorg.conf file, as suggested on this wiki (follow the tutorials)."

How does one manually create a 'minimal xorg.conf' file? I checked out the wiki and the tutorials and I'm not finding anything.

Thanks.
 
Old 07-27-2011, 12:17 PM   #9
Alpo
Member
 
Registered: Jul 2011
Location: US and A.
Distribution: RHEL 6.1 & Ubuntu 10.04
Posts: 50

Original Poster
Rep: Reputation: Disabled
So, I uninstalled the default ati driver in Ubuntu. I reinstalled fglrx from Synaptic (Version 8.723), and it gave me the same error as above.

However, Synaptic confirms the package was installed anyways. So, here's the output of the initial aticonfig command:

Code:
root@bt:~# aticonfig --initial
aticonfig: No supported adapters detected
So, I removed everything to include the open-source ati/radeon driver as well as the ATI supported fglrx driver. Let's start anew.

Any suggestions on how I can fix this glitch?
 
Old 07-28-2011, 05:41 AM   #10
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
OK, my bad, minor mistake- I forgot that the fglrx packages dont match the catalyst version. :S Very annoying.

Quote:
Originally Posted by Alpo View Post
So, I uninstalled the default ati driver in Ubuntu. I reinstalled fglrx from Synaptic (Version 8.723), and it gave me the same error as above.

However, Synaptic confirms the package was installed anyways. So, here's the output of the initial aticonfig command:

Code:
root@bt:~# aticonfig --initial
aticonfig: No supported adapters detected
Odd. You kernel version makes me thin k that you have 11.04, but the fglrx version is wrong for 11.04. It should be 8.840-

http://packages.ubuntu.com/natty/fglrx

8.723 is from 10.04-

http://packages.ubuntu.com/lucid/fglrx

But Idont think that the drvier version is the problem.

Its a 6490m (with 'm' standing for 'mobile'). You probably have 'switchable graphics'.

If you can post the output from this command it would help-

lspci

You should get a readout like this-

Code:
00:00.0 Host bridge: ATI Technologies Inc RX780/RX790 Chipset Host Bridge
00:02.0 PCI bridge: ATI Technologies Inc RD790 PCI to PCI bridge (external gfx0 port A)
00:09.0 PCI bridge: ATI Technologies Inc RD790 PCI to PCI bridge (PCI express gpp port E)
00:0a.0 PCI bridge: ATI Technologies Inc RD790 PCI to PCI bridge (PCI express gpp port F)
00:11.0 SATA controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
00:12.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.1 USB Controller: ATI Technologies Inc SB7x0 USB OHCI1 Controller
00:12.2 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.1 USB Controller: ATI Technologies Inc SB7x0 USB OHCI1 Controller
00:13.2 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 3c)
00:14.1 IDE interface: ATI Technologies Inc SB7x0/SB8x0/SB9x0 IDE Controller
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: ATI Technologies Inc SB7x0/SB8x0/SB9x0 LPC host controller
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
00:14.5 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control
01:00.0 VGA compatible controller: nVidia Corporation G84 [GeForce 8600 GT] (rev a1)
02:00.0 USB Controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
By the way, its always best to put any readouts like that into 'code' tags. Its makes the post and the output easier to read. You dont have to manually put the tags in, just use 'advanced' posting and then hit the "#" symbol above the posting area.
 
1 members found this post helpful.
Old 07-28-2011, 08:04 AM   #11
Alpo
Member
 
Registered: Jul 2011
Location: US and A.
Distribution: RHEL 6.1 & Ubuntu 10.04
Posts: 50

Original Poster
Rep: Reputation: Disabled
cascade -

Here's the lspci printout (let me know if the CODE tags don't work):

Code:
# 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 Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB Controller: Intel Corporation 6 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation 6 Series Chipset Family PCI Express Root Port 2 (rev b5)
00:1c.2 PCI bridge: Intel Corporation 6 Series Chipset Family PCI Express Root Port 3 (rev b5)
00:1c.3 PCI bridge: Intel Corporation 6 Series Chipset Family PCI Express Root Port 4 (rev b5)
00:1d.0 USB Controller: Intel Corporation 6 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series Chipset Family 6 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: ATI Technologies Inc NI Seymour [AMD Radeon HD 6470M]
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
0d:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000
13:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5209 (rev 01)
19:00.0 USB Controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)
Also, just so we're sure, here's my kernel version:
Code:
# uname -r
2.6.38
Lastly, this install is actually BackTrack 5, which is based on Ubuntu 10.04 (see http://www.ubuntubuzz.com/2011/05/wh...ution-bt5.html).

Your thoughts, good sir?
 
Old 07-28-2011, 09:00 AM   #12
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Your code tags worked 100%

Backtrack, that explains why I was confused about the kernel and fglrx versions.

The lspci readout shows me that your laptop does have switchable graphics-

Code:
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: ATI Technologies Inc NI Seymour [AMD Radeon HD 6470M]
The best source for info on switchable graphics with linux that I've found is here-

http://linux-hybrid-graphics.blogspot.com/

"Using acpi_call module to switch on/off discrete graphics card in Linux" is _probably_ what you want to try.

Sorry I cant be more exact, I've never owned a laptop with switchable graphics, so I've never had to solve the problem myself.
 
1 members found this post helpful.
Old 07-28-2011, 12:11 PM   #13
sandwormusmc
Member
 
Registered: Nov 2006
Distribution: Fedora 15 x86_64
Posts: 76

Rep: Reputation: 24
I fought with switchable graphics on my work laptop and Fedora 15 for a couple hours, then realized I had to get back to work. What ended up working for me was adding "i915.modeset=1 radeon.modeset=0" to the GRUB config. That way nouveau in Fedora _only_ used the Intel chip. I'm thinking there is something similar to that in Ubuntu...
 
1 members found this post helpful.
Old 07-28-2011, 04:24 PM   #14
Alpo
Member
 
Registered: Jul 2011
Location: US and A.
Distribution: RHEL 6.1 & Ubuntu 10.04
Posts: 50

Original Poster
Rep: Reputation: Disabled
Sandworm

Ubuntu will let me edit the boot commands by hitting 'e' before GRUB selects a boot path. I've seen a similar solution where a dude put "VGA=radeon" into the commands and it worked for him. Didn't work so hot for me.

It sounds like you forced GRUB to use particular driver. How would I figure out a similar solution for Ubuntu?

HOORAH!

Cascade

Yeah, this 'switchable graphics' thing threw me for a loop. I saw two video cards and my entire world crumbled. Until I read this: http://www.amd.com/us/products/techn...-graphics.aspx

The next logical question is: How I can I configure Ubuntu to run either graphics card at my choosing?

Thanks for all the help.
 
Old 07-28-2011, 04:33 PM   #15
Alpo
Member
 
Registered: Jul 2011
Location: US and A.
Distribution: RHEL 6.1 & Ubuntu 10.04
Posts: 50

Original Poster
Rep: Reputation: Disabled
Here is another resource for hybrid graphics: https://lists.launchpad.net/hybrid-graphics-linux/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ATI Mobility Radeon on OpenSuse 11.4 fglrx/driver issue Tekth Linux - Hardware 6 05-18-2011 06:07 PM
Problem of Radeon M300 with ATI fglrx Driver! shreks Linux - Hardware 1 02-11-2006 03:37 PM
fglrx-driver vs ATI kernel driver for ATI Radeon 9200 in Debian Debian_Poland Debian 3 02-01-2006 01:10 PM
Fedora core 2 vs. ATI's Radeon fglrx driver IgD Red Hat 0 03-14-2004 04:17 AM
I Need help to install fglrx driver for ATI Radeon 9600 reza_s Linux - Newbie 2 02-09-2004 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration