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