View previous topic :: View next topic |
Author |
Message |
tomaw Guru
Joined: 26 Mar 2003 Posts: 429 Location: UK
|
Posted: Mon Dec 29, 2003 8:58 pm Post subject: |
|
|
I have a Radeon 9000.
When I follow these instructions (ut2003 doesn't seem to work for me with the kernel radeon driver) everything works ok, but the system dies instantly when I run wine.
I've set the optimisation/speed setting where it mentions winex to the recommened setting, but I'm still having the problem.
Anyone else seen this? _________________ Tom Wesley |
|
Back to top |
|
|
kronon Apprentice
Joined: 11 Aug 2003 Posts: 212 Location: NL
|
Posted: Wed Dec 31, 2003 2:06 pm Post subject: |
|
|
The stopid driver won't compile . I have the newest gentoo sources. It worked with older vanila versions (2.6.0-betasomething). But a function is missing in the kernel. So it won't compile . I have searched for it and found in a log that some dude deleted it out of the source because "it didn't do any thing". Well my driver crashes if I delete the function and it won't compile if I keep it . |
|
Back to top |
|
|
tomaw Guru
Joined: 26 Mar 2003 Posts: 429 Location: UK
|
Posted: Wed Dec 31, 2003 2:15 pm Post subject: |
|
|
Mine compiles perfectly. Exactly what error message do you get? _________________ Tom Wesley |
|
Back to top |
|
|
compuboy86 Tux's lil' helper
Joined: 03 Apr 2003 Posts: 79
|
Posted: Wed Dec 31, 2003 10:44 pm Post subject: |
|
|
I'm confused because the ati drivers are binaries...i.e. no compiling. In the kernel make sure you take of DRI support |
|
Back to top |
|
|
crazy-bee Apprentice
Joined: 03 Jan 2003 Posts: 170
|
Posted: Mon Jan 05, 2004 1:29 am Post subject: |
|
|
*Sigh*
Any news on nosferats problem?
I'm having the same thing with different hardware, Radeon 9500 Pro, on gentoo-dev-2.6.0, 2.6.0-mm1, 2.6.0-rc1-mm1 on an A7M266-D mainboard (dual athlon-mp).
-internal agpgart leads to a blank screen and a dead computer
-external agpgart loads, then I'm seeing in /var/log/XFree86.0.log
(II) fglrx(0): [drm] created "fglrx" driver at busid "PCI:1:5:0"
(II) fglrx(0): [drm] added 8192 byte SAREA at 0xe0932000
(II) fglrx(0): [drm] mapped SAREA 0xe0932000 to 0x401e6000
(II) fglrx(0): [drm] framebuffer handle = 0xd0000000
(II) fglrx(0): [drm] added 1 reserved context for kernel
(II) fglrx(0): DRIScreenInit done
(II) fglrx(0): Kernel Module Version Information:
(II) fglrx(0): Name: fglrx
(II) fglrx(0): Version: 3.7.0
(II) fglrx(0): Date: Dec 18 2003
(II) fglrx(0): Desc: ATI Fire GL DRM kernel module
(II) fglrx(0): Kernel Module version matches driver.
(II) fglrx(0): Kernel Module Build Time Information:
(II) fglrx(0): Build-Kernel UTS_RELEASE: 2.6.1-rc1-mm1
(II) fglrx(0): Build-Kernel MODVERSIONS: no
(II) fglrx(0): Build-Kernel __SMP__: no
(II) fglrx(0): Build-Kernel PAGE_SIZE: 0x1000
(II) fglrx(0): [drm] register handle = 0xbf000000
(EE) fglrx(0): [agp] unable to acquire AGP, error "xf86_ENODEV"
(EE) fglrx(0): cannot init AGP
(II) fglrx(0): [drm] removed 1 reserved context for kernel
(II) fglrx(0): [drm] unmapping 8192 bytes of SAREA 0xe0932000 at 0x401e6000
(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): ********************************************* *
and in /var/log/messages:
[fglrx] Maximum main memory to use for locked dma buffers: 431 MBytes.
[fglrx] module loaded - fglrx 3.7.0 [Dec 18 2003] on minor 0
[fglrx] Maximum main memory to use for locked dma buffers: 431 MBytes.
[fglrx:firegl_unlock] *ERROR* Process 7726 using kernel context 0
I have X11 without dri then and 100 FPS.
If I modprobe amd-k7-agp after agpgart, I'm getting dma_timer_expiry and the system hangs (I can change console, though).
I tried with or without ACPI, with or without framebuffer, with 3.2.8 or 3.7.0
Any help? The line SMP = No is giving head-aches to me, hehe. |
|
Back to top |
|
|
compuboy86 Tux's lil' helper
Joined: 03 Apr 2003 Posts: 79
|
Posted: Mon Jan 05, 2004 5:45 am Post subject: |
|
|
I'm stumped. |
|
Back to top |
|
|
nosferat n00b
Joined: 17 Oct 2003 Posts: 21 Location: Colden, NY USA
|
Posted: Tue Jan 06, 2004 5:19 pm Post subject: |
|
|
compuboy86 wrote: | Nos- sorry I've been away from the forums for a while. I think essentially that your problem is for some reason, gentoo won't load agpgart. Try this (sorry if its redundant- I find that if I start over from square 1 I can work through solutions) Configure your kernel (2.6) as the following: |
OK... I tried all the stuff you suggested, but to no avail. I took ACPI out of my kernel, compiled exactly as per your instructions, went into X... and got a black screen of death. Even the vulcan nerve pinch would wake it up, as usual... when I checked XFree86.0.log after rebooting, it was filled with the contents of a random file from /etc. (changed every time i tried running X) it says it loads agpgart, but if i preload agpgart and sis-agp it freezes. if i don't preload them before running X, it works just fine but with no DRI...
I have a hunch that the kernel doesn't support the agp on my chipset...
Dave _________________ stick a fork in it... |
|
Back to top |
|
|
compuboy86 Tux's lil' helper
Joined: 03 Apr 2003 Posts: 79
|
Posted: Wed Jan 07, 2004 5:01 am Post subject: |
|
|
Hmm, because your AGP bridge isn't even showing up in lspci, I think you may want to take a look at your bios.
There are usually settings which say something to the extent "Plug and Play O/S" Say no to that. And make sure that AGP is your default video device. Only thing I can think of off the top of my head |
|
Back to top |
|
|
crazy-bee Apprentice
Joined: 03 Jan 2003 Posts: 170
|
Posted: Wed Jan 07, 2004 3:29 pm Post subject: |
|
|
nosferat: I have exactly the same symptoms you describe. Since I'm having some not that common chipset (760mpx; dual athlon), I also think the problem is some not supported chipset. But, on the other hand, I had it working under 2.4.x. I'm helpless, hehe. All my messages to kernel-dev stayed unreplied
In BIOS, plug+Play is Off, and defualt video to AGP. ACPI disabled. (Well, I tried any combination hehe)
Now I suck with 500 fps and an old TNT2 |
|
Back to top |
|
|
morpha n00b
Joined: 05 Mar 2003 Posts: 20 Location: Portland, OR
|
Posted: Thu Jan 08, 2004 4:17 pm Post subject: ati-drivers wont compile |
|
|
Bear with me, I'm writing to you via lynx since x won't start:
I have been trying to emerge ati-drivers with varios 2.6 kernels with no success. It always starts the emerge, states it will not creat the fglrx module then gets an exitcode error then stops.
I have tried using xfree-4.3.0-r2 and r3, kernel 2.6.0 and now 2.6.1-rc1. I have it using agpgart and rtc as modules autoloading but have tried them included in the kernel with dri on and off and there has been no change. I am trying to get gdm running with kde adn my hardware is as follows:
Shuttle SN41G2 (nForce2) with Athlon XP 3000+ and AIW Radeon 9700 Pro.
Anyone have any ideas? I didn't post any output because I'm not sure what to send. The AGP in nForce has always been quirky; should it be included in the kernel and/or what is is the module name? People write that KDE does not get along well with 2.6, is that true? Probably unrelated but qt will not emerge either.
Any advice would help; I am really stuck- thanks. |
|
Back to top |
|
|
ErzlordCaron n00b
Joined: 10 Dec 2003 Posts: 28
|
Posted: Thu Jan 08, 2004 4:30 pm Post subject: |
|
|
i suggest opening a new topic (i think this is the wrong place for such a long thing), and posting the following:
-dmesg output
-lsmod output
-xfree86 error-log
-xfree86 config |
|
Back to top |
|
|
compuboy86 Tux's lil' helper
Joined: 03 Apr 2003 Posts: 79
|
Posted: Thu Jan 08, 2004 7:35 pm Post subject: |
|
|
Morpha-
If you can't compile the ati-drivers, try disabling QT as a use flag...that did it for me. In addition, make sure you have support for your chipset compiled into the kernel (or a module- if you choose the latter, remember to add it to /etc/modules.autoload/kernel-2.6)
In 2.6 its Device Drivers -> Character Devices -> Nforce2...etc
Hope this answers the problem. |
|
Back to top |
|
|
NicholasDWolfwood Apprentice
Joined: 19 Jan 2003 Posts: 235
|
Posted: Sun Jan 11, 2004 4:57 am Post subject: |
|
|
Here's my progress:
fglrx module not loaded on X startup, therefore no direct rendering
2.6.0-love1
Radeon 9000 Pro 128MB
DRI and GLX modules in XF86Config-4 are loaded.
Kernel AGPGart for my chipset (AMD761)
Devfs is enabled, if that has anything to do with it
ati-drivers-3.2.0 _________________ AMD Athlon XP 1700+
Abit KG7-RAID
512MB PC2100 DDR266 Corsair/Kingston
40GB WD 7200RPM (37.1GB)
120GB WD 8MB 7200RPM (111GB)
160GB WD 8MB 7200RPM (149GB)
40GB WD 7200RPM (37.1GB)
Pioneer DVR-A06 4x DVD±RW
HP CD-RW 9500i (12x8x32x) |
|
Back to top |
|
|
foosh Apprentice
Joined: 11 Jan 2004 Posts: 231 Location: STL
|
Posted: Sun Jan 11, 2004 9:29 am Post subject: |
|
|
forget about emerging ATI-drivers ... and forget about having fglrx auto-load when you 'startx'
here's how I do it... (using kernel 2.6.1-mm1)
(note that i also have xfree-drm emerged, though I don't think it has any effect on what the 2.6-series kernels can do... you may want to make sure you have the latest xfree-drm emerged anyway tho. also, my card is a radeon 9700, just for reference)
go to http://www.ati.com/support/driver.html and download the latest (or your preferred, I have had my highest glxgears framerates ever with version 3.7.0) .rpm (eww) for the linux drivers.
run an rpm2targz on the driver archive:
Code: | rpm2targz fglrx-glc22-4.3.0-3.7.0.i386.rpm |
then mv the resulting tarball to the root directory
now, as root, tar -zxvf the newly-created driver tarball FROM THE ROOT OF THE DRIVE!
this will cause all the files to be scattered to their proper places with respect to "/"
next, make sure in your kernel (under Character Support) that you have enabled AGPGART as a MODULE and that DRI or DRM or whatever is NOT enabled, not even as a module...
the ONLY thing enabled in the kernel should be agpgart support as a module.
recompile your kernel as explained above, if necessary...then:
Code: | cd /lib/modules/fglrx/build_mod
./make.sh |
(make sure your /usr/src/linux symlink points to the correct sources!!!)
...after running this command you will be instructed to
if running make_install.sh gives no errors, you should be good.
now, I've never been able to get the module (fglrx) to autoload when X starts, so I have it get loaded at boot (add "fglrx" to /etc/modules.autoload.d/kernel-2.6)
and here are the pertinent sections of my XF86Config-4 file:
Code: | Section "dri"
# Access to OpenGL ICD is allowed for all users:
Mode 0666
EndSection |
Code: | Section "Module"
# This loads the DBE extension module.
# Load "dbe" # Double buffer extension
# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
# This loads the Type1 and FreeType font modules
Load "type1"
Load "freetype"
# This loads the GLX module
Load "dri" # libdri.a
Load "glx"
EndSection |
Code: | # === ATI device section ===
Section "Device"
Identifier "ATI Graphics Adapter"
Driver "fglrx"
# === disable PnP Monitor ===
#Option "NoDDC"
# === disable/enable XAA/DRI ===
Option "no_accel" "no"
Option "no_dri" "no"
# Option "UseInternalAGPGART" "on"
|
notice that last line is commented!
so, the overall boot-and-run process will look like this:
fglrx module is loaded at boot time
when X starts, the agpgart module will auto-load (assuming kernel autoloading is enabled in your kernel!)
you should have direct rendering working!!
NOTE: the fglrx module will need to be recompiled anytime you recompile your kernel
ok, so now you should be good to go. this has always worked for me, even with my previous kernel (gentoo-sources 2.4.20-r9)
lemme know if it helps you at all!
oh, and if something isn't clear or if i missed something (which is likely at this late hour) just let me know...
happy gentooing! |
|
Back to top |
|
|
Wedge_ Advocate
Joined: 08 Aug 2002 Posts: 3614 Location: Scotland
|
Posted: Sun Jan 11, 2004 12:24 pm Post subject: |
|
|
foosh wrote: | (note that i also have xfree-drm emerged, though I don't think it has any effect on what the 2.6-series kernels can do... you may want to make sure you have the latest xfree-drm emerged anyway tho. also, my card is a radeon 9700, just for reference) |
xfree-drm isn't really necessary, but it shouldn't affect the ati-drivers as long as you don't load any of the DRM modules. Usually you'll only want one or the other, but I think there are some cards (R8500, R9000) which are compatible with both drivers.
The 3.7.0 driver is in portage, but it's masked at the moment (check your package.mask file). It should be OK to use the ebuild anyway (the memory leak mentioned in package.mask is only a problem after repeated loading/unloading of the fglrx module IIRC).
Also, you may want to add both of the kernel AGP modules (ie agpgart + nvidia-agp/intel-agp/via-agp/sis-agp) to your modules.autoload file, because X doesn't always load the second one, meaning that 3D acceleration won't work. _________________ Per Ardua Ad Astra
The Earth is the cradle of the mind, but we cannot live forever in a cradle - Konstantin E. Tsiolkovsky
Gentoo Radeon FAQ |
|
Back to top |
|
|
foosh Apprentice
Joined: 11 Jan 2004 Posts: 231 Location: STL
|
Posted: Sun Jan 11, 2004 4:15 pm Post subject: |
|
|
yeah. according to the gentoo docs, as well as a message i got when recompiling xfree-drm against 2.6.1 source, the xfree-drm doesn't do anything with 2.6 kernels...it was for the 2.4 series and hasn't yet been made to work w/ 2.6 |
|
Back to top |
|
|
Wedge_ Advocate
Joined: 08 Aug 2002 Posts: 3614 Location: Scotland
|
Posted: Sun Jan 11, 2004 8:17 pm Post subject: |
|
|
That's right, if you need DRM in 2.6 you have to use the support in the kernel instead. _________________ Per Ardua Ad Astra
The Earth is the cradle of the mind, but we cannot live forever in a cradle - Konstantin E. Tsiolkovsky
Gentoo Radeon FAQ |
|
Back to top |
|
|
kritip n00b
Joined: 03 Jan 2004 Posts: 56 Location: Nuneaton, Warks, UK
|
Posted: Sun Jan 11, 2004 8:45 pm Post subject: |
|
|
Just though i'd mention i initially follwed the guide on the first page of this post and kept getting an mtrr -22 error in my logs whn lauching and X session. I removed the following from my kernel and all is now fine:
Code: | [ ] Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) |
I have no DRI compiled into the kernel, and i have full accelereated X running fine, now with no errors at all. Is there any benefit to have it compiled in?? CAn't see any.
I do use the kernel AGPGART interface though and therefore have my XF86Congig-4 with the following option:
Code: |
Option "UseInternalAGPGART" "no" |
Here's my other kernel config:
Code: | <*> /dev/agpgart (AGP Support)
<*> Intel 440LX/BX/GX, I8xx and E7x05 chipset support |
This is all with the latest 3.7.0 drivers running, now on kernel 2.6.1.
Cheers,
Kristian _________________ Signature?? I don't want a signature! |
|
Back to top |
|
|
Wedge_ Advocate
Joined: 08 Aug 2002 Posts: 3614 Location: Scotland
|
Posted: Mon Jan 12, 2004 11:49 am Post subject: |
|
|
kritip wrote: | I have no DRI compiled into the kernel, and i have full accelereated X running fine, now with no errors at all. Is there any benefit to have it compiled in?? CAn't see any. |
Nope, you don't need it if you're using ati-drivers. In fact, if you compile in support for any of the cards listed, or load any DRM modules, you'll lose 3D acceleration from the ATI driver _________________ Per Ardua Ad Astra
The Earth is the cradle of the mind, but we cannot live forever in a cradle - Konstantin E. Tsiolkovsky
Gentoo Radeon FAQ |
|
Back to top |
|
|
rk_cr n00b
Joined: 14 Jan 2004 Posts: 12
|
Posted: Wed Jan 14, 2004 2:54 am Post subject: |
|
|
foosh wrote: |
if running make_install.sh gives no errors, you should be good.
|
Heh... it gives me errors. This is probably a newbie error (because I'm just learning how to use Linux and am trying to learn more by fixing the video card not using direct rendering).
I get this when i try to ./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.0-gentoo/kernel/drivers/char/drm/fglrx.ko): Operation not permitted
failed.
Any ideas? |
|
Back to top |
|
|
foosh Apprentice
Joined: 11 Jan 2004 Posts: 231 Location: STL
|
Posted: Wed Jan 14, 2004 3:53 am Post subject: |
|
|
i also had this error when i was first trying to get it to work w/ my 2.6 kernel.
under character devices, do you have Code: |
<M> /dev/agpgart (AGP Support) | and NOTHING else selected below that??
if not, recompile your kernel with that and then try rebooting to the new kernel and building the fglrx module (but DON'T worry about loading the agpgart module manually or at boot time...the fglrx module will do that when X loads)
let me know if this is different than what you already have... |
|
Back to top |
|
|
rk_cr n00b
Joined: 14 Jan 2004 Posts: 12
|
Posted: Wed Jan 14, 2004 7:31 pm Post subject: |
|
|
It turns out that there was one other option M underneath the AGP Support, so I turned it off. However, I'm still getting the same error whenever I try to ./make_install.sh.
Before I used Gentoo I was working in Mandrake and 3d acceleration worked fine there... so I kind of wonder, what were they using to get it working? |
|
Back to top |
|
|
foosh Apprentice
Joined: 11 Jan 2004 Posts: 231 Location: STL
|
Posted: Wed Jan 14, 2004 9:04 pm Post subject: |
|
|
are you using the the latest driver .rpm file (rpm2targz'ed of course) or the ati ebuild? i've never tried using the ebuilds for ati-drivers... _________________ http://wustlog.blogspot.com |
|
Back to top |
|
|
Wedge_ Advocate
Joined: 08 Aug 2002 Posts: 3614 Location: Scotland
|
Posted: Wed Jan 14, 2004 9:33 pm Post subject: |
|
|
rk_cr wrote: | It turns out that there was one other option M underneath the AGP Support, so I turned it off. However, I'm still getting the same error whenever I try to ./make_install.sh. |
That error possibly means you have DRM support in the kernel. Under the list of AGP options, there should be a setting called "Direct Rendering Manager". It has to be disabled for the ati-drivers to work properly.
@foosh: it's actually necessary to select one of the options below /dev/agpgart support if you want to use the kernel AGP support. On a 2.6 kernel the AGP support is split up, so you have to load two modules, agpgart and a motherboard specific one, like nvidia-agp, via-agp, intel-agp etc. X normally won't load the second one, and so it doesn't usually work that way unless you load the modules yourself. The reason I think it still appears to work for you is that you commented out the "UseInternalAGPGART" line in your config. I think this makes it revert to the default value, which IIRC is "on". If you uncomment that line and set it to "off"/"no", I don't think you would still get 3D acceleration if the agpgart module is loaded on it's own.
foosh wrote: | are you using the the latest driver .rpm file (rpm2targz'ed of course) or the ati ebuild? i've never tried using the ebuilds for ati-drivers... |
I'd really recommend using the ebuilds _________________ Per Ardua Ad Astra
The Earth is the cradle of the mind, but we cannot live forever in a cradle - Konstantin E. Tsiolkovsky
Gentoo Radeon FAQ |
|
Back to top |
|
|
foosh Apprentice
Joined: 11 Jan 2004 Posts: 231 Location: STL
|
Posted: Thu Jan 15, 2004 5:36 am Post subject: |
|
|
thanks for the info wedge. i've never been too clear on the kernel options below agpgart support...and i guess i haven't really looked into it since i upgraded to the 2.6 series
wedge: do you know if there's any advantage (practical or theoretical) from using the kernel-provided agp support versus the fglrx-provided support? i'm generally one to "fix it till it's broke," so i may try it the other way around and see if i notice any framerate gain in nwn or ut2k3...
as far as the advice I give, I stand by it--i've just been tryin to tell people what has worked for me _________________ http://wustlog.blogspot.com |
|
Back to top |
|
|
|