HOWTO: enabling DRI (for 3d support) SAVAGE cards
This is for Ubuntu Breezy ONLY. Please do not use this howto on any other subsequent releases (Dapper, Edgy, etc)
This is how to do it:
FOR OLDER INTEL AND AMD CHIPSETS (INTEL 386, 486 ETC.)
Jump straight to "COMMON FOR ALL CHIPSETS"
FOR INTEL 686 CHIPSETS (WITHOUT HYPERTHREADING)
Code:
sudo apt-get install linux-image-2.6.10-5-686
sudo apt-get install linux-headers-2.6.10-5-686
sudo apt-get install linux-restricted-modules-2.6.10-5-686
Then restart the comp and boot into the 686 kernel image from grub (u will get that option).
Now remove
linux-image-2.6.10-5-386 and linux-headers-2.6.10-5-386
from synaptic.
FOR INTEL CHIPSETS (WITH HYPERTHREADING)
Code:
sudo apt-get install linux-image-2.6.10-5-686-smp
sudo apt-get install linux-headers-2.6.10-5-686-smp
sudo apt-get install linux-restricted-modules-2.6.10-5-686-smp
Then restart the comp and boot into the 686-smp kernel image from grub (u will get that option).
Now remove
linux-image-2.6.10-5-386 and linux-headers-2.6.10-5-386
from synaptic.
FOR AMD CHIPSETS
Code:
sudo apt-get install linux-image-2.6.10-5-k7
sudo apt-get install linux-headers-2.6.10-5-k7
sudo apt-get install linux-restricted-modules-2.6.10-5-k7
Then restart the comp and boot into the k7 kernel image from grub (u will get that option).
Now remove
linux-image-2.6.10-5-386 and [I][B]linux-headers-2.6.10-5-386
from synaptic.
COMMON FOR ALL CHIPSETS
PHP Code:
sudo apt-get install build-essential
wget http://dri.freedesktop.org/snapshots/common-20050707-linux.i386.tar.bz2
wget http://dri.freedesktop.org/snapshots/savage-20050707-linux.i386.tar.bz2
tar -xjf common-20050707-linux.i386.tar.bz2
tar -xjf savage-20050707-linux.i386.tar.bz2
cd dripkg
sudo ./install.sh
restart your comp (or just X server).
enjoy tuxracer!
Re: HOWTO: enabling DRI (for 3d support) SAVAGE cards
after i type "sudo ./install.sh" i get the following error when ubuntu tries to compile:
ERROR: Kernel modules did not compile
The DRI drivers can not be installed without the latest kernel modules.
Installation will be aborted. See the dri.log file for information on
what went wrong.
the dri.log says:
make DRM_MODULES=savage.o modules
make[1]: Entering directory `/home/qrazi/dripkg/drm/linux-core'
make -C /lib/modules/2.6.10-5-386/build SUBDIRS=`pwd` DRMSRCDIR=`pwd` modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.10-5-386'
/home/qrazi/dripkg/drm/linux-core/Makefile:279: *** CONFIG_X86_CMPXCHG needs to be enabled in the kernel. Stop.
make[2]: *** [_module_/home/qrazi/dripkg/drm/linux-core] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.10-5-386'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/qrazi/dripkg/drm/linux-core'
make: *** [savage.o] Error 2
as far as i know, i'm using X.org (i am running a clean ubuntu 5.04 hoary install).
the card used: Diamond stealth 540 16mb agp (Savage4 chip)
OT: would it be wiser to put my old voodoo5 in, performance and installation wise? or has the savage4 better support?
as you can read, i am a big newbie.... to both ubuntu and linux...
Re: HOWTO: enabling DRI (for 3d support) SAVAGE cards
what is the processor that u use?
what u would probably do is the following:
upgrade your kernel to 686 (from 386): how to do that?
go to synaptic and search for the string "2.6.10-5" . what u will get among other packages is a list of 686 packages which u need to install (DO NOT uninstall the 386 packages yet) . Also at the same go, search for "linux-headers" and remove "linux-headers-2.6.10-5" and install "linux-headers-2.6.10-5-686". Also install the appropriate "dev" packages as well in the same place.
if u are using grub, reboot your comp and you will see an extra option of booting into the 686 kernel. Boot into the 686 kernel and go to synaptic again and remove the 386 kernel.
if u are using lilo, do a "sudo lilo" before rebooting and it will backup ur old kernel config and make ur 686 the default.
now try and run "install.sh" again and tell me how it goes.
Re: HOWTO: enabling DRI (for 3d support) SAVAGE cards
i use a celeron 800@1060MHz. i had the 2.6.10 kernel installed, 386 version. after i replied i did some more google work, and read somewhere that you need to have kernel 2.6.11 installed for it to work. and then i read your tip about the 686 version, so now i am running kernel 2.6.11-686
glxgears was ~130fps, now ~450fps..... still not a lot, but Cube is very playable now.
and this isnt my game machine anyway, more of a "getting to know linux pc"
Re: HOWTO: enabling DRI (for 3d support) SAVAGE cards
Does this system work with debian testing and XFree too???
Re: HOWTO: enabling DRI (for 3d support) SAVAGE cards
Quote:
Originally Posted by Obi
Does this system work with debian testing and XFree too???
I've searched a bit for this, and I've found out that the Savage driver for Xfree86 does not support DRI :( so we'll have to wait for X.org first.
Re: HOWTO: enabling DRI (for 3d support) SAVAGE cards
I'm having trouble with mine now. I performed the steps exactly as above, however I get this in my dri.log file:
"Makefile:163: *** Cannot find a kernel config file. Stop."
Any suggestions? Thanks.
Re: HOWTO: enabling DRI (for 3d support) SAVAGE cards
what is your processor? (Intel/AMD etc)
Re: HOWTO: enabling DRI (for 3d support) SAVAGE cards
Quote:
Originally Posted by arnieboy
what is your processor? (Intel/AMD etc)
Quote:
Originally Posted by cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 4
model name : AMD Athlon(tm) Processor
stepping : 2
cpu MHz : 1002.416
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr pni syscall mmxext 3dnowext 3dnow
bogomips : 1982.46
lspci identifies the card as "S3 Inc. ProSavage KM133". It's an integrated chip. According to the install script that qualifies as the correct driver.
and uname -a says I have the version 2.6.10-5-386 kernel.
This is a Compaq Presario 5000 series from circa 2001. A Compaq 5UVM11 to be exact. Any ideas?
Re: HOWTO: enabling DRI (for 3d support) SAVAGE cards
from synaptic install the following:
linux-headers-2.6.10-5-k7
linux-image-2.6.10-5-k7
linux-restricted-modules-2.6.10-5-k7
then restart the comp and boot into the k7 kernel image from grub (u will get that option).
Now remove
linux-image-2.6.10-5-386
from synaptic.
Now try and install the savage 3d drivers again.
make sure u note ur fps reading on glxgears before and after u install the drivers