Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ATI Accelleration Support
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
ichief
n00b
n00b


Joined: 07 Feb 2005
Posts: 8

PostPosted: Mon Feb 07, 2005 12:42 am    Post subject: fglrx: Unknown symbol remap_page_range Reply with quote

Yesterday, I decided to setup 64-bit Gentoo on my Athlon 64 machine...I cleared up space on one of my drives and decided it was time to ditch Windows temporarily. Everything has been going great except for problems with the ATI driver. I was trying to try out X (using xorg-x11) but the Xserver would bork with a fatal error related to fglrx. I had no success when I modprobed it manually...supposedly, there is an unknown symbol and it is linked to remap_pfn_range. I've noticed a couple of other entries in this forum related to this; one in particular gave a code fix: https://forums.gentoo.org/viewtopic.php?t=281904&highlight=remappfnrange.

How would I implement this code when I try to re-emerge ati-drivers? I believe I am using 2.6.9-r14...is there a kernel patch I can download or emerge?

Thanks.
Back to top
View user's profile Send private message
Crispy Beef
Apprentice
Apprentice


Joined: 29 Apr 2003
Posts: 194
Location: UK

PostPosted: Mon Feb 07, 2005 2:13 pm    Post subject: Reply with quote

Got all excited when I saw the drivers are now available, had stopped checking for a long time. Anyway, this is what I get when trying to emerge the new ati-drivers... am a little confused as to why xorg would be blocking opengl-update as I thought that was required to run the command 'opengl-update ati'? Is there a proper way to sort this out? It's been an age since I sorted out 3D stuff and that was back in the heady days of 32 bit... ;-)

Code:
These are the packages that I would merge, in order:

Calculating dependencies ...done!
[blocks B     ] <x11-base/xorg-x11-6.8.0-r4 (from pkg x11-base/opengl-update-2.1_pre6)
[ebuild  N    ] x11-base/opengl-update-2.1_pre6  37 kB
[ebuild  N    ] media-video/ati-drivers-8.8.25-r3  7,104 kB

Total size of downloads: 7,142 kB

_________________
--
______
Crispy
Back to top
View user's profile Send private message
babo
Guru
Guru


Joined: 10 Aug 2004
Posts: 477
Location: Ljubljana

PostPosted: Mon Feb 07, 2005 4:21 pm    Post subject: Reply with quote

you have the answers in other ati-drivers threads

https://forums.gentoo.org/viewtopic.php?t=250647&postdays=0&postorder=asc&start=425
Back to top
View user's profile Send private message
Tony420
Apprentice
Apprentice


Joined: 16 Mar 2004
Posts: 193
Location: Corona, CA

PostPosted: Mon Feb 07, 2005 10:39 pm    Post subject: Reply with quote

after going from 2.6.10-r6 back to 2.6.9-r14 I can no longer get the drivers to work. Getting fglrx:
Code:
Unknown symbol remap_pfn_range (dmesg).
When I modprobe I get:
Code:
 modprobe fglrx
FATAL: Error inserting fglrx (/lib/modules/2.6.9-gentoo-r14/video/fglrx.ko): Unknown symbol in module, or unknown parameter (see dmesg)



The thing that pisses me off is it worked fine on 2.6.9 and now all a sudden it doesnt want to work. I have tried to apply the patch but it WILL NOT patch the file..
Back to top
View user's profile Send private message
ichief
n00b
n00b


Joined: 07 Feb 2005
Posts: 8

PostPosted: Tue Feb 08, 2005 6:22 am    Post subject: disabling IOMMU and enabling amd64 agpgart made things worse Reply with quote

I tried out a few of the suggestions on the link you specified, babo, such as disabling the IOMMU and manually selecting /dev/agpgart and the on-CPU GART but when I compiled the kernel I received 4 warnings instead of just one from fglrx. When I went back to selecting IOMMU, I noticed that I received the remap_pfn_range warning still shows up. Actually, I had previously only noticed the warning when emerging the drivers.

Should I upgrade my kernel to 2.6.10 to fix this issue, or is there a way around it in 2.6.9-r14?
Back to top
View user's profile Send private message
Tony420
Apprentice
Apprentice


Joined: 16 Mar 2004
Posts: 193
Location: Corona, CA

PostPosted: Tue Feb 08, 2005 7:36 am    Post subject: Reply with quote

it should work fine on 2.6.9-r14...i used that and never had problems...but when I switched to 2.6.10-r6 and then back to 2.6.9-r14 it fuked up and dont work...and I cant apply the patch to fix it
Back to top
View user's profile Send private message
babo
Guru
Guru


Joined: 10 Aug 2004
Posts: 477
Location: Ljubljana

PostPosted: Tue Feb 08, 2005 11:42 am    Post subject: Reply with quote

