11.1Smrg 21.1SmrgDRM README file 31.1Smrg 41.1Smrg 51.1SmrgThere are two main parts to this package: the DRM client library/interface 61.1.1.2Smrg(libdrm.so) and kernel/hardware-specific device modules (such as radeon.ko). 71.1.1.2SmrgThe kernel device modules are not shipped with libdrm releases and should only 81.1.1.2Smrgbe built from the git tree by developers and bleeding-edge testers of 91.1.1.2Smrgnon-Intel hardware. The Intel kernel modules are developed in the Linux 101.1.1.2Smrgkernel tree. 111.1Smrg 121.1Smrg 131.1SmrgCompiling 141.1Smrg--------- 151.1Smrg 161.1SmrgBy default, libdrm and the DRM header files will install into /usr/local/. 171.1SmrgIf you want to install this DRM to replace your system copy, say: 181.1Smrg 191.1Smrg ./configure --prefix=/usr --exec-prefix=/ 201.1Smrg 211.1SmrgThen, 221.1Smrg make install 231.1Smrg 241.1Smrg 251.1.1.2SmrgTo build the device-specific kernel modules from the git tree: 261.1Smrg 271.1Smrg cd linux-core/ 281.1Smrg make 291.1Smrg cp *.ko /lib/modules/VERSION/kernel/drivers/char/drm/ 301.1Smrg (where VERSION is your kernel version: uname -f) 311.1Smrg 321.1SmrgOr, 331.1Smrg cd bsd-core/ 341.1Smrg make 351.1Smrg copy the kernel modules to the appropriate place 361.1Smrg 371.1Smrg 381.1Smrg 391.1SmrgTips & Trouble-shooting 401.1Smrg----------------------- 411.1Smrg 421.1Smrg1. You'll need kernel sources. If using Fedora Core 5, for example, you may 431.1Smrg need to install RPMs such as: 441.1Smrg 451.1Smrg kernel-smp-devel-2.6.15-1.2054_FC5.i686.rpm 461.1Smrg kernel-devel-2.6.15-1.2054_FC5.i686.rpm 471.1Smrg etc. 481.1Smrg 491.1Smrg 501.1Smrg2. You may need to make a symlink from /lib/modules/VERSION/build to your 511.1Smrg kernel sources in /usr/src/kernels/VERSION (where version is `uname -r`): 521.1Smrg 531.1Smrg cd /lib/modules/VERSION 541.1Smrg ln -s /usr/src/kernels/VERSION build 551.1Smrg 561.1Smrg 571.1Smrg3. If you've build the kernel modules but they won't load because of an 581.1Smrg error like this: 591.1Smrg 601.1Smrg $ /sbin/modprobe drm 611.1Smrg FATAL: Error inserting drm (/lib/modules/2.6.15-1.2054_FC5smp/kernel/drivers/char/drm/drm.ko): Invalid module format 621.1Smrg 631.1Smrg And 'dmesg|tail' says: 641.1Smrg 651.1Smrg drm: disagrees about version of symbol struct_module 661.1Smrg 671.1Smrg Try recompiling your drm modules without the Module.symvers file. 681.1Smrg That is rm the /usr/src/kernels/2.6.15-1.2054_FC5-smp-i686/Module.symvers 691.1Smrg file (or rename it). Then do a 'make clean' before rebuilding your drm 701.1Smrg modules. 711.1Smrg 721.1Smrg 73