1 1.1.1.1.18.2 yamt 2 1.1.1.1.18.2 yamt DRM README file 3 1.1.1.1.18.2 yamt 4 1.1.1.1.18.2 yamt 5 1.1.1.1.18.2 yamt There are two main parts to this package: the DRM client library/interface 6 1.1.1.1.18.3 yamt (libdrm.so) and kernel/hardware-specific device modules (such as radeon.ko). 7 1.1.1.1.18.3 yamt The kernel device modules are not shipped with libdrm releases and should only 8 1.1.1.1.18.3 yamt be built from the git tree by developers and bleeding-edge testers of 9 1.1.1.1.18.3 yamt non-Intel hardware. The Intel kernel modules are developed in the Linux 10 1.1.1.1.18.3 yamt kernel tree. 11 1.1.1.1.18.2 yamt 12 1.1.1.1.18.2 yamt 13 1.1.1.1.18.2 yamt Compiling 14 1.1.1.1.18.2 yamt --------- 15 1.1.1.1.18.2 yamt 16 1.1.1.1.18.2 yamt By default, libdrm and the DRM header files will install into /usr/local/. 17 1.1.1.1.18.2 yamt If you want to install this DRM to replace your system copy, say: 18 1.1.1.1.18.2 yamt 19 1.1.1.1.18.2 yamt ./configure --prefix=/usr --exec-prefix=/ 20 1.1.1.1.18.2 yamt 21 1.1.1.1.18.2 yamt Then, 22 1.1.1.1.18.2 yamt make install 23 1.1.1.1.18.2 yamt 24 1.1.1.1.18.2 yamt 25 1.1.1.1.18.3 yamt To build the device-specific kernel modules from the git tree: 26 1.1.1.1.18.2 yamt 27 1.1.1.1.18.2 yamt cd linux-core/ 28 1.1.1.1.18.2 yamt make 29 1.1.1.1.18.2 yamt cp *.ko /lib/modules/VERSION/kernel/drivers/char/drm/ 30 1.1.1.1.18.2 yamt (where VERSION is your kernel version: uname -f) 31 1.1.1.1.18.2 yamt 32 1.1.1.1.18.2 yamt Or, 33 1.1.1.1.18.2 yamt cd bsd-core/ 34 1.1.1.1.18.2 yamt make 35 1.1.1.1.18.2 yamt copy the kernel modules to the appropriate place 36 1.1.1.1.18.2 yamt 37 1.1.1.1.18.2 yamt 38 1.1.1.1.18.2 yamt 39 1.1.1.1.18.2 yamt Tips & Trouble-shooting 40 1.1.1.1.18.2 yamt ----------------------- 41 1.1.1.1.18.2 yamt 42 1.1.1.1.18.2 yamt 1. You'll need kernel sources. If using Fedora Core 5, for example, you may 43 1.1.1.1.18.2 yamt need to install RPMs such as: 44 1.1.1.1.18.2 yamt 45 1.1.1.1.18.2 yamt kernel-smp-devel-2.6.15-1.2054_FC5.i686.rpm 46 1.1.1.1.18.2 yamt kernel-devel-2.6.15-1.2054_FC5.i686.rpm 47 1.1.1.1.18.2 yamt etc. 48 1.1.1.1.18.2 yamt 49 1.1.1.1.18.2 yamt 50 1.1.1.1.18.2 yamt 2. You may need to make a symlink from /lib/modules/VERSION/build to your 51 1.1.1.1.18.2 yamt kernel sources in /usr/src/kernels/VERSION (where version is `uname -r`): 52 1.1.1.1.18.2 yamt 53 1.1.1.1.18.2 yamt cd /lib/modules/VERSION 54 1.1.1.1.18.2 yamt ln -s /usr/src/kernels/VERSION build 55 1.1.1.1.18.2 yamt 56 1.1.1.1.18.2 yamt 57 1.1.1.1.18.2 yamt 3. If you've build the kernel modules but they won't load because of an 58 1.1.1.1.18.2 yamt error like this: 59 1.1.1.1.18.2 yamt 60 1.1.1.1.18.2 yamt $ /sbin/modprobe drm 61 1.1.1.1.18.2 yamt FATAL: Error inserting drm (/lib/modules/2.6.15-1.2054_FC5smp/kernel/drivers/char/drm/drm.ko): Invalid module format 62 1.1.1.1.18.2 yamt 63 1.1.1.1.18.2 yamt And 'dmesg|tail' says: 64 1.1.1.1.18.2 yamt 65 1.1.1.1.18.2 yamt drm: disagrees about version of symbol struct_module 66 1.1.1.1.18.2 yamt 67 1.1.1.1.18.2 yamt Try recompiling your drm modules without the Module.symvers file. 68 1.1.1.1.18.2 yamt That is rm the /usr/src/kernels/2.6.15-1.2054_FC5-smp-i686/Module.symvers 69 1.1.1.1.18.2 yamt file (or rename it). Then do a 'make clean' before rebuilding your drm 70 1.1.1.1.18.2 yamt modules. 71 1.1.1.1.18.2 yamt 72 1.1.1.1.18.2 yamt 73