ProSavage and DRI (Was Re: XFree86: New via driver with DRI)

Alexandre Strube surak at casa.surak.eti.br
Mon Feb 16 02:19:32 UTC 2004


Em Dom, 2004-02-15 às 14:46, Alan Cox escreveu:

> > > Its still a bit rickety and it has trivial security exploits because the
> > > 2D engine is overexposed to user space
(....)
> If you've got an S3 you can grab the bits from the DRI sf site and have a
> play. It seems to work ok for most people now

Got it, but don't know how to compile it for fedora. According to what
Alex Deucher said on DRI list (
http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg14732.html ), which is

"you need to build the savage kernel module.  The code is in:
xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel

Change to that directory and then type:
make -f Makefile.linux
or
make -f Makefile.linux LINUXDIR=/path/to/kernel/src

If you are using redhat 9 (possibly fedora as well), the build will
fail because redhat is using the MM code from 2.6 in their 2.4 kernels.
 If that is the case you will need to download and install a vanilla
2.4 kernel."

I tried it anyway, and then the result was:

In file included from gamma_drv.c:49:
drm_init.h: In function `gamma_cpu_valid':
drm_init.h:123: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function)
In file included from gamma_drv.c:55:
drm_memory.h:64:1: warning: "pte_pfn" redefined
In file included from /usr/src/linux-2.4.22-1.2140.nptl/include/asm/pgtable.h:124,
                 from /usr/src/linux-2.4.22-1.2140.nptl/include/linux/mm.h:26,
                 from /usr/src/linux-2.4.22-1.2140.nptl/include/linux/slab.h:14,
                 from /usr/src/linux-2.4.22-1.2140.nptl/include/linux/proc_fs.h:5,
                 from drmP.h:50,
                 from gamma_drv.c:34:
/usr/src/linux-2.4.22-1.2140.nptl/include/asm/pgtable-2level.h:63:1: warning: this is the location of the previous definition
In file included from gamma_drv.c:57:
drm_vm.h: In function `gamma_mmap':
drm_vm.h:600: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function)
In file included from gamma_drv.c:58:
drm_stub.h: In function `gamma_stub_open':
drm_stub.h:72: warning: implicit declaration of function `try_inc_mod_count_Re6105b23'
In file included from gamma_drv.c:58:
drm_stub.h: In function `gamma_stub_putminor':
drm_stub.h:147: warning: implicit declaration of function `inter_module_unregister_R7a9e845e'
drm_stub.h: In function `gamma_stub_register':
drm_stub.h:188: warning: implicit declaration of function `inter_module_register_R62dada05'
make[2]: ** [gamma_drv.o] Erro 1
make[2]: Saindo do diretório `/home/surak/savage/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel'
make[1]: ** [_mod_/home/surak/savage/xc/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel] Erro 2
make[1]: Saindo do diretório `/usr/src/linux-2.4.22-1.2140.nptl'
make: ** [modules] Erro 2


As I want to keep with fedora kernels, (and I just realized that this
machine has it outdated), am I trapped? Will I have to grab a vanilla
kernel for this?

Thanks for any help.


-- 
[]s

Alexandre Ganso 
500 FOUR vermelha - Diretor Steel Goose Moto Group





More information about the fedora-devel-list mailing list