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 ARM Streamline to work with Samsung S2

Note: This was originally posted on 26th April 2013 at http://forums.arm.com

Hi,

we have performance issues with Mali400 GPU's and need to track them down.

The ARM Streamline tool seems to be very useful for that.

We are using a Samsung S2 (GT I9100) to check here.

If I do the 'adb forward tcp:8080 tcp:8080' and try to connect with Streamline to localhost then I'll get a message: "Unable to receive data from the gator daemon .... ".
Obviously some gator process is missing (checked processes with ps and it's not listed there).

After doing some research, all I found is intructions on how to compile a kernel with a gator module.

I'm developing on a Windows 7 machine.
Even if I would fight through this, there is a step following that needs to start this gator with root rights.

Since I'm using a customer device I don't have root rights and I don't like to root it (let alone the illegal feel of it..).

So my final question is: is this the way? Or did I miss something?


Thanks in advance!
Bodo
Parents
  • Note: This was originally posted on 23rd May 2013 at http://forums.arm.com

    Ok, got the gator.ko now. Obviously the M parameter of the make is crucial and was pointing to the wrong directory.
    Replaced it with an absolute path (those single quotes won't work for me) and the gator.ko was created :D

    2 Questions now:

    [s]Question 1 - Mali driver support:
    Now I want to follow the next steps: http://infocenter.ar...2294970611.html

    Since we like to analyze graphics performance I assume we need Mali Support.
    As the docs state, a make flag has to be added that includes a directory pointing to the Mali driver source.

    Where do I get this driver source? Did some googling but couldn't find an obvious source.[/s]

    Found a driver on the ARM page (DX910-SW-99002-r3p2-01rel1). Building the gator.ko with Mali support as described worked. :)

    [s]Question 2 - Building the daemon:
    I followed the steps described here: http://infocenter.ar...2178383724.html

    (Unpack the daemon source, navigate there, do 'make').

    The make fails with:
    fakt@KHEPRIUBUNTU:~/dev/gator/daemon-src/gator-daemon$ make
    /home/fakt/dev/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-g++ -c -mthumb-interwork -O3 -Wall -fno-exceptions -pthread -MMD -DETCDIR=\"/etc\" -Ilibsensors -fno-rtti -o Buffer.o Buffer.cpp
    arm-eabi-g++: unrecognized option '-pthread'
    In file included from Buffer.cpp:9:
    Buffer.h:13:20: error: stdint.h: No such file or directory
    Buffer.h:14:23: error: semaphore.h: No such file or directory
    In file included from Buffer.cpp:11:
    ... (just an excerpt, the output is longer)


    Obviously some includes can't be found. I tried around with tweaking the common.mk and adding -I pointing to the missing includes. This helps for a while but then I end with a ld fail because of a missing crt0.o.

    Any help on this is appreciated. I think tweaking the makefile should not be necessary here and something more general is wrong.[/s]

    Ok, got a gatord now. This was a bit tricky to read from the documentation (at least for me). Rename the source dir to jni. Setting the right NDK Project Path. Executing ndk build in the right dir.


    Now let's hope everything works on the device...


    Thanks in advance again!
    Best,
    Bodo
Reply
  • Note: This was originally posted on 23rd May 2013 at http://forums.arm.com

    Ok, got the gator.ko now. Obviously the M parameter of the make is crucial and was pointing to the wrong directory.
    Replaced it with an absolute path (those single quotes won't work for me) and the gator.ko was created :D

    2 Questions now:

    [s]Question 1 - Mali driver support:
    Now I want to follow the next steps: http://infocenter.ar...2294970611.html

    Since we like to analyze graphics performance I assume we need Mali Support.
    As the docs state, a make flag has to be added that includes a directory pointing to the Mali driver source.

    Where do I get this driver source? Did some googling but couldn't find an obvious source.[/s]

    Found a driver on the ARM page (DX910-SW-99002-r3p2-01rel1). Building the gator.ko with Mali support as described worked. :)

    [s]Question 2 - Building the daemon:
    I followed the steps described here: http://infocenter.ar...2178383724.html

    (Unpack the daemon source, navigate there, do 'make').

    The make fails with:
    fakt@KHEPRIUBUNTU:~/dev/gator/daemon-src/gator-daemon$ make
    /home/fakt/dev/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-g++ -c -mthumb-interwork -O3 -Wall -fno-exceptions -pthread -MMD -DETCDIR=\"/etc\" -Ilibsensors -fno-rtti -o Buffer.o Buffer.cpp
    arm-eabi-g++: unrecognized option '-pthread'
    In file included from Buffer.cpp:9:
    Buffer.h:13:20: error: stdint.h: No such file or directory
    Buffer.h:14:23: error: semaphore.h: No such file or directory
    In file included from Buffer.cpp:11:
    ... (just an excerpt, the output is longer)


    Obviously some includes can't be found. I tried around with tweaking the common.mk and adding -I pointing to the missing includes. This helps for a while but then I end with a ld fail because of a missing crt0.o.

    Any help on this is appreciated. I think tweaking the makefile should not be necessary here and something more general is wrong.[/s]

    Ok, got a gatord now. This was a bit tricky to read from the documentation (at least for me). Rename the source dir to jni. Setting the right NDK Project Path. Executing ndk build in the right dir.


    Now let's hope everything works on the device...


    Thanks in advance again!
    Best,
    Bodo
Children
No data