My story is that it worked ok in 2.6.9-r14, than I switched to 2.6.10-r7 and module fglrx can not be found. So I'm back in the 2.6.9-r14 and it works.

I don't have the will to go and play arround in 2.6.10-r7 yet.
Back to top
View user's profile Send private message
Tony420
Apprentice
Apprentice


Joined: 16 Mar 2004
Posts: 193
Location: Corona, CA

PostPosted: Tue Feb 08, 2005 2:05 pm    Post subject: Reply with quote

ehh my story is I just bought an eVGA 6800 Ultra @ 450/1.18 for 350.00$...farewell ATI...I wont miss you
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Tue Feb 08, 2005 2:24 pm    Post subject: Reply with quote

Well ... If you change kernel you need to re-emerge the drivers.
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
Tony420
Apprentice
Apprentice


Joined: 16 Mar 2004
Posts: 193
Location: Corona, CA

PostPosted: Tue Feb 08, 2005 2:26 pm    Post subject: Reply with quote

I already did...and thats when it got messed up all a sudden... And I have done it atleast 4 times...but never 2.6.10-r6 to 2.6.9-r14 ...only 2.6.10-r4 to 2.6.9-r14
Back to top
View user's profile Send private message
Bill Cosby
Guru
Guru


Joined: 22 Jan 2005
Posts: 430
Location: Aachen, Germany

PostPosted: Tue Feb 08, 2005 6:56 pm    Post subject: Reply with quote

Hello everyone, I installed my system today (not for the first time) I did everything like I used to, the only difference was that I did accept the keyword "~amd64" as I emerged xorg-x11, and then I emerged ati-drivers.
Well, I get this in my dmesg:
Code:
fglrx: Unknown symbol remap_pfn_range


What's wrong? I did a fresh install, I didn't even change my useflags, only thing was, as mentioned above, the keyword for emerging xorg and I didn't use the alsa modules of the kernel :D, btw I use the 2.6.9-r14 kernel .

Maybe I missed some kernel options, but I really dont knwo what I did diffrent to some previous installs (btw I also installed gentoo 2 days ago, same machine etc.. just wanted to do it agein, now look where it got me :( )


Last edited by Bill Cosby on Wed Feb 09, 2005 12:31 pm; edited 3 times in total
Back to top
View user's profile Send private message
ichief
n00b
n00b


Joined: 07 Feb 2005
Posts: 8

PostPosted: Wed Feb 09, 2005 1:33 am    Post subject: Reply with quote

i also emerged xorg-x11 with the amd64 keyword...is this something that would make a difference?

and btw, i have been recompiling the kernel after emerging the ati-drivers.
Back to top
View user's profile Send private message
seepat
n00b
n00b


Joined: 21 Dec 2004
Posts: 4

PostPosted: Wed Feb 09, 2005 6:00 pm    Post subject: update Reply with quote

hi,
i just did an update and experience the same problems. loading the module fails with :

Code:
unknown symbol remap_pfn_range


im using kernel version 2.6.9-gentoo-r9.
i didnt update my kernel.

any ideas?

regards,
pat[/code]
Back to top
View user's profile Send private message
lostboy1
n00b
n00b


Joined: 03 Sep 2003
Posts: 12
Location: Chicago, IL

PostPosted: Wed Feb 09, 2005 6:37 pm    Post subject: Reply with quote

Well, here is my story on getting this working. I started with a fresh install of 2004.3 with gentoo-dev-sources (2.6.9-gentoo-r14), and ran a emerge -uD world. This brought gcc up to 3.4.3, installed xorg-x11 6.8.0-r4 along with the rest of the updates.

I then emerged the ati-drives and everything seemed to go okay. Had to add the following to my /etc/portage/packages.keywords file:
Code:
media-video/ati-drivers ~amd64
x11-base/opengl-update ~amd64

I ran in to my first problem with the Keyboard InputDevice section of the xorg.conf file generated by fglrxconf. I looked at another config I had working, and noticed I needed to change the driver from "Keyboard" to "kdb":
Code:
  #Driver "Keyboard"
  Driver "kdb"

Now I could start X and get the lovely grey checker board X screen, but upon exiting X I noticed there were problems loading fglrx.o and glx.

Looking at the dmesg output for the fglrx.o error, I noticed the error message:
Code:
fglrx: Unknown symbol remap_pfn_range

With some reseach, it appears there may be a patch that can be applied to fix this, but I chose to upgrade my kernel to 2.6.10-r7.
Code:
ACCEPT_KEYWORDS="~amd64" emerge gentoo-dev-sources

After compiling and installing the new kernel, and recompiling the ati-drivers, the error went away.

Now on to the glx problem. It appears that the libglx.a gets installed in /usr/lib/opengl/xorg-x11/extensions, and the default module path xorg uses is /usr/lib64/modules. I copied the libglx.a file over to where the X server was looking for it and everything seems to load fine now:
Code:
  cp /usr/lib/opengl/xorg-x11/extensions/libglx.a /usr/lib64/modules/extensions


I have some questions on this though;
Would it be better to create a symbolic link in /usr/lib64/modules/extensions/ to the file as oppoesed to a hard copy?
Would it be better to add /usr/lib/opengl/xorg-x11 to the modules path in the xorg.conf file?

Brett
Back to top
View user's profile Send private message
Bill Cosby
Guru
Guru


Joined: 22 Jan 2005
Posts: 430
Location: Aachen, Germany

PostPosted: Wed Feb 09, 2005 8:20 pm    Post subject: Reply with quote

Yep, yep, after emergin the 2.10 kernel I got it working, somehow, still faced the glx problem.
Thanks @ lostboy1 for the solution, but I'm also interested how's it best done, symlink, modules in xorg.conf ...
Back to top
View user's profile Send private message
babo
Guru
Guru


Joined: 10 Aug 2004
Posts: 477
Location: Ljubljana

PostPosted: Wed Feb 09, 2005 11:24 pm    Post subject: Reply with quote

I emerged the drivers again after booting to 2.6.10-r7 and did opengl-update ati and xorg had problems loading "glx" and I said, ok, it's late, I'll deal with this another time, so I rebooted into 2.6.9-r14 and the same problem here. Again I repeated emerge ati-drivers and opengl-update ati, but the problem remains the same.
So I'm stuck with "radeon" driver for now.

Did anyone handle this problem succesfully except Tony420 with buying a nvidia card :) ?
Back to top
View user's profile Send private message
wmartino
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2004
Posts: 140

