Subject: Re: DRM, DRI, X11 and Radeon and NetBSD-current
To: Vincent <10.50@free.fr>
From: Dieter Baron <dillo@danbala.tuwien.ac.at>
List: tech-x11
Date: 03/29/2007 23:11:58
In article <460C29B6.7020502@free.fr> Vincent wrote:
: Hi there,

: I am trying to get the DRI working on my old Radeon M7, which, at least, 
: cannot claim to require special attention because of its novelty.

: I have several questions:

: * Which version of Mesa is actually needed? Is 6.4.2 all right?
: * When I compile Mesa 6.4.2 after patching it, I get several files in 
: the lib directory: the various usual libGL* and a few xxx_dri.so, where 
: xxx correspond to a Radeon chipset. Question: where do I copy those?
: * I can't seem to get a useful set of librairies: when I discard the 
: ones I regularly get ouf of pkgsrc/x11/MesaLib and replace them by the 
: dri-enable ones, glxinfo and glxgears crash reporting:
: /usr/pkg/lib/libGLU.so.1: Undefined symbol 
: "_ZTVN10__cxxabiv120__si_class_type_infoE" (symnum = 378)

  Use mesa-dri out of pkgsrc-wip instead of MesaLib, and copy the
MesaLib.buildlink3.mk file over graphics/MeasLib/buildlink3.mk.  This
gives you DRI-enabled GL libraries and driver modules.

: * While I get this all right:
: $ dmesg | grep drm
: radeondrm0 at vga0
: info: [drm] ATI Radeon LW RV200 Mobility 7500 M7 (unit 0)
: [drm:pid0:drm_load]
: [drm:pid0:radeon_driver_load] AGP card detected
: [drm:pid0:drm_agp_init] agp_available = 1
: info: [drm] AGP at 0xa0000000 256MB
: [drm:pid0:drm_mtrr_add] offset=a0000000 size=268435456
: [drm:pid0:drm_ctxbitmap_next] drm_ctxbitmap_next bit : 0
: [drm:pid0:drm_ctxbitmap_init] drm_ctxbitmap_init : 0
: info: [drm] Initialized radeon 1.25.0 20060524

: In the XFree log, I get that:

: (--) RADEON(0): Chipset: "ATI Radeon Mobility M7 LW (AGP)" (ChipID = 0x4c57)
: (--) RADEON(0): Linear framebuffer at 0x88000000
: (II) RADEON(0): AGP card detected
: drmOpenDevice: node name is /dev/dri/card0
: drmOpenDevice: open result is -1, (Device not configured)
: drmOpenDevice: open result is -1, (Device not configured)
: drmOpenDevice: Open failed
: [drm] failed to load kernel module "radeon"
: (EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
: [dri] Disabling DRI.


: Any idea? (Besides, the card0 device does go away indeed)

  Which major device number does your /dev/dri/card0 use?  What's the
output of ls -l /dev/dri/card0?  (The major number should be 180; it
was changed during import.)

						yours,
						dillo