Go Back   Rage3D » Rage3D Discussion Area » Computing Forums » Operating Systems » Linux » Drivers
Rage3D Subscribe Register FAQ Members List Calendar Mark Forums Read

Drivers Discussion forum for Linux drivers.

"
Reply
 
Thread Tools Display Modes
Old Apr 21, 2007, 05:26 PM   #1
Advertisement (Guests Only)

Login or Register to remove this ad
fakbill
Newbie
 
Join Date: Apr 2007
Posts: 14
fakbill is still being judged by the masses


Unhappy New debian Xorg versions numbering and fglrx...

Hi,

Debian has changed the way they number the Xorg version.
/usr/bin/Xorg -version now retruns 'X Window System Version 1.3.0'

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420306 to understand why it is not a bug...

OK it is not a bug but it fully breaks fglrx installation whirh is waiting to a 7.1.0 version.
If you set X_VERSION to 1.3.0 during the the fglrx installation, you manage to compile a flgrx module but it fails to load when X starts saying 'X version mismatch - detected X.org 1.3.0.0, required X.org 7.1.0.0'.

I cannot see a way to get ride of this version check and to get the fglrx driver works again on debian sid (I'm trying this up to date fglrx driver version).
fakbill is offline   Reply With Quote
Old Apr 22, 2007, 05:02 AM   #2
KanoTheMaster
Radeon HD 6850
 
Join Date: Jun 2005
Posts: 191
KanoTheMaster is still being judged by the masses


Default

I played a bit and found that every Xorg 7.2 capable driver would work with a little trick. Older ones can be used for 2d only (only 3 ones tested). For Debian/Ubuntu users just use the following script - does everything automatically including download, patching xorg.conf and shutdown/restart of X.

http://kanotix.com/files/install-fglrx-debian.sh

For others do it manually, example for 8.36.5:
Code:
sed -i 's/\xe8\xec\x4f\xfe\xff\x85\xc0\x7f\x31/\xe8\xec\x4f\xfe\xff\x85\xc0\x90\x90/' x710/usr/X11R6/lib/modules/drivers/fglrx_drv.so
sed -i 's/\xe8\xaa\x72\xfe\xff\x85\xc0\x7f\x23/\xe8\xaa\x72\xfe\xff\x85\xc0\x90\x90/' x710_64a/usr/X11R6/lib64/modules/drivers/fglrx_drv.so
sed -i 's/\x0f\x88\x3c\x09\x00\x00/\x90\xe9\x3c\x09\x00\x00/' x710/usr/X11R6/lib/modules/drivers/fglrx_drv.so
sed -i 's/\x0f\x88\x3b\x08\x00\x00/\x90\xe9\x3b\x08\x00\x00/' x710_64a/usr/X11R6/lib64/modules/drivers/fglrx_drv.so
PS: I removed the hints how find this by purpose. If ATI allows it I will put the info back. But I think the result should not harm anybody - at least until there are new drivers out.

Last edited by KanoTheMaster : Apr 24, 2007 at 07:47 PM.
KanoTheMaster is offline   Reply With Quote
Old Apr 22, 2007, 08:52 AM   #3
fakbill
Newbie
 
Join Date: Apr 2007
Posts: 14
fakbill is still being judged by the masses


Thumbs up

Thanks!

You should really post this patch (the sed lines) here :
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420379
fakbill is offline   Reply With Quote
Advertisement (Guests Only)
Login or Register to remove this ad
Old Apr 22, 2007, 02:57 PM   #4
fakbill
Newbie
 
Join Date: Apr 2007
Posts: 14
fakbill is still being judged by the masses


Default

OK now I fglrx is loaded but, as you said, I get this error :
(II) fglrx(0): driver needs X.org 7.1.x.y with x.y >= 0.0
(II) fglrx(0): detected X.org 1.3.0.0
(WW) fglrx(0): detected X server is not compatible
(WW) fglrx(0): atiddxDriScreenInit failed
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed! *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO) *
(WW) fglrx(0): * no 3D acceleration available *
(WW) fglrx(0): ********************************************* *

Have you also done the job to fix dri? I'm working on this...
fakbill is offline   Reply With Quote
Old Apr 22, 2007, 04:24 PM   #5
fakbill
Newbie
 
Join Date: Apr 2007
Posts: 14
fakbill is still being judged by the masses