PostPosted: Thu Feb 10, 2005 3:06 am    Post subject: Reply with quote

I too upgrades to the new opengl-update and am now getting this when I try to run glxgears.

Code:
[20:01:44 ~ $] glxgears
Xlib:  extension "GLX" missing on display ":0.0".
glxgears: Error: couldn't get an RGB, Double-buffered visual.
[20:01:45 ~ $]


Now nothing 3D works :cry: . I tried to reemerge pre5 and still have the same problem. This is not good.
_________________
Intell C2D Q6600 @ 3.0Ghz -- ASUS P5W DH
Zalman 9700 LED -- 8g OCZ Gold Memory -- GECUBE 1950xtx
250g Gentoo64 -- 200g Windows Vista Ultimate -- 200g Mac OSX
250g Windows XP PRO -- Liteon DVD, Pioneer DVR-111D DVD-D/L-RW
Back to top
View user's profile Send private message
Kaartman
n00b
n00b


Joined: 07 Feb 2005
Posts: 29
Location: The Netherlands

PostPosted: Thu Feb 10, 2005 10:39 am    Post subject: Reply with quote

That seems the exact same problem as I am describing in a different ATi topic here : https://forums.gentoo.org/viewtopic.php?p=2074493#2074493

I'd be so thankful if anyone knows the solution.
Back to top
View user's profile Send private message
babo
Guru
Guru


Joined: 10 Aug 2004
Posts: 477
Location: Ljubljana

PostPosted: Thu Feb 10, 2005 11:07 am    Post subject: Reply with quote

I have it working with today's opengl-update, but only with 2.6.10-r7, with 2.6.9-r14 it's not working for now.
Back to top
View user's profile Send private message
Crispy Beef
Apprentice
Apprentice


Joined: 29 Apr 2003
Posts: 194
Location: UK

PostPosted: Thu Feb 10, 2005 11:21 am    Post subject: Reply with quote

WooHooo!!!

Got it working finally, I have a Radeon 9700 Pro and here's the results I've had:

Code:
$ glxgears
10133 frames in 5.0 seconds = 2026.600 FPS
12335 frames in 5.0 seconds = 2467.000 FPS
12335 frames in 5.0 seconds = 2467.000 FPS
12337 frames in 5.0 seconds = 2467.400 FPS


Strange one this, fglrxinfo reports the renderer string as 9500 Pro, is this correct as my card is a 9700 Pro???

Code:
$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9500 Pro Generic
OpenGL version string: 1.3.4769 (X4.3.0-8.8.25)


Majority of what I needed to do was from this thread and a couple of other places, if anybody that is still having issues wants me to post config files etc. then am happy to do so. :-)

Oh yeah... UT2004 runs like a dream in 1280x1024. :D
_________________
--
______
Crispy
Back to top
View user's profile Send private message
Kaartman
n00b
n00b


Joined: 07 Feb 2005
Posts: 29
Location: The Netherlands

PostPosted: Thu Feb 10, 2005 12:09 pm    Post subject: Reply with quote

