View previous topic :: View next topic |
Author |
Message |
joshua_neil n00b
Joined: 20 May 2004 Posts: 7
|
Posted: Thu May 20, 2004 7:06 am Post subject: HOWTO How I got ATI Radeon to work in Kernel 2.6.6-rc1 |
|
|
After compiling the kernel more times than I can remember and following instructions that were usually completely different, this is what I got to work properly.
Kernel
First type the following to check which chipset your AGP is:
Code: | lspci -v | grep AGP |
make a note of what the chipset is for later. If lspci is not there then do the following and try again:
Now onto the kernel business.
Make sure /usr/src/linux points to the right kernel by typing:
Code: | ls -l /usr/src/linux |
Then go to the /usr/src/linux directory and type make menuconfig (or make xconfig etc)
Code: | cd /usr/src/linux
make menuconfig |
A menu shows up with all kinds of options. Go to "Device Drivers" and hit enter. Then go to "Character devices" and press enter. Then go to "/dev/agpgart (AGP Support)" and compile as a module by pressing "M". Then go down till you find the right chipset we found earlier for your motherboard. Mine was "SiS Chipset Support". Select to add it to the kernel by pressing "Y". Go to "Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)" and press "Y" to add it to the kernel. Then go down to "ATI Radeon" and press "M" to compile it as a module. Now press "ESC" and go down to "Graphics support" and press enter. Scroll down and make sure that none of the ATI drivers are selected to be compiled. Now press "ESC" till it asks to save the kernel configuration. Select "yes" and hit enter. Now type in the following command:
Code: | make && make modules_install |
This could take awhile, but not too long. Once that is finished type in these commands to copy the kernel over to boot (those who wish to change the name of the image may do so):
Code: | mount /boot
cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel-2.6.6-rc1
|
Now edit your grub configuration by typing:
Code: | nano -w /boot/grub/grub.conf |
and adding the following below the splash code (adjust the partitions for your own installation):
Code: | title=Gentoo Linux 2.6.6-rc1
root (hd0,0)
kernel /kernel-2.6.6-rc1 root=/dev/hda3 |
Now we need to add our modules to be automatically loaded at startup. Type:
Code: | nano -w /etc/modules.autoload.d/kernel-2.6 |
Add the following to the file and save (change sis-agp to whatever the name of the module you selected for your chipset):
Code: | agpgart
sis-agp
radeon
|
Now do:
XFree
Now for the XFree Part. Type:
Code: | nano -w /etc/X11/XF86Config |
Add the following if it is not already there:
Code: | Section "dri"
Mode 0666
EndSection
|
Also uncomment the following lines by removing the # in front of them if its there:
Code: | Load "glx"
Load "dri"
|
Go down through the file and make sure this or something similar is present
Code: | Section "Device"
Identifier "9000"
VendorName "ATI"
BoardName "ATI Radeon 9000"
Driver "radeon"
|
Now save and exit nano.
Now restart and make sure everything works correctly. Mkae sure you select the right kernel in GRUB. If X doesn't automatically start, login and then type 'startx'. Now open a console and type:
Code: | glxinfo | grep direct |
and make sure it says "yes" next to "direct rendering". if it does you can run the following command and see how well it is working:
It will output how many frames per second glxgears is doing. You can close the window to exit, or type 'CTRL+C". If glxinfo or glxgears says something about libGL.so.1 follow these instructions:
Fix libGL.so.1
Type:
if it says:
Code: | libGL.so: /usr/lib/libGL.so.1 /usr/lib/libGL.so |
then you could try to 'emerge xfree' again. (this could take a long time)
If it doesn't say that exactly, do the following:
Code: | ln -sf /usr/lib/opengl/xfree/lib/libGL.so.1.2 /usr/lib/libGL.so
ln -sf /usr/lib/opengl/xfree/lib/libGL.so.1.2 /usr/lib/libGL.so.1
|
Now retry 'glxinfo' or 'glxgears'. If it works good, if not you may have to 'emerge xfree' again.
-Josh "Schmalls" Thompson _________________ Are you pondering what I'm pondering?
Yeah, Brain, but where would we get all that cheese? |
|
Back to top |
|
|
Sqeaky Tux's lil' helper
Joined: 31 Dec 2003 Posts: 149
|
Posted: Sat May 22, 2004 3:02 am Post subject: |
|
|
This is quite interesting, what radeon card do you have. I have not heard of anyone with a 9xxx series getting it to work with 2.6.6. Also all the setup information for the newer radeon cards says drm must be off. Did xfree finally get their Their drivers to support the newer radeons? |
|
Back to top |
|
|
DArtagnan l33t
Joined: 30 Apr 2002 Posts: 942 Location: Israel, Jerusalem
|
Posted: Sat May 22, 2004 5:27 am Post subject: |
|
|
Good questions, I also want to know.
Liviu _________________ All for one and one for All
--
MACPRO machine... |
|
Back to top |
|
|
BlindSpy Apprentice
Joined: 20 Mar 2004 Posts: 263
|
Posted: Sat May 22, 2004 6:23 pm Post subject: |
|
|
I've been running 2.6.6 with my 9600 Pro since they released the first RC and its worked fine. I dont use DRM in the kernel cause the ATI drivers have DRM built in. In Device Drivers -> Character Devices ->
i have /dev/agpgart (AGP Support) compiled into the kernel <*> and same with my chipset stuff. For Graphics support i have the Vesa for the framebuffer support. |
|
Back to top |
|
|
Wedge_ Advocate
Joined: 08 Aug 2002 Posts: 3614 Location: Scotland
|
Posted: Sat May 22, 2004 10:23 pm Post subject: |
|
|
In case anyone gets confused: these instructions are for cards that are compatible with the Xfree "radeon" driver - they will NOT work for the binary ATI drivers, which you need to use if your card is > R9200 (some cards are supported by both, like the 9200 and 8500). The ATI driver needs the "Direct Rendering Manager" kernel option disabled, otherwise its driver module won't load, with the result that you don't get 3D acceleration.
Edit: Squeaky, the newer versions of the ATI driver are 2.6 compatible (3.2.8 and later should all work) - just emerge one of the versions in portage. _________________ 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 |
|
|
hanzotutu Apprentice
Joined: 10 Apr 2003 Posts: 170
|
Posted: Sun May 23, 2004 12:19 am Post subject: |
|
|
ati-drivers-3.7.6-r1 doesn't compile with kernel 2.6.6 bug is reported here.
I am using DRI modular coming along with mm-sources-2.6.6 for my Radeon M9. _________________ Dell D600, P-M 1.4G, 512M DDR, Radeon M9 32M |
|
Back to top |
|
|
joshua_neil n00b
Joined: 20 May 2004 Posts: 7
|
Posted: Sun May 23, 2004 3:50 am Post subject: |
|
|
I have a Radeon 9000. Most of the 3d stuff I have tried seems to be working perfectly. I'm sure there is some more ways to tweak it. However, someone posted that this was using the XFree 'radeon' driver. How would I get it to use the kernel one? Since both have the name 'radeon'? I tried using the ATI Drivers but they just didn't seem to work. One more thing, how do you get XFree to do TV-Out correctly? Its not a linux problem because during bootup it shows on the TV, but once X is started, the TV goes crazy. I have tried following some things about it on the forums, but to no avail. Could it be the XFree 'radeon' driver?
Thanks for all of the replies,
-Joshua "Schmalls" Thompson _________________ Are you pondering what I'm pondering?
Yeah, Brain, but where would we get all that cheese? |
|
Back to top |
|
|
Wedge_ Advocate
Joined: 08 Aug 2002 Posts: 3614 Location: Scotland
|
Posted: Sun May 23, 2004 12:37 pm Post subject: |
|
|
Quote: | ati-drivers-3.7.6-r1 doesn't compile with kernel 2.6.6 bug is reported here. |
They do, with a little extra patching. Check the bug report you linked to, the small patch at the end is all you need to get it working as long as you disable register arguments in your kernel. If you don't disable them, you also need another patch which you should find via one of Rage3D links there.
Quote: | I have a Radeon 9000. Most of the 3d stuff I have tried seems to be working perfectly. I'm sure there is some more ways to tweak it. However, someone posted that this was using the XFree 'radeon' driver. How would I get it to use the kernel one? Since both have the name 'radeon'? |
I think that was me - I was referring to the same driver as you're currently using. I've just gotten into the habit of calling it that. With 2.4 kernels, the version of the driver in the kernel was outdated, so you had to emerge an extra package called xfree-drm to get the newer version, so that's maybe where I got it from. With 2.6 the driver in the kernel is up to date, so that's used instead. Sorry for causing more confusion _________________ 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 |
|
|
joshua_neil n00b
Joined: 20 May 2004 Posts: 7
|
Posted: Sun May 23, 2004 2:22 pm Post subject: |
|
|
Quote: | With 2.4 kernels, the version of the driver in the kernel was outdated, so you had to emerge an extra package called xfree-drm to get the newer version, so that's maybe where I got it from. |
Yeah, I was trying to follow guides that were only for the 2.4 kernels, and tried to emerge xfree-drm and it said to use the one in the kernel. So I did. Does anyone know if its a problem with the kernel's 'radeon' driver that makes TV-out not work correctly in X? If it is I'll try to get the 'fglrx' driver to work.
Thanks,
Josh "Schmalls" Thompson[/quote][/code] _________________ Are you pondering what I'm pondering?
Yeah, Brain, but where would we get all that cheese? |
|
Back to top |
|
|
Maheriano l33t
Joined: 18 Jun 2005 Posts: 623 Location: Calgary, Alberta
|
Posted: Sat Apr 08, 2006 2:22 am Post subject: |
|
|
subscribed _________________ Current project - carputer running.........Gentoo? |
|
Back to top |
|
|
|