24.11.2014, 07:10 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

ATI IGP Direct Rendering on Kanotix - mini-HOWTO


This HOWTO is written by Zipslack

After a lot of experimenting, I finally got working Direct Rendering/OpenGL? on my Presario2500? laptop with the ATI IGP345 graphic chipset. Here's a HOWTO that should work for all IGP320/330/340/345 chipsets.

DISCLAIMER: This worked for my system -- YMMV. You may trash your system by using these instructions. Have a rescue disk or boot disk handy (the Kanotix CD would probably be fine for this).

All of the steps should be handled at the console. At KDM, choose "Console Login" as the session. X libraries will have to be replaced and there will be greater chance of success if X is not running.

1. Add the following line to your /etc/apt/sources.list
deb http://people.debian.org/~daenzer/dri-trunk-unstable ./ 


2.a. apt-get update and then install the 2.6 kernel. I was successful with the 2.6.5 kernel from debian.
aptitude install kernel-image-2.6.5-1-686
(in place of -686, use the appropriate suffix for your hardware; -386,-686,-686-smp,-K7,-K7-smp)
b. When asked about stopping to configure LILO, choose "n"
c. When asked about installing a boot block with the existing
lilo.conf, choose "no"
d. When asked about wiping & creating a new lilo config, choose "no"

The following two sections are for Lilo. I do not use Grub

3. Edit your bootloader file (/boot/menu.list or /etc/lilo.conf for lilo)
I use Lilo, so I added the following lines:
image=/boot/vmlinuz-2.6.5-1-686 initrd=/boot/initrd.img-2.6.5-1-686 
 label="Kanotix26" 
 vga=normal #FB still acts funny with 2.6 and ATI 
 root=/dev/hda3 #change to match your install location 
 append="~~~" #whatever options you need 
 read-only 


The root= line is optional and should already be set elsewhere, but I'm booting multiple distros.

4. Execute the command lilo and watch for errors. Make sure the new entry is added to the table.

5. Back up your /etc/modules file as /etc/modules.original
and then reboot to make sure the bootloader and kernel work properly. (This is where you might need the rescueCD? or boot floppy). As the computer is booting, watch for the option about making a new hardware profile and press a key so your hardware can be re-detected and a new /etc/modules written. Don't be scared if X won't start on reboot.

6. After a successful boot, edit /etc/modules and add the following lines:
ati-agp 
 radeon


Go ahead and modprobe these two modules and check with dmesg to make sure they load properly.

7. Still at the console (as root), get and install the kernel source. This will be needed for the DRM module compile.
a. aptitude install kernel-source-2.6.5
b. cd /usr/src and tar -xjvf kernel-source-2.6.5.tar.bz2?
c. Change the symlink for the new kernel source
# rm -f linux 
 # ln -s kernel-source-2.6.5 linux 


d. cd /usr/src/linux and then make oldconfig

8. Download & compile DRI-trunk packages.
aptitude install xserver-xfree86?-dri-trunk xlibmes-gl1?-dri-trunk
(drm-trunk-module-src will also be downloaded, but will not be used because it doesn't work properly)

9. Download and compile the DRI kernel module (in /usr/src)
# wget www.freedesktop.org/~dri/snapshots/r200-20040513-linux.i386.tar.bz2 
 # tar -xjvf r200*.tar.bz2 
 # cd dripkg 
 # export LINUXDIR=/usr/src/linux 
 # ./install.sh 


10. Edit /etc/X11/XF86Config-4 and add/modify the following lines:
## Section "Modules" should include: 
 Load "dri" 
 Load "glcore" 
 Load "glx" 


Section "Device" should include:
Driver "radeon" 
 Option "AGPMode" "4" 
 Option "AGPFastWrite" "on" 
 Option "EnablePageFlip" "on" 


and make sure the following section is in there:
Section "DRI" 
 Mode 0666 
 EndSection 


11. Hopefully, things will work at this point. startx and then open a terminal. Run glxinfo and look for "direct rendering: Yes" near the top. Run glxgears and check your FPS and CPU usage.

With the normal 2D setup, my 2.6GHz laptop ran ~370 fps with 100% CPU usage. New DRI setup runs ~530 fps with 12% CPU usage. All OpenGL? screensaver modes work fine, except Lament locked up once. Tuxracer, TuxKart?, and FlightGear? all work fine. For Tuxracer, it will start but with a black screen. Hit Q to quit and then edit your ~/.tuxracer/options file and turn full-screen off. After this it will run fine.

Hope this helps.

This HOWTO is written by Zipslack


zurück zum Hardware-Menü

XML Revisions of $tag
Seiten-History :: Letzter Editor : Richard :: Eigentümer : NirvanOne ::
Powered by pnWikka 1.0
 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.