Default

Got it!

Edit /usr/lib/xorg/modules/drivers/fglrx_drv.so for instance with khexedit and change
7dd84:0f 88 3c 09 00 00 js 7e6c6 <.L494+0x676>
to
7dd84:0f 89 3c 09 00 00 jns 7e6c6 <.L494+0x676>

and fgl_glxgears works again.

**yeah**
fakbill is offline   Reply With Quote
Old Apr 23, 2007, 04:34 AM   #6
fakbill
Newbie
 
Join Date: Apr 2007
Posts: 14
fakbill is still being judged by the masses


Default

KanoTheMaster :

You should carefully read the ATI license:

"(d) In addition to the license terms above, with respect to portions of
the Software in source code or binary form designed exclusively for use
with the Linux operating system ("ATI Linux Code"), you may use, display,
modify, copy, distribute, allow others to re-distribute, package and re-
package such ATI Linux Code for commercial and non-commercial purposes,
provided that:

i) all binary components of the ATI Linux Code are not modified in any way"

As a result, it is legal to provide a patch fixing the problem but it is not legal to distribute patched ATI binaries. Users will have to apply
those patches themselves until ATI releases a fixed driver.

I hope ATI will update the drivers asap. The fix is so simple to implement...
fakbill is offline   Reply With Quote
Old Apr 23, 2007, 05:27 AM   #7
KanoTheMaster
Radeon HD 6850
 
Join Date: Jun 2005
Posts: 191
KanoTheMaster is still being judged by the masses


Default

I do not redistribute drivers, I download from ATI and patch on the fly. The resulting binary is not redistributed - the debs are even deleted after installing on the system.

Btw I added your hotfix, but I do not really like it much because the logic is just reversed. To remove it fully correct it would require an unconditional jump.

I personally would prefer an override statement in the xorg.conf to do the same if needed.

Last edited by KanoTheMaster : Apr 23, 2007 at 05:29 AM.
KanoTheMaster is offline   Reply With Quote
Old Apr 23, 2007, 09:54 AM   #8
rizrage3d
Newbie
 
Join Date: Apr 2006
Posts: 7
rizrage3d is still being judged by the masses


Default

Hi KanoTheMaster and thanks for your support.
I don't understand very well what does you said here:
Quote:
Originally Posted by KanoTheMaster View Post
.. My script does it automatically for 8.36.5 - 2d only.
Is there a fix that doesn't support 3D acceleration ?

Many thanks.
rizrage3d is offline   Reply With Quote
Old Apr 23, 2007, 11:25 AM   #9
fakbill
Newbie
 
Join Date: Apr 2007
Posts: 14
fakbill is still being judged by the masses


Default

KanoTheMaster : Ok for the way you apply the patch.

Yep I only have change js to jns and it it not as clean as it could be.
But is it cleaner to test something to to "nop nop" just after? I don't think so
Our patches are just ugly hacks and the logic of my patch is conceptually broken but *it works*. Hexa edition will never be a clean way to fix a problem

rizrage3d : As long as you apply the two patches (two lines to be modified in the .so from ati) the 3D works
fakbill is offline   Reply With Quote
Old Apr 23, 2007, 04:07 PM   #10
fakbill
Newbie
 
Join Date: Apr 2007
Posts: 14
fakbill is still being judged by the masses


Default

Fine!

ATI is aware of this bug :
http://ati.cchtml.com/show_bug.cgi?id=648 but it is only a P2 problem

Everybody : Please only consider this solution as an ugly hack. We really need an update by ATI to solve this pb in a clean way.

w&s
fakbill is offline   Reply With Quote
Old Apr 24, 2007, 01:57 AM   #11
rizrage3d
Newbie
 
Join Date: Apr 2006
Posts: 7
rizrage3d is still being judged by the masses


Default

I've tried the latest KanoTheMaster's script. It works perfectly.
Many thanks.
rizrage3d is offline   Reply With Quote
Old Apr 24, 2007, 11:36 AM   #12
dandan
Newbie
 
Join Date: Apr 2007
Posts: 1
dandan is still being judged by the masses


Default Many thanks

after a 3h crisis after I did a dist-upgrade I was lucky enough to find The Patch wich worked perfectly so thank you again.
dandan is offline   Reply With Quote
Old Apr 24, 2007, 01:29 PM   #13
mr_spuck
Newbie
 
