Problem with enabling DRI on ATI Mobility Radeon X1350

gelraen gelraen.ua at gmail.com
Thu Jul 17 08:53:30 UTC 2008


This was much easier, that I waited :)
After first build I had "link_elf: symbol drm_core_ioremap_wc undefined"
every time I tried to kldload radeon, but it was solved by 3
additional lines in sources :)

So, here is step-by-step instruction:

1) download sources
$ git clone git://anongit.freedesktop.org/git/mesa/drm
$ cd drm

2) edit sources
# git diff
diff --git a/bsd-core/drmP.h b/bsd-core/drmP.h
index 88ea4e6..122ac4a 100644
--- a/bsd-core/drmP.h
+++ b/bsd-core/drmP.h
@@ -1117,5 +1117,9 @@ static __inline__ void drm_core_dropmap(struct
drm_map *map)
 {
 }

+#ifndef drm_core_ioremap_wc
+# define drm_core_ioremap_wc drm_core_ioremap
+#endif
+
 #endif /* __KERNEL__ */
 #endif /* _DRM_P_H_ */

3) install kernel modules
# cd bsd-core
# make && make install
# kldunload radeon
# kldunload drm
# kldload drm
# kldload radeon

4) check result
$ dmesg | grep drm
drm0: <ATI Mobility Radeon X1350> on vgapci0
vgapci0: child drm0 requested pci_enable_busmaster
info: [drm] Initialized radeon 1.29.0 20080613

I haven't tried to integrate these sources in kernel, so I have only
device agp in kernel config,
not drm/radeondrm

After that KDE starts work much faster :)
But I still have problems running Compiz/Beryl...
Even kompmgr fails to start with KDE, but works just fine if started manually.

gelraen


More information about the freebsd-questions mailing list