Code:

cp /usr/lib/opengl/xorg-x11/extensions/libglx.a /usr/lib64/modules/extensions/


I got this from a different topic, but now the GLX is working again. Too bad its the g*dd*mn MESA driver again. opengl-update doesnt seem to work :(

edit : it was from this topic even :D
Back to top
View user's profile Send private message
Kaartman
n00b
n00b


Joined: 07 Feb 2005
Posts: 29
Location: The Netherlands

PostPosted: Thu Feb 10, 2005 3:04 pm    Post subject: Reply with quote

IT WORKS!

22078 frames in 5.0 seconds = 4415.600 FPS
22281 frames in 5.0 seconds = 4456.200 FPS
21972 frames in 5.0 seconds = 4394.400 FPS
22287 frames in 5.0 seconds = 4457.400 FPS
22124 frames in 5.0 seconds = 4424.800 FPS
22236 frames in 5.0 seconds = 4447.200 FPS
20010 frames in 5.0 seconds = 4002.000 FPS

those are my results in glxgears :)

my fglrxinfo output :

display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9800 SE Generic
OpenGL version string: 1.3.4769 (X4.3.0-8.8.25)


Ok, what did I do?

Since i read about people got much troubles in 2.6.9 i decided to emerge the hardened-2.6.10-r3 kernel. I compiled it with the options in some of the tutors

- proc set to Athlon64/Opteron
- IOMU (or something) OFF
- agpgart on as module

i modprobed the :
agpgart
amd64_agp

and then re-emerged the ati-drivers (note that the /usr/src/linux symlink must be renewed if upgrading) and then i 'opengl-update ati', added the fglrx to the /etc/modules.autoload.d/2.6 and reboot-ed

since then its working :) :) :)
Back to top
View user's profile Send private message
wmartino
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2004
Posts: 140

PostPosted: Fri Feb 11, 2005 4:46 am    Post subject: Reply with quote

Kaartman wrote:
Ok, what did I do?

Since i read about people got much troubles in 2.6.9 i decided to emerge the hardened-2.6.10-r3 kernel. I compiled it with the options in some of the tutors

- proc set to Athlon64/Opteron
- IOMU (or something) OFF
- agpgart on as module

i modprobed the :
agpgart
amd64_agp

and then re-emerged the ati-drivers (note that the /usr/src/linux symlink must be renewed if upgrading) and then i 'opengl-update ati', added the fglrx to the /etc/modules.autoload.d/2.6 and reboot-ed

since then its working :) :) :)


Worked just great. My only problem now is that wine-bin wont work with the 2.6.10 series kernels.
_________________
Intell C2D Q6600 @ 3.0Ghz -- ASUS P5W DH
Zalman 9700 LED -- 8g OCZ Gold Memory -- GECUBE 1950xtx
250g Gentoo64 -- 200g Windows Vista Ultimate -- 200g Mac OSX
250g Windows XP PRO -- Liteon DVD, Pioneer DVR-111D DVD-D/L-RW


Last edited by wmartino on Fri Feb 11, 2005 9:18 am; edited 1 time in total
Back to top
View user's profile Send private message
ichief
n00b
n00b


Joined: 07 Feb 2005
Posts: 8

PostPosted: Fri Feb 11, 2005 6:25 am    Post subject: working ati drivers Reply with quote

Well, I got my ati drivers working yesterday, so I figured I'd let you guys know and thank you. I ended up using the following command to grab the latest kernel source code (2.6.10-r6, i believe) : ACCEPT_KEYWORDS="~amd64" emerge gentoo-dev-sources ; then I recompiled, rebooted, re-emerged the ati drivers and the warning went away!

My glxgears results are between 3300 and 3600 for an A64 3200+ system with an ATI Radeon 9800 Pro.

Thanks again! Now, to get TV output to work under clone mode...

edit: btw, i left IOMMU on and am using the internal ATI AGPGART module.
Back to top
View user's profile Send private message
all-inc.
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2004
Posts: 138
Location: Darmstadt.Germany.EU

PostPosted: Fri Feb 11, 2005 11:39 pm    Post subject: remap_page_range <-> remap_pfn_range Reply with quote

i just found something about
Code:
unknown symbol remap_pfn_range

an exported symbol changed it's name from 2.6.9 to 2.6.10 from remap_page_range to remap_pfn_range
2.6.9 or newer:
Code:
linux/mm/memory.c : EXPORT_SYMBOL(remap_page_range);


so while compiling it, it expects the newer symbol to be exported...
if you prefere using 2.6.9 just unpack the ati-drivers manually and change the (i think it was) three remap_pfn_range(...) calls to remap_page_range(...)
see man grep and man ebuild :D

cya all-inc.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 2 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum