On Wed, 03 Apr 2002 21:25:54 -0500 Terry Grantges wrote: >I am running Linux linuxfromscratch Kernel version 2.4.18 on a PIII with a >Rage Fury Pro AGP video card. I installed XFree 4.2 and everything works >except dri. I get the following message in the XFree86.0.log: > >(EE) R128(0): [dri] R128DRIScreenInit failed because of a version mismatch. >[dri] r128.o kernel module version is 2.1.6 but version 2.2 or greater is >needed >[dri] Disabling the DRI. I got the same error message after I had upgraded from XFree 4.1.0 to 4.2.0, using the binaries supplied by xfree86.org. Before I did the upgrade, dri worked. (Redhat 7.1, ATI Xpert AGP video card, kernel 2.4.18 from kernel.org) >I went to http://www.xfree86.org/~alanh/ and downloaded and installed the >latest kernel drivers but all I get is unresolved symbols. I got this too when I manually placed r128.o into /lib/modules/2.4.18-11/kernel/drivers/char/drm. What finally led me to (kinda) success was a complete kernel recompile, including the sources from http://www.xfree86.org/~alanh. I'll give you the steps in some detail: - remove /usr/src/linux/drivers/char/drm - tar linux-drm-4.2.0-kernelsource.tar.gz into /usr/src/linux/drivers/char/, thus creating a new /drm folder - rename /usr/src/linux/drivers/char/drm/Makefile.kernel to (...)Makefile (!) - config the kernel with the following settings: [snip] CONFIG_AGP=m # CONFIG_AGP_INTEL is not set # CONFIG_AGP_I810 is not set CONFIG_AGP_VIA=y # CONFIG_AGP_AMD is not set # CONFIG_AGP_SIS is not set # CONFIG_AGP_ALI is not set # CONFIG_AGP_SWORKS is not set CONFIG_DRM=y # CONFIG_DRM_OLD is not set # # DRM 4.1 drivers # CONFIG_DRM_NEW=y CONFIG_DRM=y # CONFIG_DRM_TDFX is not set # CONFIG_DRM_GAMMA is not set CONFIG_DRM_R128=m # CONFIG_DRM_RADEON is not set # CONFIG_DRM_I810 is not set # CONFIG_DRM_I830 is not set # CONFIG_DRM_MGA is not set # CONFIG_MWAVE is not set [snip] (...perhaps you should enable a different chipset) - recompile in the usual way. I have read somewhere that you should load the agpgart kernel module before r128.o gets loaded, so I added the following line to modules.conf : pre-install r128 modprobe agpgart but I don't know if this is essential; dri would get enabled without agpgart. After restarting the x-server, voilą: dri. There are two hitches left with my setup: - When the kde login shows up, it is barely readable and the screen is a bit scrambled, but when kde get loaded, the screen looks nice as ever. - dmesg shows me two two errors: mtrr: no MTRR for dc000000,2000000 found [drm:r128_cce_indirect] *ERROR* process 687 using buffer owned by 0 The last one is repeated for several times. Perhaps others might know a solution about it. Klaus