Phoronix Forums  

Go Back   Phoronix Forums > Linux Graphics / X.Org Drivers > AMD/ATI Linux

AMD/ATI Linux Technical support and discussion of the ATI/AMD proprietary Linux driver.

Reply
 
Thread Tools Display Modes
  #1  
Old 10-26-2007, 09:05 AM
ambro814 ambro814 is offline
Junior Member
 
Join Date: Aug 2007
Posts: 26
Default New 8.42.3 and FireGL, better method

I just want to tell you that Kano has found a better method for hacking the driver and I hope he doesn't mind if I post it here:
Install the driver anyway you want. Then extract the package (sh ati-... --extract), go inside fglrx-install.something folder. Download Kano's patch: http://xtruder.homelinux.net/~ambro/...l-8.41.7.patch
Then do:
(Change the patch location)
# patch -p1 < ~/ati.firegl-8.41.7.patch
# cd common/lib/modules/fglrx/build_mod
(Change GCC4 to GCC3 if needed, and x86 to x86_64 if your kernel is 64bit)
(For some weird reason there is a space in 'build_mod', remove it before you execute the command)
# ln -s ../../../../../arch/x86/lib/modules/fglrx/build_mo d/libfglrx_ip.a.GCC4 libfglrx_ip.a.GCC4
# cd 2.6.x
# make

The build should succeed. Then copy the resulting fglrx.ko over the originally installed one somewhere in /lib/modules. Also copy a 'control' file from some older driver supporting your card over the original one (probably /etc/ati/control) (just get it here http://xtruder.homelinux.net/~ambro/control).
Afterwards you should make sure NOT to set any ChipID in your xorg.conf.
You shouldn't see any watermark now.

Last edited by ambro814; 10-26-2007 at 10:02 AM.
Reply With Quote
  #2  
Old 10-26-2007, 09:47 AM
mintcoffee mintcoffee is offline
Junior Member
 
Join Date: Jul 2007
Posts: 16
Default

Hey.. the link to your patch is broken
Reply With Quote
  #3  
Old 10-26-2007, 10:03 AM
ambro814 ambro814 is offline
Junior Member
 
Join Date: Aug 2007
Posts: 26
Default

Quote:
Originally Posted by mintcoffee View Post
Hey.. the link to your patch is broken
it is fixed now
Reply With Quote
  #4  
Old 10-26-2007, 11:49 AM
morppheu morppheu is offline
Junior Member
 
Join Date: Oct 2007
Posts: 2
Default

Thanks!! =)
Reply With Quote
  #5  
Old 10-29-2007, 07:51 AM
GuiPoM GuiPoM is offline
Junior Member
 
Join Date: Oct 2007
Posts: 5
Default

I tried your solution but I cannot complete the steps. Here is the error I got:

Quote:
toto@cursa:~/downloads/ati/fglrx-install.k19206/common/lib/modules/fglrx/build_mod/2.6.x$ make
make -C /lib/modules/2.6.22-14-generic/build SUBDIRS=/home/toto/downloads/ati/fglrx-install.k19206/common/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.22-14-generic »
Building modules, stage 2.
MODPOST 1 modules
WARNING: could not find /home/toto/downloads/ati/fglrx-install.k19206/common/lib/modules/fglrx/build_mod/2.6.x/.libfglrx_ip.a.GCC4.cmd for /home/toto/downloads/ati/fglrx-install.k19206/common/lib/modules/fglrx/build_mod/2.6.x/libfglrx_ip.a.GCC4
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.22-14-generic »
Any idea of what is wrong ?
Reply With Quote
  #6  
Old 10-29-2007, 08:56 AM
ambro814 ambro814 is offline
Junior Member
 
Join Date: Aug 2007
Posts: 26
Default

Quote:
Originally Posted by GuiPoM View Post
Any idea of what is wrong ?
I don't know exactly, maybe you got that symlink wrong, try extracting from scratch and copy the file instead of linking it:
Code:
cp arch/x86/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4 common/lib/modules/fglrx/build_mod
If you use the installer/packager to install the driver, you may as well apply the patch and just run the installer:
./ati-installer.sh 8.42.3 --install/--buildpkg
Reply With Quote
  #7  
Old 10-29-2007, 09:05 AM
GuiPoM GuiPoM is offline
Junior Member
 
Join Date: Oct 2007
Posts: 5
Default

I tried again, I still get this error BUT fglrx.ko is correctly built.

Then after finishing installation I get ati 8.42 working on Firegl V3100 !

So thanks for your help, I first thought I had to wait for 8.43 next month ... now I can try this one today. This is great !

Reply With Quote
  #8  
Old 10-29-2007, 02:10 PM
mintcoffee mintcoffee is offline
Junior Member
 
Join Date: Jul 2007
Posts: 16
Default

I used this method to create my fglrx.ko module, but direct rendering doesn't seem to work (it defaults to MESA). If I used your previous method of directly hacking the PCI IDs, direct rendering works. Any clues as to why? This is with a FireGL V5200.
Reply With Quote
  #9  
Old 10-29-2007, 02:19 PM
ambro814 ambro814 is offline
Junior Member
 
Join Date: Aug 2007
Posts: 26
Default

Quote:
Originally Posted by mintcoffee View Post
I used this method to create my fglrx.ko module, but direct rendering doesn't seem to work (it defaults to MESA). If I used your previous method of directly hacking the PCI IDs, direct rendering works. Any clues as to why? This is with a FireGL V5200.
I don't know exactly what is wrong, but I think is has more to do with the 8.42.3 driver rather than my patch. Does 8.42.3 with the previous patch work? First check if fglrx.ko is loaded and if you have /dev/dri/card0. Then check what /var/log/Xorg.0.log says. It should say something like "DRIScreenInit done". If it says so there's probably something with the libs, but as far as I know, even the mesa opengl lib will work fine. Also have you copied 'control' and removed ChipID from xorg.conf ?

Last edited by ambro814; 10-29-2007 at 02:22 PM.
Reply With Quote
  #10  
Old 10-29-2007, 02:42 PM
mintcoffee mintcoffee is offline
Junior Member
 
Join Date: Jul 2007
Posts: 16
Default

Quote:
Originally Posted by ambro814 View Post
I don't know exactly what is wrong, but I think is has more to do with the 8.42.3 driver rather than my patch. Does 8.42.3 with the previous patch work? First check if fglrx.ko is loaded and if you have /dev/dri/card0. Then check what /var/log/Xorg.0.log says. It should say something like "DRIScreenInit done". If it says so there's probably something with the libs, but as far as I know, even the mesa opengl lib will work fine. Also have you copied 'control' and removed ChipID from xorg.conf ?
Thanks for your help! I was being stupid and realized that I copied fglrx.ko into the wrong location. However, on the bright side, without DRI, I can resume and suspend perfectly fine with 8.42.3
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:23 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2010 by Phoronix Media.