View previous topic :: View next topic |
Author |
Message |
jkcunningham l33t
Joined: 28 Apr 2003 Posts: 649 Location: 47.49N 121.79W
|
Posted: Sat May 31, 2003 11:41 pm Post subject: radeon driver not there after compile |
|
|
I know the radeon configuration topic has been discussed at length several times. I've read through all of the threads and must be missing something very basic. Perhaps someone at a greater distance can see it.
The card is an ATI radeon RV100 QY (Radeon 7000/VE)
I've been trying to follow the sort-of-how-to stustill wrote here:
https://forums.gentoo.org/viewtopic.php?t=54793&highlight=3dnow+radeon
I turned on MTRR in kernel (*)
I turned off DRM (xfree DRI support in kernel)
I turned on the ATI radeon DRM as module (M)
my use flags included mtrr radeon -sis -rage128 -3dfx -gamma -3dnow
The kernel would build fine. I'd copy it, boot it, then emerge xfree-drm without any errors. But when I try to modprobe radeon it says there is no such driver.
What am I doing wrong?
-Jeff |
|
Back to top |
|
|
jkcunningham l33t
Joined: 28 Apr 2003 Posts: 649 Location: 47.49N 121.79W
|
Posted: Sun Jun 01, 2003 1:13 am Post subject: |
|
|
I figured it out. I was trying to rc-update these drivers instead of modprobing them.
Here's a brief synopsis of what worked for me:
Kernel: (makeconfig)
Code: |
Processor type and features =>
[*] MTRR (Memory Type Range Register) Support
Character devices =>
<M> /dev/agpgart (AGP Support)
[ ] Direct Rendering Manager (XFree86 DRI support)
[ ] Build drivers for old (XFree 4.0) DRM (NEW)
|
USE flags:
Code: |
radeon -sis -rage128 -3dfx -gamma -3dnow sse -i8x0
|
(some of these are no doubt irrelevant)
After rebuilding the the kernel and rebooting, lsmod shows both the radeon and agpgart modules loaded and in use.
I also had to re-emerge some drivers that it wiped out:
Code: |
# emerge xfree-drm
# emerge alsa-driver
|
/etc/X11/XFree86Config
Code: |
Section "Device"
Driver "radeon"
Option "AGPMode" "4" # my bus supports 8 but XFree says no
Option "EnablePageFlip" "True"
EndSection
|
Finally, I ran
Code: |
opengl-update xfree
|
glxgears was doing about 570 fps (was around 120 with the dog-meat card I had before).
The only thing I don't understand is that when glxgears starts up it issues the message:
glxinfo has a line which also mentions (lack of) TCL:
"OpenGL renderer string: Mesa DRI Radeon 20020611 AGP 4x x86/MMX/3DNow!/SSE NO-TCL"
What is TCL?
-Jeff
Last edited by jkcunningham on Sun Jun 01, 2003 4:27 pm; edited 1 time in total |
|
Back to top |
|
|
stustill Guru
Joined: 25 Feb 2003 Posts: 333 Location: Aberdeen, Scotland
|
Posted: Sun Jun 01, 2003 4:30 am Post subject: |
|
|
Transform, Clipping and Lighting. I don't think your radeon card supports it, some other people with the same card have had the same message. Basically, compared to a radeon that has TCL support, your performance is going to be poor
Anyway, its cool that you got it all working
Stu |
|
Back to top |
|
|
Infra Tux's lil' helper
Joined: 12 Jul 2002 Posts: 131 Location: Vantaa, Finland
|
Posted: Sun Jun 01, 2003 5:52 am Post subject: |
|
|
jkcunningham wrote: | I figured it out. I was trying to rc-update these drivers instead of modprobing them.
Here's a brief synopsis of what worked for me:
Kernel: (makeconfig)
Code: |
Processor type and features =>
[*] MTRR (Memory Type Range Register) Support
Character devices =>
<M> /dev/agpgart (AGP Support)
[*] Direct Rendering Manager (XFree86 DRI support)
[ ] Build drivers for old (XFree 4.0) DRM (NEW)
--- DRM 4.1 drivers
<M> ATI Radeon (NEW)
|
USE flags:
Code: |
radeon -sis -rage128 -3dfx -gamma -3dnow sse -i8x0
|
(some of these are no doubt irrelevant)
After rebuilding the the kernel and rebooting, lsmod shows both the radeon and agpgart modules loaded and in use.
I also had to re-emerge some drivers that it wiped out:
Code: |
# emerge xfree-drm
# emerge alsa-driver
|
/etc/X11/XFree86Config
Code: |
Section "Device"
Driver "radeon"
Option "AGPMode" "4" # my bus supports 8 but XFree says no
Option "EnablePageFlip" "True"
EndSection
|
Finally, I ran
Code: |
opengl-update xfree
|
glxgears was doing about 570 fps (was around 120 with the dog-meat card I had before).
The only thing I don't understand is that when glxgears starts up it issues the message:
glxinfo has a line which also mentions (lack of) TCL:
"OpenGL renderer string: Mesa DRI Radeon 20020611 AGP 4x x86/MMX/3DNow!/SSE NO-TCL"
What is TCL?
-Jeff |
I don't get it...first you say that you disabled drm in your kernel? And in the next post you still have it in your kernel?
I'm wondering because I'm fighting with the same problem here... _________________ If it works don't mess with it |
|
Back to top |
|
|
jkcunningham l33t
Joined: 28 Apr 2003 Posts: 649 Location: 47.49N 121.79W
|
Posted: Sun Jun 01, 2003 4:27 pm Post subject: |
|
|
I apologize: the words were correct, the (*) wasn't. It should have been:
Code: |
[ ] Direct Rendering Manager (XFree86 DRI support)
|
I've editted it so it is correct now.
-Jeff |
|
Back to top |
|
|
jkcunningham l33t
Joined: 28 Apr 2003 Posts: 649 Location: 47.49N 121.79W
|
Posted: Sun Jun 01, 2003 4:38 pm Post subject: |
|
|
It took me a number of kernel rebuilds and module rebuilds to get it to work right. I'm still not entirely sure I understand the behavior. It seems that if you rebuild the kernel, it wipes out some of the driver modules. But if you rebuild the modules before you are actually running your new kernel, they don't get built right. I don't think you need to actually unemerge them, but you do have to re-emerge them after rebooting the kernel.
I have two scripts I run which give me repeatable results. The first just rebuilds the kernel:
Code: |
#!/bin/sh
make dep && make clean bzImage modules modules_install
mount /boot
cp /usr/src/linux/arch/i386/boot/bzImage /boot
echo "The kernel has been rebuilt and copied to bzImage, but "
echo "some drivers were wiped out and need to be rebuilt."
echo "Reboot and run ~/rebuild-drivers"
|
Then I reboot to be running the new kernel, and run the following script to update the drivers:
Code: |
#!/bin/sh
echo "Rebuilding drivers:"
emerge xfree-drm
modprobe radeon
modprobe agpgart
emerge alsa-driver
update-modules
/etc/init.d/alsasound start
opengl-update xfree
lsmod
|
You can tell how well you did by looking at glxinfo and running glxgears.
-Jeff |
|
Back to top |
|
|
|