Join Date: Jun 2006
Posts: 12
mr_spuck is still being judged by the masses


Default

Wow , nice! That trick makes it work on slackware-current too!
mr_spuck is offline   Reply With Quote
Old May 5, 2007, 12:33 PM   #14
hogg
Newbie
 
Join Date: May 2007
Posts: 2
hogg is still being judged by the masses


Default Xorg version 1.3.0 slackware ati drivers

how can I apply this hack to the slackware current version?
hogg is offline   Reply With Quote
Old May 5, 2007, 01:23 PM   #15
fakbill
Newbie
 
Join Date: Apr 2007
Posts: 14
fakbill is still being judged by the masses


Default

Well you can extract the data from ati driver :
./ati-driver-installer-8.36.5-x86.x86_64.run --extract
and them patch fglrx_drv.so using the two sed lines from install-fglrx-debian.sh

Then...I'm asking a slackware user to tell us the way to install the patched driver on this distribution.
fakbill is offline   Reply With Quote
Old May 5, 2007, 09:10 PM   #16
hogg
Newbie
 
Join Date: May 2007
Posts: 2
hogg is still being judged by the masses


Default

I did manage to get the installer up and going and compile the ati driver but after i used aticonfig then i got this message.
'X version mismatch - detected X.org 1.3.0.0, required X.org 7.1.0.0'.

Detected configuration:
Architecture: i686 (32-bit)
X Server: Xorg 1.3.0

Detected version of X does not have a matching 'x130' directory
You may override the detected version using the following syntax:
X_VERSION=<xdir> ./ati-driver-installer-<ver>-<arch>.run [--install]

The following values may be used for <xdir>:
x430 XFree86 4.3.x
x430_64a XFree86 4.3.x 64-bit
x680 X.Org 6.8.x
x680_64a X.Org 6.8.x 64-bit
x690 X.Org 6.9.x
x690_64a X.Org 6.9.x 64-bit
x700 X.Org 7.0.x
x700_64a X.Org 7.0.x 64-bit
x710 Unknown X Window
x710_64a Unknown X Window
Removing temporary directory: fglrx-install

#################################################################

Xorg -version

X Window System Version 1.3.0
Release Date: 19 April 2007
X Protocol Version 11, Revision 0, Release 1.3
Build Operating System: Slackware 12.0 Slackware Linux Project
Current Operating System: Linux master 2.6.18.8-smp #2 SMP Tue Apr 17 17:07:15 CDT 2007 i686
Build Date: 20 April 2007
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
hogg is offline   Reply With Quote
Old May 7, 2007, 01:07 PM   #17
fakbill
Newbie
 
Join Date: Apr 2007
Posts: 14
fakbill is still being judged by the masses


Default

You must patch before install.
sed -i 's/\xe8\xec\x4f\xfe\xff\x85\xc0\x7f\x31/\xe8\xec\x4f\xfe\xff\x85\xc0\x90\x90/' x710/usr/X11R6/lib/modules/drivers/fglrx_drv.so
sed -i 's/\xe8\xaa\x72\xfe\xff\x85\xc0\x7f\x23/\xe8\xaa\x72\xfe\xff\x85\xc0\x90\x90/' x710_64a/usr/X11R6/lib64/modules/drivers/fglrx_drv.so
sed -i 's/\x0f\x88\x3c\x09\x00\x00/\x90\xe9\x3c\x09\x00\x00/' x710/usr/X11R6/lib/modules/drivers/fglrx_drv.so
sed -i 's/\x0f\x88\x3b\x08\x00\x00/\x90\xe9\x3b\x08\x00\x00/' x710_64a/usr/X11R6/lib64/modules/drivers/fglrx_drv.so

Quoted from the script by KanoTheMaster
fakbill is offline   Reply With Quote
Old May 9, 2007, 11:19 AM   #18
Netsnipe
Newbie
 
Join Date: May 2007
Posts: 1
Netsnipe is still being judged by the masses


Default

Quote:
Originally Posted by fakbill View Post
Got it!

Edit /usr/lib/xorg/modules/drivers/fglrx_drv.so for instance with khexedit and change
7dd84:0f 88 3c 09 00 00 js 7e6c6 <.L494+0x676>
to
7dd84:0f 89 3c 09 00 00 jns 7e6c6 <.L494+0x676>

and fgl_glxgears works again.

