This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How could I make sure the driver work success?

Note: This was originally posted on 3rd November 2011 at http://forums.arm.com

Dear all,

I'm trying to build linux Mali200 driver in arm system.
I build mali.ko and insert it success in linux.
The attachment is log when I insert module.
It always told me "Mali device driver r2p2-03rel0 loaded".

Would you please tell me how could I make sure the driver work success?
Because I try to run the SimpleProject.
It always get the error message "Error: No EGL Display available at src/egl_runtime.c:64"

thanks.

James
Parents
  • Note: This was originally posted on 4th November 2011 at http://forums.arm.com

    Hi Pete,

    Thanks for your help.

    The following is the imformation from my target.

    # ls -l /lib/gles20/
    -rwxr-xr-x    1 root     root        118335 Jan  1 00:03 libEGL.so
    -rwxr-xr-x    1 root     root        118335 Jan  1 00:03 libEGL.so.1
    -rwxr-xr-x    1 root     root        118335 Jan  1 00:03 libEGL.so.1.4
    -rwxr-xr-x    1 root     root        217786 Jan  1 00:03 libGLESv2.so
    -rwxr-xr-x    1 root     root        217786 Jan  1 00:03 libGLESv2.so.2
    -rwxr-xr-x    1 root     root        217786 Jan  1 00:03 libGLESv2.so.2.0
    -rwxr-xr-x    1 root     root        705771 Jan  1 00:03 libMali.so
    -rwxr-xr-x    1 root     root       1663196 Jan  1 00:03 libstdc++.so.6


    # ls -l /dev/fb0 /dev/mali /dev/ump
    crw-rw-rw-    1 root     root       29,   0 Oct  4  2011 /dev/fb
    crw-rw----    1 root     root      250,   0 Jan  1 00:11 /dev/mali
    crw-rw----    1 root     root      251,   0 Jan  1 00:01 /dev/ump


    # strings /lib/gles20/libMali.so | grep r2p
    base: BUILD=RELEASE ARCH=arch_011_udd PLATFORM=default_5te TRACE=0 THREAD= GEOM= CORES=MALI200 USING_MALI200=1 TARGET_CORE_REVISION=0x0005 TOPLEVEL_REPO_URL=Linux-r2p0-00dev0 REVISION=Linux-r2p0-00dev0 CHANGED_REVISION=Linux-r2p0-00dev0 REPO_URL=Linux-r2p0-00dev0 BUILD_DATE=Tue Jan  5 15:53:44 KST 2010 CHANGE_DATE=Linux-r2p0-00dev0 TARGET_TOOLCHAIN=arm-linux-gcc HOST_TOOLCHAIN=gcc OPTS_TOOLCHAIN=arm-linux-gcc TARGET_TOOLCHAIN_VERSION=gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)  HOST_TOOLCHAIN_VERSION=gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC)  OPTS_TOOLCHAIN_VERSION=gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)  TARGET_SYSTEM=gcc-arm-linux HOST_SYSTEM=gcc-i386-redhat-linux CPPFLAGS= CUSTOMER=internal VARIANT=mali200-r0p5-gles11-gles20-vg-linux HOSTLIB=indirect INSTRUMENTED=FALSE USING_MRI=FALSE MALI_TEST_API= UDD_OS=linux


    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib/gles11:/lib/gles20;/lib/openvg

    Maybe is the version is wrong.
    In your imformation it should match r2p2, but my version is r2p0.
    I think I will try to build mali.ko (r2p0).

    James
Reply
  • Note: This was originally posted on 4th November 2011 at http://forums.arm.com

    Hi Pete,

    Thanks for your help.

    The following is the imformation from my target.

    # ls -l /lib/gles20/
    -rwxr-xr-x    1 root     root        118335 Jan  1 00:03 libEGL.so
    -rwxr-xr-x    1 root     root        118335 Jan  1 00:03 libEGL.so.1
    -rwxr-xr-x    1 root     root        118335 Jan  1 00:03 libEGL.so.1.4
    -rwxr-xr-x    1 root     root        217786 Jan  1 00:03 libGLESv2.so
    -rwxr-xr-x    1 root     root        217786 Jan  1 00:03 libGLESv2.so.2
    -rwxr-xr-x    1 root     root        217786 Jan  1 00:03 libGLESv2.so.2.0
    -rwxr-xr-x    1 root     root        705771 Jan  1 00:03 libMali.so
    -rwxr-xr-x    1 root     root       1663196 Jan  1 00:03 libstdc++.so.6


    # ls -l /dev/fb0 /dev/mali /dev/ump
    crw-rw-rw-    1 root     root       29,   0 Oct  4  2011 /dev/fb
    crw-rw----    1 root     root      250,   0 Jan  1 00:11 /dev/mali
    crw-rw----    1 root     root      251,   0 Jan  1 00:01 /dev/ump


    # strings /lib/gles20/libMali.so | grep r2p
    base: BUILD=RELEASE ARCH=arch_011_udd PLATFORM=default_5te TRACE=0 THREAD= GEOM= CORES=MALI200 USING_MALI200=1 TARGET_CORE_REVISION=0x0005 TOPLEVEL_REPO_URL=Linux-r2p0-00dev0 REVISION=Linux-r2p0-00dev0 CHANGED_REVISION=Linux-r2p0-00dev0 REPO_URL=Linux-r2p0-00dev0 BUILD_DATE=Tue Jan  5 15:53:44 KST 2010 CHANGE_DATE=Linux-r2p0-00dev0 TARGET_TOOLCHAIN=arm-linux-gcc HOST_TOOLCHAIN=gcc OPTS_TOOLCHAIN=arm-linux-gcc TARGET_TOOLCHAIN_VERSION=gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)  HOST_TOOLCHAIN_VERSION=gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC)  OPTS_TOOLCHAIN_VERSION=gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)  TARGET_SYSTEM=gcc-arm-linux HOST_SYSTEM=gcc-i386-redhat-linux CPPFLAGS= CUSTOMER=internal VARIANT=mali200-r0p5-gles11-gles20-vg-linux HOSTLIB=indirect INSTRUMENTED=FALSE USING_MRI=FALSE MALI_TEST_API= UDD_OS=linux


    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib/gles11:/lib/gles20;/lib/openvg

    Maybe is the version is wrong.
    In your imformation it should match r2p2, but my version is r2p0.
    I think I will try to build mali.ko (r2p0).

    James
Children
No data