Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jul 2008 11:53:29 +0300
From:      gelraen <gelraen.ua@gmail.com>
To:        "Roland Smith" <rsmith@xs4all.nl>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Problem with enabling DRI on ATI Mobility Radeon X1350
Message-ID:  <ac42db050807170153n5149bac1y6f2d2d429d7b723f@mail.gmail.com>
In-Reply-To: <ac42db050807161025i577d0c38m3f9c1b4f08a9b3b@mail.gmail.com>
References:  <ac42db050807160327i73d13f4ev576673458272a97d@mail.gmail.com> <20080716141153.GA27310@slackbox.xs4all.nl> <ac42db050807160738k46b7c365t183c70d2b1ea9ddc@mail.gmail.com> <20080716154946.GA29964@slackbox.xs4all.nl> <ac42db050807160905q7d0976a7n74156664efd5b715@mail.gmail.com> <20080716171553.GA32094@slackbox.xs4all.nl> <ac42db050807161025i577d0c38m3f9c1b4f08a9b3b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ac42db050807170153n5149bac1y6f2d2d429d7b723f>