**yeah**
Could someone please post the 64-bit version of this hack?

Thanks in advanced,
Andrew "Netsnipe" Lau
Netsnipe is offline   Reply With Quote
Old May 9, 2007, 11:57 AM   #19
KanoTheMaster
Radeon HD 6850
 
Join Date: Jun 2005
Posts: 191
KanoTheMaster is still being judged by the masses


Default

The sed lines are for 32 + 64 bit.
KanoTheMaster is offline   Reply With Quote
Old May 18, 2007, 11:38 AM   #20
fateswarm
Radeon HD 6670
 
Join Date: Mar 2006
Posts: 29
fateswarm is still being judged by the masses


Default

for anyone wondering how to run with the latest sid update that removes the debs made with the above script, a fast fix is to
Code:
X_VERSION=x710 ./ati-driver-installer-8.36.5-x86.x86_64.run

and then

cd /usr/lib/xorg/modules/drivers/

sed -i 's/\xe8\xec\x4f\xfe\xff\x85\xc0\x7f\x31/\xe8\xec\x4f\xfe\xff\x85\xc0\x90\x90/' fglrx_drv.so
sed -i 's/\xe8\xaa\x72\xfe\xff\x85\xc0\x7f\x23/\xe8\xaa\x72\xfe\xff\x85\xc0\x90\x90/' fglrx_drv.so
sed -i 's/\x0f\x88\x3c\x09\x00\x00/\x90\xe9\x3c\x09\x00\x00/' fglrx_drv.so
sed -i 's/\x0f\x88\x3b\x08\x00\x00/\x90\xe9\x3b\x08\x00\x00/' fglrx_drv.so
fateswarm is offline   Reply With Quote
Old May 22, 2007, 07:46 AM   #21
red_alert
Newbie
 
Join Date: May 2007
Posts: 4
red_alert is still being judged by the masses


Default

When I use those sed commands on the driver I later get the following fatal error when starting X:

Backtrace:
0: X(xf86SigHandler+0x81) [0x80ceb41]
1: [0xb7fe2420]
2: /usr/lib/xorg/modules/drivers//fglrx_drv.so(atiddxMiscReadPCIConfig+0x16b) [0xb7c8fbfb]
3: /usr/lib/xorg/modules/drivers//fglrx_drv.so(swlCailCbGetPciBusData+0x4c) [0xb7cb4f5c]
4: /usr/lib/xorg/modules/drivers//fglrx_drv.so [0xb7cc2498]
5: /usr/lib/xorg/modules/drivers//fglrx_drv.so(CailIsPCIExpressBoard+0x1a) [0xb7cc02da]
6: /usr/lib/xorg/modules/drivers//fglrx_drv.so(Cail_PreInit_AsicCaps+0x75) [0xb7cc0515]
7: /usr/lib/xorg/modules/drivers//fglrx_drv.so(CAILEarlyASICInit+0x172) [0xb7cbd762]
8: /usr/lib/xorg/modules/drivers//fglrx_drv.so(swlCailLinuxInit+0x205) [0xb7cb3305]
9: /usr/lib/xorg/modules/drivers//fglrx_drv.so [0xb7c89440]
10: /usr/lib/xorg/modules/drivers//fglrx_drv.so(atiddxPreInit+0x6df) [0xb7c8442f]
11: X(InitOutput+0x9a8) [0x80a2f68]
12: X(main+0x27b) [0x8070e8b]
13: /lib/libc.so.6(__libc_start_main+0xe0) [0x4a7f7f70]
14: X(FontFileCompleteXLFD+0x1e1) [0x8070391]

Fatal server error:
Caught signal 11. Server aborting

---

