LinuxQuestions.org
Help answer threads with 0 replies.
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 05-03-2004, 10:18 PM   #1
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
ATI FGLRX 3.7.0 work with Xorg and XFree 4.4!


After reading another post, someone else mentioned they had it working.
I tried it out, and after a bit of tinkering, the Xfree 4.3 drivers do indeed work with X 4.4!
No more stock radeon module for my Radeon 9000 Pro

Here are the details.

I used fglrx-glc22-4.3.0-3.7.0.i386.rpm from the ati drivers page.
rpm2tgz to a tgz and installpkg.

Then, I used the same patches I had to use to get it working before

Code:
mike@gobot:/lib/modules/fglrx/build_mod$ cat fglrx-2.6-vmalloc-vmaddr.patch 
diff -ruN build_mod.orig/firegl_public.c build_mod/firegl_public.c
--- build_mod.orig/firegl_public.c      2003-09-05 00:45:33.539384168 +0200
+++ build_mod/firegl_public.c   2003-09-05 00:47:13.193234480 +0200
@@ -129,7 +129,9 @@
         #define pte_offset  pte_offset_map
     #endif
 #endif
-
+#ifndef VMALLOC_VMADDR
+#define VMALLOC_VMADDR(x)  ((unsigned long)(x))
+#endif
 // ============================================================
 #ifndef TRUE
 #define TRUE 1
And this one if you're running an AMD, which I am.

