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

Getting Mali Graphics Debugger to work - "unable to read stream"

Hello,

this is my first post here, I'm trying to get the Mali Graphics Degubber to work. I've manager to copy the mgddaemon and libGLES_mgd.so to the correct location but when I try to run mgddaemon on the shell it says:

[1]   Illegal instruction     mgddaemon

And when I hit the connect button at the MGD an error pops up saying:

Unable to read stream: No data received from the target. Check the connection.

I would love if anyone could help me, thank you very much.

Parents
  • Hi draquod,

    I should mention that there are debugging tools available for Adreno here: Mobile Gaming & Graphics - Adreno Tools and Resources - Qualcomm Developer Network. These are designed for Adreno GPU's and should work out of the box on the Nexus5.

    For MGD, the following is untested on Nexus5. At best you won't be able to trace any QCOM extensions, at worst it just won't work.

    From a root shell on the device (adb shell su):

    1. $ mount -o remount /system
    2. $ cd /system/lib/egl
    3. rename any _adreno.so files to _mali.so with $ mv foo_adreno.so foo_mali.so
    4. $ cd /vendor/lib/egl
    5. rename any _adreno.so files to _mali.so with $ mv foo_adreno.so foo_mali.so

    Assuming MGD is installed correctly it will find the _mali.so files. You can check logcat output for any GLES application to see if this was the case, it will report its attempts to find the libraries and its success/failure.

    Hope this helps,

    Chris

Reply
  • Hi draquod,

    I should mention that there are debugging tools available for Adreno here: Mobile Gaming & Graphics - Adreno Tools and Resources - Qualcomm Developer Network. These are designed for Adreno GPU's and should work out of the box on the Nexus5.

    For MGD, the following is untested on Nexus5. At best you won't be able to trace any QCOM extensions, at worst it just won't work.

    From a root shell on the device (adb shell su):

    1. $ mount -o remount /system
    2. $ cd /system/lib/egl
    3. rename any _adreno.so files to _mali.so with $ mv foo_adreno.so foo_mali.so
    4. $ cd /vendor/lib/egl
    5. rename any _adreno.so files to _mali.so with $ mv foo_adreno.so foo_mali.so

    Assuming MGD is installed correctly it will find the _mali.so files. You can check logcat output for any GLES application to see if this was the case, it will report its attempts to find the libraries and its success/failure.

    Hope this helps,

    Chris

Children