![]() |
|
|||||||
| Drivers Discussion forum for Linux drivers. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | Advertisement (Guests Only)
Login or Register to remove this ad
|
|
Radeon HD 5450
Join Date: Apr 2007
Posts: 14
|
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). |
|
|
|
|
|
|
#2 |
|
Radeon HD 5750
Join Date: Jun 2005
Posts: 191
|
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 Last edited by KanoTheMaster : Apr 24, 2007 at 07:47 PM. |
|
|
|
|
|
#3 |
|
Radeon HD 5450
Join Date: Apr 2007
Posts: 14
|
Thanks! You should really post this patch (the sed lines) here : http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420379 |
|
|
|
| Advertisement (Guests Only) |
|
Login or Register to remove this ad
|
|
|
#4 |
|
Radeon HD 5450
Join Date: Apr 2007
Posts: 14
|
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... |
|
|
|
|
|
#5 |
|
Radeon HD 5450
Join Date: Apr 2007
Posts: 14
|
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** |
|
|
|
|
|
#6 |
|
Radeon HD 5450
Join Date: Apr 2007
Posts: 14
|
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... |
|
|
|
|
|
#7 |
|
Radeon HD 5750
Join Date: Jun 2005
Posts: 191
|
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. |
|
|
|
|
|
#8 |
|
Newbie
Join Date: Apr 2006
Posts: 7
|
|
|
|
|
|
|
#9 |
|
Radeon HD 5450
Join Date: Apr 2007
Posts: 14
|
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 ![]() |
|
|
|
|
|
#10 |
|
Radeon HD 5450
Join Date: Apr 2007
Posts: 14
|
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 ![]() |
|
|
|
|
|
#11 |
|
Newbie
Join Date: Apr 2006
Posts: 7
|
I've tried the latest KanoTheMaster's script. It works perfectly. Many thanks. |
|
|
|
|
|
#12 |
|
Newbie
Join Date: Apr 2007
Posts: 1
|
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. |
|
|
|
|
|
#13 |
|
Radeon HD 5450
Join Date: Jun 2006
Posts: 12
|
Wow , nice! That trick makes it work on slackware-current too! |
|
|
|
|
|
#14 |
|
Newbie
Join Date: May 2007
Posts: 2
|
how can I apply this hack to the slackware current version? |
|
|
|
|
|
#15 |
|
Radeon HD 5450
Join Date: Apr 2007
Posts: 14
|
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. |
|
|
|
|
|
#16 |
|
Newbie
Join Date: May 2007
Posts: 2
|
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 |
|
|
|
|
|
#17 |
|
Radeon HD 5450
Join Date: Apr 2007
Posts: 14
|
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 |
|
|
|
|
|
#18 | |
|
Newbie
Join Date: May 2007
Posts: 1
|
Quote:
Thanks in advanced, Andrew "Netsnipe" Lau |
|
|
|
|
|
|
#19 |
|
Radeon HD 5750
Join Date: Jun 2005
Posts: 191
|
The sed lines are for 32 + 64 bit. |
|
|
|
|
|
#20 |
|
Radeon HD 5570
Join Date: Mar 2006
Posts: 29
|
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 |
|
|
|
|
|
#21 |
|
Newbie
Join Date: May 2007
Posts: 4
|
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. |
|
|
|
|
|
#22 |
|
Radeon HD 5750
Join Date: Jun 2005
Posts: 191
|
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 |
|
|
|
|
|
#23 |
|
Newbie
Join Date: May 2007
Posts: 4
|
It's an i686. |
|
|
|
|
|
#24 |
|
Radeon HD 5750
Join Date: Jun 2005
Posts: 191
|
Try installing the driver again and use sed line 1+3 only. |
|
|
|
|
|
#25 |
|
Newbie
Join Date: May 2007
Posts: 4
|
no change, same traceback. not surprising, tho. |
|
|
|
|
|
#26 |
|
Radeon HD 5750
Join Date: Jun 2005
Posts: 191
|
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. |
|
|
|
|
|
#27 |
|
Newbie
Join Date: May 2007
Posts: 5
|
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@ |
|
|
|
|
|
#28 |
|
Radeon HD 5750
Join Date: Jun 2005
Posts: 191
|
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. |
|
|
|
|
|
#29 |
|
Newbie
Join Date: May 2007
Posts: 5
|
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@ |
|
|
|
|
|
#30 |
|
Radeon HD 5750
Join Date: Jun 2005
Posts: 191
|
Be sure you install a kernel with that config option disabled. Check PM for url. |
|
|
|