does anyone have an idea about this? (yes, I'm using some F7-prefinal version - could it be that those patches don't work (or are incompatible) for Fedora's xorg?)
I'd really like to get this working in order to help F7-final users with fglrx.
red_alert is offline   Reply With Quote
Old May 22, 2007, 10:34 AM   #22
KanoTheMaster
Radeon HD 6850
 
Join Date: Jun 2005
Posts: 191
KanoTheMaster is still being judged by the masses


Default

I only tested the Xorg 1.3.0 version of Debian/sid (also backported/compiled it for etch to try. My script mentioned above works correctly. The 4 sed lines are not for the same fglrx module, only 1+3 are for 32 bit and 2+4 for 64 bit. Show
Code:
uname -m
KanoTheMaster is offline   Reply With Quote
Old May 22, 2007, 12:10 PM   #23
red_alert
Newbie
 
Join Date: May 2007
Posts: 4
red_alert is still being judged by the masses


Default

It's an i686.
red_alert is offline   Reply With Quote
Old May 22, 2007, 05:55 PM   #24
KanoTheMaster
Radeon HD 6850
 
Join Date: Jun 2005
Posts: 191
KanoTheMaster is still being judged by the masses


Default

Try installing the driver again and use sed line 1+3 only.
KanoTheMaster is offline   Reply With Quote
Old May 23, 2007, 03:46 PM   #25
red_alert
Newbie
 
Join Date: May 2007
Posts: 4
red_alert is still being judged by the masses


Default

no change, same traceback. not surprising, tho.
red_alert is offline   Reply With Quote
Old May 23, 2007, 04:45 PM   #26
KanoTheMaster
Radeon HD 6850
 
Join Date: Jun 2005
Posts: 191
KanoTheMaster is still being judged by the masses


Default

Well my hack works with current sid, updated my script to get rid of the "Provides: fglrx-driver" because fglrx-driver has currently a confict with xserver-xorg-core. Must be a distro specific problem.
KanoTheMaster is offline   Reply With Quote
Old May 25, 2007, 02:08 AM   #27
FIREcracker
Newbie
 
Join Date: May 2007
Posts: 5
FIREcracker is still being judged by the masses


Default

Hi all,
i'm new in here, and i'm trying to install the new ati drivers;
i read on the net, that now it supports the kernel 2.6.20, but during the installation of them (using kano's script), there is the same error while making the flgrx modules; how could i fix it?
tnx in advance
M@
FIREcracker is offline   Reply With Quote
Old May 25, 2007, 12:41 PM   #28
KanoTheMaster
Radeon HD 6850
 
Join Date: Jun 2005
Posts: 191
KanoTheMaster is still being judged by the masses


Default

The script is tested up to 2.6.22 (ubuntu -5 kernel recompiled for debian). When you use the latest version of it then xorg-server-fglrx is correctly installed and the module can compile when the headers are installed correctly. But you can configure a 2.6.20+ kernel wrong, that means you can enable options that lead to a compile failure. I guess thats the case on your system. CONFIG_PARAVIRT may not be set.

PS: Currently I can not optimize the script because I replaced the old AGP board (with Radeon 9700) by a new PCI-E one and don't have got an ATI/AMD PCI-E card - and I see no reason to buy one. If someone wants to send me a PCI-E card let me know. Right now I am waiting for G33 support

Last edited by KanoTheMaster : May 25, 2007 at 12:49 PM.
KanoTheMaster is offline   Reply With Quote
Old May 25, 2007, 01:11 PM   #29
FIREcracker
Newbie
 
Join Date: May 2007
Posts: 5
FIREcracker is still being judged by the masses


Default

mmm...excuse me, but i' ve not understand! I Have not understood what should i do in order to make fglrx modules on my kernel
tnx again
M@
FIREcracker is offline   Reply With Quote
Old May 25, 2007, 05:42 PM   #30
KanoTheMaster
Radeon HD 6850
 
Join Date: Jun 2005
Posts: 191
KanoTheMaster is still being judged by the masses


Default

Be sure you install a kernel with that config option disabled. Check PM for url.
KanoTheMaster is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian 2.6.16-2-686 Xorg 7.0 fglrx 8.27.10 - instant locks up on any 3d defsdoor Drivers 6 Sep 1, 2006 05:53 AM
intel drivers on debian sarge & Xorg 7 freeware Drivers 3 May 29, 2006 05:28 AM
fglrx 8.24.8 and xorg 7.0 on debian naiveguy Drivers 0 Apr 29, 2006 06:22 PM
Fglrx 8.16.20 / Xorg 6.8.2-10 (debian package) and unresolved symbols problems AcyD Drivers 7 Sep 8, 2005 10:44 AM
does fglrx work with any of the XOrg dev versions? d4rk74m4 Drivers 5 Oct 2, 2004 11:23 PM


All times are GMT -5. The time now is 04:25 AM.



Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
All trademarks used are properties of their respective owners. Copyright ©1998-2011 Rage3D.com
Links monetized by VigLink