Code:
</build_mod$ cat fglrx-3.2.8-fix-amd-adv-spec.patch 
--- firegl_public.c.orig        2003-09-22 04:43:30.000000000 +0200
+++ firegl_public.c     2003-10-09 00:14:41.337778176 +0200
@@ -3106,7 +3108,7 @@
 
 int __ke_amd_adv_spec_cache_feature(void)
 {
-#if ( (PAGE_ATTR_FIX == 1) || (LINUX_VERSION_CODE == KERNEL_VERSION(2,4,19)) )
+#if ( (PAGE_ATTR_FIX == 1) || (LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,19)) )
 /* the kernel already does provide a fix for the AMD Athlon
    big page attribute / cache flush data consistency system bug on its own.
    (AMD claimed that CPU cache behaviour for such pages is not specified.)
To run these patches, I used

patch -p1 <patchname.patch
The second one, I had to specify the filename firegl_public.c

My kernel is configured with agpgart and via_agp as modules, I also have the radeon module compiled.

I built the fglrx module, and it installed fine.

Here are some excerpts from my xorg.conf file to help out, if they do.

Code:
Section "Device"
    Identifier  "Radeon 9000 Pro"
    Driver      "fglrx"
    VideoRam    65536
    Option      "composite_sync" "off"
    Option      "AGPFastWrite"  "off"
    Option      "AGPMode"       "4"
    Option      "EnablePageFlip" "off"
    Option      "SWCursor"      "off"
    # Insert Clocks lines here if appropriate
EndSection


Section "Screen"
    Identifier  "Screen 1"
    Device      "Radeon 9000 Pro"
    Monitor     "SVA"
    DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes       "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection
Hope this helps others.

--Shade
 
Old 05-04-2004, 01:37 AM   #2
Duffy
Member
 
Registered: Aug 2003
Posts: 54

Rep: Reputation: 15
That is exactly what I did with my Slackware9.1 current and Xorg installed except I used the 3.2.8 drivers

Worked just fine, even though in the x.org log.. there is a error or message saying something about "Not having Xfree4.3" but everything is working FINE

ATI9700 Pro
Asus K8V Deluxe
AGP and VIA Chipset built into the kernel ( not modules )


Last edited by Duffy; 05-04-2004 at 01:38 AM.
 
Old 05-04-2004, 06:58 PM   #3
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Rep: Reputation: 30
COOOL. I want to try this now. Shade, can you elaborate on these patches a little? Do i just create 2 files in vi and paste that code into it and save them?

Do I run them like this?

# patch -p1 <fglrx-2.6-vmalloc-vmaddr.patch

and

# patch -p1 <fglrx-3.2.8-fix-amd-adv-spec.patch firegl_public.c

(I do have an AMD)

btw, im running a radeon 8500, i wonder if this will work.

thanks!
 
Old 05-04-2004, 10:04 PM   #4
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418

Original Poster
Blog Entries: 1

Rep: Reputation: 46
That's exactly what you do, Murray. Leave out the first line though, that starts with the cat command, as I'm just printing the text to the screen.

Should work for the 8500 too.

--Shade
 
Old 05-05-2004, 10:30 PM   #5
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Rep: Reputation: 30
hmm didn't seem to work for me.

i downloaded and installed the latest ati driver, (rpm2tgz, and installpkg).
i then went to /lib/modules/fglrx/build_mod/ and created those 2 patch files.
i ran them..

the second time, it said:

Reversed (or previously applied) patch detected! Assume -R? [n]

I put "y" and hit enter. no error messages.

I ran make.sh to make the module, ran fine.
Then I ran make_install.sh, and I got:
FATAL: Error inserting fglrx (/lib/modules/2.6.5/kernel/drivers/char/drm/fglrx.ko): Unknown symbol in module, or unknown parameter (see dmesg)..

dmesg says:

fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
fglrx: Unknown symbol have_cpuid_p

when I use my fglrx XF86Config-4 file, i get an error..

(II) Module fglrx: vendor="Fire GL - ATI Research GmbH, Germany"
compiled for 4.3.0.1, module version = 3.7.6
Module class: XFree86 Video Driver
ABI class: XFree86 Video Driver, version 0.6
(II) UnloadModule: "fglrx"
(II) Unloading /usr/X11R6/lib/modules/drivers/fglrx_drv.o
(EE) Failed to load module "fglrx" (module requirement mismatch, 0)
(II) LoadModule: "mouse"
(II) Loading /usr/X11R6/lib/modules/input/mouse_drv.o
(II) Module mouse: vendor="The XFree86 Project"
compiled for 4.4.0, module version = 1.0.0
Module class: XFree86 XInput Driver
ABI class: XFree86 XInput driver, version 0.4
(EE) No drivers available.

Fatal server error:
no screens found

any thoughts?
 
Old 05-06-2004, 12:46 AM   #6
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418

Original Poster
Blog Entries: 1

Rep: Reputation: 46
Hmm.. Perhaps they've incorporated that second patch into it by now.

Clean out /lib/modules/fglrx/ and reinstall, apply only the first patch.

Try it then?

Also, that dmesg line about fglrx you will get whether it worked or not, check for something abnormal about DRI being already loaded, previously loaded, something like that.

--Shade
 
Old 05-07-2004, 01:14 AM   #7
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Rep: Reputation: 30
no such luck. still get the same behavior, even with dri and glx commented out of the config file.
 
Old 05-08-2004, 04:17 AM   #8
xanas3712
Member
 
Registered: Apr 2004
Distribution: Slackware/Mandrake/Debian (sarge)
Posts: 266

Rep: Reputation: 30
having the same trouble...anyone else found a way to install this?
 
Old 05-08-2004, 11:00 AM   #9
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418

Original Poster
Blog Entries: 1

Rep: Reputation: 46
I have no idea, I don't get that message about cpuid_p

--Shade
 
Old 05-08-2004, 12:33 PM   #10
Duffy
Member
 
Registered: Aug 2003
Posts: 54

Rep: Reputation: 15
IIRC

Neither of those patches are needed for the latest ATI drivers
 
Old 05-08-2004, 12:57 PM   #11
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418

Original Poster
Blog Entries: 1

Rep: Reputation: 46
Well, I had to use them on my system. Go figure. Inconsistency must be ATI's driver trademark.

--Shade
 
Old 05-08-2004, 01:44 PM   #12
Duffy
Member
 
Registered: Aug 2003
Posts: 54

Rep: Reputation: 15
3.7.0 is not the latest driver

3.7.6 is

Last edited by Duffy; 05-08-2004 at 01:46 PM.
 
Old 05-08-2004, 01:47 PM   #13
xanas3712
Member
 
Registered: Apr 2004
Distribution: Slackware/Mandrake/Debian (sarge)
Posts: 266

Rep: Reputation: 30
Ok, I have 3.7.6.. checked to make sure

Make works fine, make install however gives ...

bash-2.05b# sh make_install.sh
- creating symlink
- recreating module dependency list
- trying a sample load of the kernel module
FATAL: Error inserting fglrx (/lib/modules/2.6.5/kernel/drivers/char/drm/fglrx.ko): Invalid module format
failed.

And when I try to use the module anyway in XF86Config it basically says the same thing. Now I did get this error in XFree4.3 and it "worked" anyway.. but it still didnt' give me proper 3d accel so that may be some other reason.

At this point I'll say that mandrake is much easier as far as installing these goes.. but I think that's more the fault of ATI than anyone else.. *sigh*

Last edited by xanas3712; 05-08-2004 at 01:56 PM.
 
Old 05-13-2004, 02:35 PM   #14
asmbubba
LQ Newbie
 
Registered: May 2004
Location: louisiana
Distribution: source code
Posts: 2

Rep: Reputation: 0
Thumbs up

I just installed ATI's 3.7.6 driver with xorg 6.7.0 and everything went smoothly. I installed it the exact same way I did with xfree 4.3 too. I remember trying xfree 4.4 when it came out, and I did have problems with ATI's driver (something about wrong version or something; cant remember exactly). I dont have a box with xfree 4.4 rite now (and prolly never will) so I cant play with it. BTW, im running kernel 2.6.6 and I compiled the module with GCC 3.4.0.
 
Old 05-13-2004, 03:41 PM   #15
xanas3712
Member
 
Registered: Apr 2004
Distribution: Slackware/Mandrake/Debian (sarge)
Posts: 266

Rep: Reputation: 30
did you compile xorg or is there a package for it somewhere? I compiled it.. the thing is.. I may have myself to blame for the problem as I simply did a make install over my current Xfree installation.. perhaps I should have removed it first and that would have solved the issue..... who knows..

BTW.. the driver did work in Xorg.. just not.. right
 
  


Reply


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
cannot get DRI to work with ATI fglrx drivers under X alesz Fedora 2 06-09-2005 07:39 AM
ati drivers-xfree and Xorg Leldorion Linux - Newbie 10 05-14-2005 01:23 PM
Getting Xorg 6.7 to work with Savage. XFree 3.3.6 RobTek Linux - Newbie 2 10-20-2004 08:49 AM
ATi fglrx 3.9.0 and xorg slackMeUp Slackware 12 06-27-2004 12:46 PM
ATI fglrx 3.7.6 don't work under XFree86 4.4 sharpie Slackware 2 05-24-2004 09:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:57 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