LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-20-2010, 08:08 AM   #1
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 34
Running fglrx with -current


For anyone who is interested in doing so (e.g. if, like me, you have an HD5000/ Evergreen card) , ATI have given a pre-release of fglrx that works with X Server 1.7 to Ubuntu.

With a bit of recycling and some patches from Arch on top for 2.6.33 support, I've turned that into a working Slackbuild here:

http://strangeworlds.co.uk/slackbuilds/fglrx/

See the README.TXT for the URL to obtain the Ubuntu source tarball.

Obviously, it works for me, so YMMV, etc (I'm running this on Slackware64 -current - I don't have Slackware 32 bit around to test with)
 
Old 03-20-2010, 12:58 PM   #2
hajatvrc
LQ Newbie
 
Registered: Mar 2010
Distribution: Arch Linux
Posts: 13

Rep: Reputation: Disabled
Thanks

I can't tell you how much easier this made my life.

Worked perfectly, thanks for this post.
 
Old 03-21-2010, 02:31 PM   #3
gauchao
Member
 
Registered: Dec 2009
Distribution: SLACKWARE 14.1 64bit
Posts: 162

Rep: Reputation: 24
Thanks for sharing, cathectic. Do you know if this works with a double head Radeon 3870x2 ?
 
Old 03-22-2010, 02:45 AM   #4
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Original Poster
Rep: Reputation: 34
No idea. I imagine it does, but ATI haven't put out any release notes for this snapshot that confirm either way.
 
Old 03-22-2010, 01:04 PM   #5
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 768

Rep: Reputation: 92
Running your slackbuild errors out as below. Any idea why?

Code:
./fglrx.SlackBuild: line 47: cd: fglrx-installer-8.660: No such file or directory
 
Old 03-22-2010, 02:02 PM   #6
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by vdemuth View Post
Running your slackbuild errors out as below. Any idea why?

Code:
./fglrx.SlackBuild: line 47: cd: fglrx-installer-8.660: No such file or directory
Looks like you have the wrong tarball - the script is expecting 8.721
 
Old 03-22-2010, 02:46 PM   #7
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 768

Rep: Reputation: 92
Got the tarball from the link in your readme. Noticed it was a different tarball so just edited the slackbuild to change that No.only. Wouldn't have thought that would make a great deal of difference. But just in case, do you have a link to version 8.721
 
Old 03-22-2010, 03:25 PM   #8
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by vdemuth View Post
But just in case, do you have a link to version 8.721
Yes - I've fixed the README now.
 
Old 03-23-2010, 02:18 AM   #9
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 768

Rep: Reputation: 92
Work with the new link, but had to adjust the slackbuild a little for it to build. Probably just my box causing that. Thanks for the great job.
 
Old 03-29-2010, 09:44 AM   #10
gtludwig
Member
 
Registered: Oct 2005
Location: Brazil
Distribution: Slackware64-current
Posts: 221

Rep: Reputation: 16
not working here

hi,

The SlackBuild builds and installs OK, but it doesn't works. At ##slackware I got help from adamk75 and got up to:

fglrx builds and installs, as can be seen here.

Code:
# modprobe fglrx
FATAL: Error inserting fglrx (/lib/modules/2.6.33/drivers/char/drm/fglrx.ko): Invalid module format
I pastebin my -current kernel .config here, /var/log/Xorg.0.log here, and here's my dmesg output.

Thanks in advance,
gtludwig
 
Old 03-29-2010, 05:07 PM   #11
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 583

Rep: Reputation: 129Reputation: 129
Got it working with with slackware-32 with a little patch to the patch from http://www.mail-archive.com/debian-b...msg753915.html

Code:
 #if defined(__i386__)
 #ifndef do_div
@@ -1470,7 +1478,18 @@
 #ifndef __HAVE_ARCH_CMPXCHG
     return __fgl_cmpxchg(ptr,old,new,size);
 #else
-    return __cmpxchg(ptr,old,new,size);
+    /* expanding __cmpxchg macro causes a reference on an undefined symbol
+     * when used with non-constant size */
+    switch (size) {
+    case 1: { volatile u8 *_ptr = ptr; return cmpxchg(_ptr, old, new); }
+    case 2: { volatile u16 *_ptr = ptr; return cmpxchg(_ptr, old, new); }
+    case 4: { volatile u32 *_ptr = ptr; return cmpxchg(_ptr, old, new); }
+#ifdef __x86_64__
+    case 8: { volatile u64 *_ptr = ptr; return cmpxchg(_ptr, old, new); }
+#endif
+    default:
+        return old;
+    }
 #endif
 }
thanks

Last edited by whizje; 03-29-2010 at 05:10 PM. Reason: wrong url
 
Old 04-02-2010, 08:15 PM   #12
mlpa
Member
 
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 496

Rep: Reputation: 37
It work's for Ati HD5730 mobility?
 
Old 04-03-2010, 06:34 AM   #13
mlpa
Member
 
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 496

Rep: Reputation: 37
I installed Slackware64 -current, and the slackbuild of fglrx.
I have to run the command
Quote:
aticonfig --initial
but then it work like a charm.

My thanks to you.
I sugeston, can you put you script in slackbuild? And try to maintain it?

Its a big help for all slackers that use ati.
 
Old 04-05-2010, 07:15 AM   #14
gtludwig
Member
 
Registered: Oct 2005
Location: Brazil
Distribution: Slackware64-current
Posts: 221

Rep: Reputation: 16
mlpa,

which driver you used?
how did you applied the patch?

I couldn't get this working yet... so frustrating...
 
Old 04-05-2010, 05:29 PM   #15
mlpa
Member
 
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 496

Rep: Reputation: 37
I will put my steps here, hope will help:
1. - I download the files in this post
2. - download the driver from here: http://archive.ubuntu.com/ubuntu/poo...21.orig.tar.gz
3. - I put all the files in a folder:
3.1 - Ati Driver
|-> README.TXT
|-> doinst.sh
|-> fglrx-2.6.33.patch
|-> fglrx.SlackBuild
|-> slack-desc
|-> fglrx-installer_8.721.orig.tar.gz
4. - Then inside the folder in a terminal you run
Quote:
sudo sh fglrx.SlackBuild
5. - You see the output, when it ends you just run in the terminal
Quote:
sudo installpkg /tmp/fglrx*.tgz
6. - At this time the driver is installed, I recomend reboot the box
7. - Finaly you just have to run
Quote:
aticonfig --initial
to update your xorg.conf
8. - Start X server and run
Quote:
glxinfo
and
Quote:
glxgear
if the commands work correctly the driver is installed and functioning.
 
  


Reply

Tags
fglrx, linux


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't get ATI fglrx driver running traene Linux - Hardware 4 06-10-2007 06:50 AM
fglrx problems with Slackware-Current MoridinBG Slackware 1 03-30-2007 01:53 PM
Package-Problems after installing current fglrx MaxistXXL Linux - Hardware 0 01-20-2007 07:06 AM
fglrx running but has bad results wasisme Linux - Hardware 1 12-30-2005 12:37 AM
fglrx running but... wasisme Linux - Hardware 6 12-29-2005 09:49 PM


All times are GMT -5. The time now is 05:59 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration