View previous topic :: View next topic |
Author |
Message |
r4d1x Apprentice
Joined: 25 Nov 2003 Posts: 157 Location: Japan
|
Posted: Sun Nov 30, 2003 3:42 pm Post subject: |
|
|
you dont want DRI support in the kernel if your going to use the fglrx module. and its best to have agpgart compiled as a module. if your using an Epox board you need to grab this patch to get the agp going right. Epox strayed on the way they build the nforce chipset so things are a little different. ive also heard that the mm* and love* dont like the fglrx module either. try 2.6.0-test9 10 or 11. or go back to 2.4.22 where you dont have to do any of this. you'll also need mtrr compiled in. after you get your kernel setup correctly make && make modules_install add agpgart and your chipset module to /etc/modules.autoload.d/kernel2.6 . opengl-update ati and reboot. remember that if your using alsa you may need to recompile it also. |
|
Back to top |
|
|
lowde n00b
Joined: 07 Jul 2003 Posts: 50 Location: Germany
|
Posted: Sun Nov 30, 2003 6:21 pm Post subject: |
|
|
hi.
a short question: Why do not use the internal apgsupport of the fgrlx module? it works great for me. |
|
Back to top |
|
|
s3ntient Guru
Joined: 13 Apr 2003 Posts: 304 Location: Lyon, France
|
Posted: Sun Nov 30, 2003 9:56 pm Post subject: |
|
|
lowde wrote: | hi.
a short question: Why do not use the internal apgsupport of the fgrlx module? it works great for me. |
Not sure but I think the kernel agpgart is a little faster. _________________ http://blog.chaostrophy.org |
|
Back to top |
|
|
nsahoo l33t
Joined: 17 Jul 2003 Posts: 618
|
Posted: Thu Dec 04, 2003 12:17 am Post subject: |
|
|
while emerging ati-drivers, I am getting this error, and although it continues to emerge after that, I am not getting a radeon.o in the modules directory.
Code: |
* building the glx module
make: Entering directory `/usr/src/linux-2.6.0-test11-gentoo-r1'
*** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CC [M] /var/tmp/portage/ati-drivers-3.2.8/work/lib/modules/fglrx/build_mod/agp3.o
CC [M] /var/tmp/portage/ati-drivers-3.2.8/work/lib/modules/fglrx/build_mod/nvidia-agp.o
CC [M] /var/tmp/portage/ati-drivers-3.2.8/work/lib/modules/fglrx/build_mod/agpgart_be.o
CC [M] /var/tmp/portage/ati-drivers-3.2.8/work/lib/modules/fglrx/build_mod/i7505-agp.o
CC [M] /var/tmp/portage/ati-drivers-3.2.8/work/lib/modules/fglrx/build_mod/firegl_public.o
/var/tmp/portage/ati-drivers-3.2.8/work/lib/modules/fglrx/build_mod/firegl_public.c:3104: warning: `have_cpuid_p' defined but not used
LD [M] /var/tmp/portage/ati-drivers-3.2.8/work/lib/modules/fglrx/build_mod/fglrx.o
/bin/sh: line 1: .tmp_versions/fglrx.mod: Permission denied
make[1]: *** [/var/tmp/portage/ati-drivers-3.2.8/work/lib/modules/fglrx/build_mod/fglrx.o] Error 1
make: *** [/var/tmp/portage/ati-drivers-3.2.8/work/lib/modules/fglrx/build_mod] Error 2
make: Leaving directory `/usr/src/linux-2.6.0-test11-gentoo-r1'
* glx module not built
|
Any help ? |
|
Back to top |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Thu Dec 04, 2003 11:58 pm Post subject: |
|
|
nosferat wrote: |
<snip about 4 pages of previous output from "fglrx">
(WW) fglrx(0): Cannot read colourmap from VGA. Will restore with default
(II) fglrx(0): UMM area: 0xb0953000 (size=0x076ad000)
(II) fglrx(0): driver needs XFree86 version: 4.3.x
(II) fglrx(0): detected XFree86 version: 4.3.0
(II) Loading extension ATIFGLRXDRI
(II) fglrx(0): doing DRIScreenInit
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
[drm] failed to load kernel module "agpgart"
[drm] failed to load kernel module "fglrx"
(II) fglrx(0): [drm] drmOpen failed
(EE) fglrx(0): DRIScreenInit 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): ********************************************* *
(II) fglrx(0): FBADPhys: 0xb0000000 FBMappedSize: 0x08000000
(WW) fglrx(0): Failed to set up write-combining range (0xb0000000,0x8000000)
(II) fglrx(0): FBMM initialized for area (0,0)-(1600,8191)
(II) fglrx(0): FBMM auto alloc for area (0,0)-(1600,1200) (front color buffer - assumption)
(==) fglrx(0): Backing store disabled
(==) fglrx(0): Silken mouse enabled
(II) fglrx(0): Using hardware cursor (scanline 1200)
(II) fglrx(0): Largest offscreen area available: 1600 x 6988
(**) Option "dpms"
(**) fglrx(0): DPMS enabled
(II) fglrx(0): Using XFree86 Acceleration Architecture (XAA)
Screen to screen bit blits
Solid filled rectangles
Solid Horizontal and Vertical Lines
Offscreen Pixmaps
Setting up tile and stipple cache:
32 128x128 slots
32 256x256 slots
16 512x512 slots
(II) fglrx(0): Acceleration enabled
(II) fglrx(0): Direct rendering disabled
<snip>
Among the lines snipped off before this was the following segment, referring to me having a Sapphire ATI card:
<snip>
(II) Loading sub module "int10"
(II) LoadModule: "int10"
(II) Loading /usr/X11R6/lib/modules/linux/libint10.a
(II) Module int10: vendor="The XFree86 Project"
compiled for 4.3.0, module version = 1.0.0
ABI class: XFree86 Video Driver, version 0.6
(II) fglrx(0): initializing int10
(II) fglrx(0): Primary V_BIOS segment is: 0xc000
(--) fglrx(0): Chipset: "ATI RV350 AP (R9600)" (Chipset = 0x4150)
(--) fglrx(0): (PciSubVendor = 0x174b, PciSubDevice = 0x7c20)
(--) fglrx(0): board vendor info: third party grafics adapter - NOT original ATI
(--) fglrx(0): Linear framebuffer (phys) at 0xb0000000
(--) fglrx(0): MMIO registers at 0xcfef0000
(--) fglrx(0): ROM-BIOS at 0xcfec0000
(--) fglrx(0): ChipExtRevID = 0x00
(--) fglrx(0): ChipIntRevID = 0x04
(--) fglrx(0): VideoRAM: 131072 kByte (64-bit SDR SDRAM)
(WW) fglrx(0): board is an unknown third party board, chipset is supported
(II) Loading sub module "ddc"
(II) LoadModule: "ddc"
(II) Loading /usr/X11R6/lib/modules/libddc.a
(II) Module ddc: vendor="The XFree86 Project"
compiled for 4.3.0, module version = 1.0.0
ABI class: XFree86 Video Driver, version 0.6
<snip>
This was the only other warning for fglrx that was shown.
DRI is still not loading, and OpenGL still is running in software-emulated mode.
Any other ideas, or other things to look at? |
I also got this annoying error before trying the lasst gentoo-dev-sources. Since then, I don't have any error anymore and x just runs fine.
Cheers,
Sébastien. |
|
Back to top |
|
|
nosferat n00b
Joined: 17 Oct 2003 Posts: 21 Location: Colden, NY USA
|
Posted: Fri Dec 05, 2003 5:15 am Post subject: |
|
|
nsahoo wrote: | while emerging ati-drivers, I am getting this error, and although it continues to emerge after that, I am not getting a radeon.o in the modules directory.
Code: |
* building the glx module
make: Entering directory `/usr/src/linux-2.6.0-test11-gentoo-r1'
*** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CC [M] /var/tmp/portage/ati-drivers-3.2.8/work/lib/modules/fglrx/build_mod/agp3.o
CC [M] /var/tmp/portage/ati-drivers-3.2.8/work/lib/modules/fglrx/build_mod/nvidia-agp.o
CC [M] /var/tmp/portage/ati-drivers-3.2.8/work/lib/modules/fglrx/build_mod/agpgart_be.o
CC [M] /var/tmp/portage/ati-drivers-3.2.8/work/lib/modules/fglrx/build_mod/i7505-agp.o
CC [M] /var/tmp/portage/ati-drivers-3.2.8/work/lib/modules/fglrx/build_mod/firegl_public.o
/var/tmp/portage/ati-drivers-3.2.8/work/lib/modules/fglrx/build_mod/firegl_public.c:3104: warning: `have_cpuid_p' defined but not used
LD [M] /var/tmp/portage/ati-drivers-3.2.8/work/lib/modules/fglrx/build_mod/fglrx.o
/bin/sh: line 1: .tmp_versions/fglrx.mod: Permission denied
make[1]: *** [/var/tmp/portage/ati-drivers-3.2.8/work/lib/modules/fglrx/build_mod/fglrx.o] Error 1
make: *** [/var/tmp/portage/ati-drivers-3.2.8/work/lib/modules/fglrx/build_mod] Error 2
make: Leaving directory `/usr/src/linux-2.6.0-test11-gentoo-r1'
* glx module not built
|
Any help ? |
Are you sure you're emerging this as root? If not, do "sudo emerge ati-drivers"... if so, try checking the permissions of .tmp_versions/fglrx.mod (should be in the /var/tmp/portage/ati-drivers-3.2.8/work/lib/modules/fglrx/build_mod directory according to the above...) _________________ stick a fork in it... |
|
Back to top |
|
|
nosferat n00b
Joined: 17 Oct 2003 Posts: 21 Location: Colden, NY USA
|
Posted: Fri Dec 05, 2003 6:01 am Post subject: |
|
|
hmm... stupid me and mounting the /boot directory... i found 3 different kernel images in the mountpoint directory... that means at least 3 times i built my kernel the changes never made it to the running configuration because they never made it to my boot partition... i rebuild my kernel often enough, maybe i should make /boot automount at startup... anyways, i got the new gentoo-dev-sources (test11-r1) so i'm going to try with those.
Thanks for the ideas! (crossing my fingers...) _________________ stick a fork in it... |
|
Back to top |
|
|
NewBlackDak Guru
Joined: 02 Nov 2003 Posts: 512 Location: Utah County, UT
|
Posted: Sat Dec 06, 2003 1:39 am Post subject: |
|
|
My question is why you're using intel agpgart instead of Nvidia? I'm impressed so far by the forcedeth modules also:
Code: | bash-2.05b# lsmod
Module Size Used by
fglrx 207556 7
nvidia_agp 6940 1
agpgart 32840 2 nvidia_agp
forcedeth 12032 0
snd_pcm_oss 54212 0
snd_mixer_oss 20096 1 snd_pcm_oss
snd_intel8x0 25604 0
snd_ac97_codec 55236 1 snd_intel8x0
snd_pcm 101312 2 snd_pcm_oss,snd_intel8x0
snd_timer 26944 1 snd_pcm
snd_page_alloc 12036 2 snd_intel8x0,snd_pcm
snd_mpu401_uart 7808 1 snd_intel8x0
snd_rawmidi 26176 1 snd_mpu401_uart
snd_seq_device 8580 1 snd_rawmidi
snd 52996 9 snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore 9472 1 snd
|
Code: | bash-2.05b# glxgears
13129 frames in 5.0 seconds = 2625.800 FPS
16361 frames in 5.0 seconds = 3272.200 FPS
16373 frames in 5.0 seconds = 3274.600 FPS
16361 frames in 5.0 seconds = 3272.200 FPS
|
Code: | bash-2.05b# fgl_glxgears
2494 frames in 5.0 seconds = 498.800 FPS
2593 frames in 5.0 seconds = 518.600 FPS
2607 frames in 5.0 seconds = 521.400 FPS
2590 frames in 5.0 seconds = 518.000 FPS
2607 frames in 5.0 seconds = 521.400 FPS
|
Code: |
bash-2.05b# uname -a
Linux Athlon 2.6.0-test10-mm1 #1 Fri Dec 5 15:20:30 CST 2003 i686 AMD Athlon(tm) AuthenticAMD GNU/Linux
|
Code: | bash-2.05b# fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: Radeon 9600 Athlon (3DNow!)
OpenGL version string: 1.3 (X4.3.0-3.2.8)
|
_________________ Gentoo systems.
X2 4200+@2.6 - Athy
X2 3600+ - Myth
UltraSparc5 440 - sparcy |
|
Back to top |
|
|
dulljeff n00b
Joined: 29 Oct 2003 Posts: 65
|
Posted: Tue Dec 09, 2003 2:54 pm Post subject: |
|
|
@NewBlackDak
These values are generated by your overclocked Athlon?
@Joffer
What are your fgl_glxgears stats?
Last edited by dulljeff on Tue Dec 09, 2003 10:01 pm; edited 1 time in total |
|
Back to top |
|
|
nosferat n00b
Joined: 17 Oct 2003 Posts: 21 Location: Colden, NY USA
|
Posted: Tue Dec 09, 2003 7:00 pm Post subject: |
|
|
OK, I'm stumped... I've tried everything in this guide and the following comments to no avail. I've tried compiling the kernel with and without the DRM, using the kernel agpgart and the fglrx agpgart, compiled with make clean every single time, fixed the problem with me accidentally dumping my new kernels into an unmounted /boot directory, tried screwing with the BusID and Screen directives in the XF86Config file... but I keep getting the same error. First I get the "drmOpenDevice: open result is -1, (No such device)" and "drmOpenDevice: Open failed" errors, and then '(EE) fglrx(0): [agp] unable to acquire AGP, error "xf86_ENODEV"'. I think i'm gonna have to contact ATI with this... _________________ stick a fork in it... |
|
Back to top |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Tue Dec 09, 2003 11:02 pm Post subject: |
|
|
Try rebuilding your kernel after a 'make mrproper' in your kernel src directory and don't forget to symlink /usr/src/linux-2.6.0-test10-r1 to /usr/src/linux (I usually rm /usr/src/linux-beta /usr/src/linux then ln -s /usr/src/linux-2.6.0-test11-r1) you could also give gentoo-dev-sources a try.
Regards,
Sébastien. |
|
Back to top |
|
|
nosferat n00b
Joined: 17 Oct 2003 Posts: 21 Location: Colden, NY USA
|
Posted: Wed Dec 10, 2003 1:15 am Post subject: |
|
|
I'll try doing a make mrproper but i'm using a brand-new gentoo-dev-sources... and my symlinks are already correct. And i've rebuilt my ati-drivers after each kernel modification. _________________ stick a fork in it... |
|
Back to top |
|
|
nosferat n00b
Joined: 17 Oct 2003 Posts: 21 Location: Colden, NY USA
|
Posted: Wed Dec 10, 2003 7:20 pm Post subject: |
|
|
ok, more random stabs at what might be keeping the ati-drivers from working... let me know if any of the following are know to cause problems with the ati-drivers:
IMPI
hardware sensors (I2C)
framebuffer console support
I seriously doubt any of these cause problems, but i guess it's worth asking... I think the problem is just that I'm using an ECS L7S5A motherboard, which doesn't seem to be fully supported by either the kernel or the fglrx module... I sent a complaint in to ATI but they said not to expect a reply. Looks like i'm buyin a new mobo. _________________ stick a fork in it... |
|
Back to top |
|
|
Gibberx Apprentice
Joined: 20 Oct 2002 Posts: 217 Location: UMBC
|
Posted: Fri Dec 12, 2003 2:10 am Post subject: |
|
|
Hmm, I was thinking about asking the grandparents for a video card this christmas... I guess this means it's safe to go with an ATI card? The thing that NVIDIA has going for it is driver support... |
|
Back to top |
|
|
NewBlackDak Guru
Joined: 02 Nov 2003 Posts: 512 Location: Utah County, UT
|
Posted: Fri Dec 12, 2003 5:11 am Post subject: |
|
|
nosferat wrote: | ok, more random stabs at what might be keeping the ati-drivers from working... let me know if any of the following are know to cause problems with the ati-drivers:
IMPI
hardware sensors (I2C)
framebuffer console support
I seriously doubt any of these cause problems, but i guess it's worth asking... I think the problem is just that I'm using an ECS L7S5A motherboard, which doesn't seem to be fully supported by either the kernel or the fglrx module... I sent a complaint in to ATI but they said not to expect a reply. Looks like i'm buyin a new mobo. |
I couldn't get the fglrx module to load with "framebuffer console support" compiled in.
Yes, those numbers come from machine #1 in my sig. _________________ Gentoo systems.
X2 4200+@2.6 - Athy
X2 3600+ - Myth
UltraSparc5 440 - sparcy |
|
Back to top |
|
|
VisualPhoenix Tux's lil' helper
Joined: 26 Sep 2002 Posts: 135 Location: (CT v NJ)
|
Posted: Fri Dec 12, 2003 4:16 pm Post subject: |
|
|
NewBlackDak wrote: | My question is why you're using intel agpgart instead of Nvidia? I'm impressed so far by the forcedeth modules also:
[/code] |
Nvidia AGP and a ATI card? what kinda mobo do you have in your laptop? |
|
Back to top |
|
|
NewBlackDak Guru
Joined: 02 Nov 2003 Posts: 512 Location: Utah County, UT
|
Posted: Fri Dec 12, 2003 5:57 pm Post subject: |
|
|
VisualPhoenix wrote: | NewBlackDak wrote: | My question is why you're using intel agpgart instead of Nvidia? I'm impressed so far by the forcedeth modules also:
[/code] |
Nvidia AGP and a ATI card? what kinda mobo do you have in your laptop? |
Oh, sorry. I was reading someone else's sig, anf thought it was the machine you were talking about. _________________ Gentoo systems.
X2 4200+@2.6 - Athy
X2 3600+ - Myth
UltraSparc5 440 - sparcy |
|
Back to top |
|
|
Motomouse n00b
Joined: 28 Nov 2003 Posts: 56
|
Posted: Fri Dec 19, 2003 8:53 pm Post subject: |
|
|
got the 9800 pro working, thanks for the howto,
the step i missed was to add fglrx to the:
/etc/modules.autoload.d/kernel-2.6
this wasn't part of my 2.4 autoload, it worked anyway, don't ask
thanks again |
|
Back to top |
|
|
ErzlordCaron n00b
Joined: 10 Dec 2003 Posts: 28
|
Posted: Sun Dec 21, 2003 2:01 pm Post subject: |
|
|
I followed your howto, but still it doesn't work....
could perhaps someone have a look at my log and config? i don't now what to do for i am a complete newby...
posted it here:
https://forums.gentoo.org/viewtopic.php?t=117117 |
|
Back to top |
|
|
SwedishElk Tux's lil' helper
Joined: 19 Nov 2003 Posts: 79 Location: Stockholm, Sweden
|
Posted: Thu Dec 25, 2003 5:39 pm Post subject: |
|
|
Can't agree more with the above author. U saved a couple of days error searching. Thanks... |
|
Back to top |
|
|
compuboy86 Tux's lil' helper
Joined: 03 Apr 2003 Posts: 79
|
Posted: Thu Dec 25, 2003 6:31 pm Post subject: |
|
|
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:
Take out ACPI/Power Management (I don't have it, work it in <I>after</I> you get the drivers working)
Compile MTRR into your kernel
Compile agpgart as a module
Compile sis-agp (support for the chipset) as a module
Make sure DRI support is NOT in the kernel
Take out any "extra" things you don't really need yet (framebuffer, wireless, etc)
In your modules.autoload.d/kernel-2.6 add the following lines:
agpgart
sis-agp
Remove the current ATI-drivers with: emerge -C ati-drivers
Reinstall them and run fglrxconfig
EDIT: Remember to use the _external_ agpgart- not the one included with ati's drivers
If you have an AGP card make sure you change the BusID to (I think, not in linux atm) 1:0:0
Remember to type opengl-update ati!!!!
Try and enter X at this point. Let me know what happens. |
|
Back to top |
|
|
NicholasDWolfwood Apprentice
Joined: 19 Jan 2003 Posts: 235
|
Posted: Thu Dec 25, 2003 11:43 pm Post subject: |
|
|
...
Radeon 9000 pro; 2.6.0-love1; ati-drivers-3.2.0; I get 300fps with glxgears. I ran opengl-update ati.
Specs in sig _________________ 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 |
|
|
compuboy86 Tux's lil' helper
Joined: 03 Apr 2003 Posts: 79
|
Posted: Fri Dec 26, 2003 5:00 am Post subject: |
|
|
type glxinfo....I'm sure you are not getting direct rendering (its at the top) When you are in X, type lsmod to see if the fglrx module is loaded- I'm thinking that it isn't. |
|
Back to top |
|
|
|darc| n00b
Joined: 19 Jun 2003 Posts: 46 Location: New Orleans, LA, USA
|
Posted: Mon Dec 29, 2003 12:44 am Post subject: |
|
|
Awesome document.
Will you have my children? |
|
Back to top |
|
|
SwedishElk Tux's lil' helper
Joined: 19 Nov 2003 Posts: 79 Location: Stockholm, Sweden
|
Posted: Mon Dec 29, 2003 7:38 pm Post subject: |
|
|
compuboy86 wrote: | type glxinfo....I'm sure you are not getting direct rendering (its at the top) When you are in X, type lsmod to see if the fglrx module is loaded- I'm thinking that it isn't. |
Follwed this guide and it is working, why shouldn't fglrx module be loaded? |
|
Back to top |
|
|
|