LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Running fglrx with -current (http://www.linuxquestions.org/questions/slackware-14/running-fglrx-with-current-796669/)

cathectic 03-20-2010 09:08 AM

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)

hajatvrc 03-20-2010 01:58 PM

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

Worked perfectly, thanks for this post.

gauchao 03-21-2010 03:31 PM

Thanks for sharing, cathectic. Do you know if this works with a double head Radeon 3870x2 ?

cathectic 03-22-2010 03:45 AM

No idea. I imagine it does, but ATI haven't put out any release notes for this snapshot that confirm either way.

vdemuth 03-22-2010 02:04 PM

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

cathectic 03-22-2010 03:02 PM

Quote:

Originally Posted by vdemuth (Post 3907783)
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

vdemuth 03-22-2010 03:46 PM

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

cathectic 03-22-2010 04:25 PM

Quote:

Originally Posted by vdemuth (Post 3907895)
But just in case, do you have a link to version 8.721

Yes - I've fixed the README now.

vdemuth 03-23-2010 03:18 AM

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.

gtludwig 03-29-2010 10:44 AM

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

whizje 03-29-2010 06:07 PM

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

mlpa 04-02-2010 09:15 PM

It work's for Ati HD5730 mobility?

mlpa 04-03-2010 07:34 AM

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.

gtludwig 04-05-2010 08:15 AM

mlpa,

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

I couldn't get this working yet... so frustrating...

mlpa 04-05-2010 06:29 PM

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.


All times are GMT -5. The time now is 06:56 PM.