<br><br><br>Hi,<br><br>I have a geforce 4mx 440 agp 8x, and I&#39;m trying to use the GBM library, <br>(as jbarnes in: <a href="http://virtuousgeek.org/blog/index.php/jbarnes/2011/10/" target="_blank">http://virtuousgeek.org/blog/index.php/jbarnes/2011/10/</a><br>

and David Hermann in KMSCON: <a href="https://github.com/dvdhrm/kmscon" target="_blank">https://github.com/dvdhrm/kmscon</a>), <br>without success.<br><br>when I try to create a gbm_device, I get: (below the code.)<br><br>
nouveau_drm_screen_create: unknown chipset nv18<br>
dri_init_screen_helper: failed to create pipe_screen<br>loaded /usr/lib/gbm/pipe_nouveau.so<br>nouveau_drm_screen_create: unknown chipset nv18<br>failed to load driver: nouveau<br><br><br>My question is:<br>Is this not supported by the driver?,<br>
It&#39;s a GBM problem? or am I doing something wrong?<br><br><br><br>when I run the following code:<br><br>#include &lt;errno.h&gt;<br>#include &lt;fcntl.h&gt;<br>
#include &lt;gbm.h&gt;<br><br>#include &lt;stdlib.h&gt;<br>#include &lt;stdio.h&gt;<br><br>#include &lt;xf86drmMode.h&gt;<br>#include &lt;xf86drm.h&gt;<br>#include &lt;libdrm/drm.h&gt;<br><br>int main(int argc, char* argv[])<br>

{<br>    int fd;<br>    struct gbm_device *gbm = NULL;<br><br>    fd = open(&quot;/dev/dri/card0&quot;, O_RDWR | O_CLOEXEC);<br>    if (fd &lt; 0) {<br>        perror(&quot;====&gt; open error /dev/dri/card0...&quot;);      <br>

        exit(-1);<br>    }<br>    printf(&quot;..... open /dev/dri/card0, fd = %d\n\n&quot;, fd);<br>            <br>    gbm = gbm_create_device(fd);<br>    if (!gbm) {<br>        perror(&quot;\n====&gt; cannot create gbm device...&quot;);      <br>

        fprintf(stderr, &quot;====&gt; errno = %d\n&quot;, errno);<br>            exit(-1);<br>    }<br><br>    exit(0);<br>}<br><br><br>I get:<br><br>..... open /dev/dri/card0, fd = 3<br><br>nouveau_drm_screen_create: unknown chipset nv18<br>

dri_init_screen_helper: failed to create pipe_screen<br>loaded /usr/lib/gbm/pipe_nouveau.so<br>nouveau_drm_screen_create: unknown chipset nv18<br>failed to load driver: nouveau<br><br>====&gt; cannot create gbm device...: No such file or directory<br>

====&gt; errno = 2    <br><br><br>some details:<br>distro: Archlinux<br>kernel: 3.3.3<br>Mesa 8.0 from git: ./autogen.sh --prefix=/usr --with-dri-driverdir=/usr/lib/xorg/modules/dri \<br>
                --with-dri-drivers=i915,i965,nouveau,radeon,r200 \<br>                --with-gallium-drivers=r300,r600,nouveau,svga,swrast \<br>                --with-egl-platforms=drm,x11 \<br>                --enable-gallium-llvm \<br>

                --enable-gallium-egl \<br>                --enable-shared-dricore \<br>                --enable-shared-glapi \<br>                --enable-egl \<br>                --enable-gles1 \<br>                --enable-gles2 \<br>

                --enable-openvg \<br>                --enable-glx-tls \<br>                --enable-xcb \<br>                --enable-gbm \<br>                --enable-dri \<br>                --enable-xa \<br>                --enable-gallium-gbm \<br>

                --enable-osmesa \<br>                --enable-texture-float \<br>                --enable-debug<br><br>libdrm 2.4.33 from git.<br>xf86-video-nouveau from git.<br><br><br>If necessary I will provide any other relevant information.<br>

<br>Thanks,<br>Gabriel Muguerza.<br><br>(English is not my native language, please excuse the typos.)<br><br><br><br><br><br>