Subject: DRI/DRM Intel 945GM problem
To: None <tech-x11@netbsd.org>
From: Ahmad M. Afuni <pseudo.statistic@gmail.com>
List: tech-x11
Date: 05/20/2007 19:35:27
Hey,
I compiled my kernel (GENERIC.MP) with:
i915drm*        at vga?         # Intel i915, i945 DRM driver
And so dmesg tells me:
i915drm0 at vga1
info: [drm] Intel i945GM (unit 0)
info: [drm] AGP at 0xc0000000 256MB
info: [drm] Initialized i915 1.5.0 20060119
Which seems OK.
Now, to install xorg, I installed (from pkgsrc) x11/xf86-video-i810,
modular-xorg-server, and the usual mouse/keyboard input drivers.
I had:
X11_TYPE=modular
PKG_OPTIONS.xorg-server=dri
in my mk.conf.
Now, after installing the above, I tried X out, only to have this in
my Xorg.0.log:
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
[drm] failed to load kernel module "i915"
(II) I810(0): [drm] drmOpen failed
(EE) I810(0): [dri] DRIScreenInit failed. Disabling DRI.
Afterwards, realizing that I needed mesa-dri, I installed wip/mesa-dri
and copied over the MesaLib.buildlink3.mk file over to
graphics/MesaLib/buildlink3.mk.
Furthermore, I pkg_deleted i810's driver and rebuilt it.
Still, exact same error. I must've missed something.
Anyone know what that might be?

Thanks,
Ahmad