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 3rd November 2011 at http://forums.arm.com

    Hi James,

    that error is caused because the very first call to EGL, eglGetDisplay() is failing. There are a couple of common reasons for that. Do you have a /dev/mali device node in your filesystem?

    You can check what major device node it should have by doing:

    cat /proc/devices

    And you shoud see in the 1st half of the output a character device for mali, e.g.:

    Character devices:
    252 mali


    In that case, you should also have a corresponding device node:

    # ls -l /dev/mali
    crw-rw----  1 root root 252,  0 Aug 22 08:20 mali


    If the node doesn't exist you can create it with:

    mknod /dev/mali c 252 0

    Substituting whatever major device number you found in /proc/devices

    Can you have a look and let us know what you find?

    Cheers, Pete
Reply
  • Note: This was originally posted on 3rd November 2011 at http://forums.arm.com

    Hi James,

    that error is caused because the very first call to EGL, eglGetDisplay() is failing. There are a couple of common reasons for that. Do you have a /dev/mali device node in your filesystem?

    You can check what major device node it should have by doing:

    cat /proc/devices

    And you shoud see in the 1st half of the output a character device for mali, e.g.:

    Character devices:
    252 mali


    In that case, you should also have a corresponding device node:

    # ls -l /dev/mali
    crw-rw----  1 root root 252,  0 Aug 22 08:20 mali


    If the node doesn't exist you can create it with:

    mknod /dev/mali c 252 0

    Substituting whatever major device number you found in /proc/devices

    Can you have a look and let us know what you find?

    Cheers, Pete
Children
No data