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 22nd May 2013 at http://forums.arm.com


    To use Streamline you just need to build something and actually there isn't much 'getting-into-linux' to be done. A spare machine with, say, an Ubuntu install, and a few build commands are all that is required. The Linux build system is excellent.


    Got to a point now, where a gator.ko should have been created, but it isn't there.

    I'm working with an Ubuntu here (Ubuntu 10.04.4 LTS)

    What I did:
    * loaded the GT-I9100_JB_Opensource.zip from http://opensource.samsung.com/ which should be the right kernel for the S2
    * use a prebuilt toolchain with arm-eabi-4.4.3
    * did Step 1 to 7 of this documentation: http://infocenter.ar...2176300479.html
      -> used the arm-eabi-4.4.3 for step 2
      -> in step 5 (menuconfig), I enabled all the options as described in the README_Streamline.txt of the gator-driver, except "Trace process context switches and events" which wasn't available but according to the README this should be fine

    -> fine so far. The make is running through, zImage and uImage are created.

    Now to the gator module:
    * followed the steps in README_Streamline.txt that comes with the gator/daemon source
    * had to modify the make command to have M=$pwd and not M='pwd' because this didn't work
    * the final make was:
    $ make -C /home/fakt/dev/GT-I9000/build/ M=$pwd ARCH=arm CROSS_COMPILE=/home/fakt/dev/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- CONFIG_CODA_FS=n CONFIG_DRM_RADEON=n CONFIG_TOUCHSCREEN_EETI=n modules

    * this caused me nearly a day of work to get through ... all kinds of errors appeared (as you may see in the make call that features some CONFIG_ settings for some of the errors) .. I had to modify code in scsi drivers (wondering if they are needed anyways..), bugs with non defined variables and all such things...

    * finally the make was over with those last lines:
      ...
      MKDIR   firmware/yam
      IHEX firmware/yam/1200.bin
      IHEX firmware/yam/9600.bin
    make: Leaving directory `/home/fakt/dev/GT-I9000/build'

    * a system wide search for gator.ko brought up no results..

    I'm pretty sure, I did something wrong here since I'm totally new to all this Kernel-Compiling.
    Can you help me to bring this to an positive end?

    Thanks in advance,
    Bodo
Reply
  • Note: This was originally posted on 22nd May 2013 at http://forums.arm.com


    To use Streamline you just need to build something and actually there isn't much 'getting-into-linux' to be done. A spare machine with, say, an Ubuntu install, and a few build commands are all that is required. The Linux build system is excellent.


    Got to a point now, where a gator.ko should have been created, but it isn't there.

    I'm working with an Ubuntu here (Ubuntu 10.04.4 LTS)

    What I did:
    * loaded the GT-I9100_JB_Opensource.zip from http://opensource.samsung.com/ which should be the right kernel for the S2
    * use a prebuilt toolchain with arm-eabi-4.4.3
    * did Step 1 to 7 of this documentation: http://infocenter.ar...2176300479.html
      -> used the arm-eabi-4.4.3 for step 2
      -> in step 5 (menuconfig), I enabled all the options as described in the README_Streamline.txt of the gator-driver, except "Trace process context switches and events" which wasn't available but according to the README this should be fine

    -> fine so far. The make is running through, zImage and uImage are created.

    Now to the gator module:
    * followed the steps in README_Streamline.txt that comes with the gator/daemon source
    * had to modify the make command to have M=$pwd and not M='pwd' because this didn't work
    * the final make was:
    $ make -C /home/fakt/dev/GT-I9000/build/ M=$pwd ARCH=arm CROSS_COMPILE=/home/fakt/dev/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- CONFIG_CODA_FS=n CONFIG_DRM_RADEON=n CONFIG_TOUCHSCREEN_EETI=n modules

    * this caused me nearly a day of work to get through ... all kinds of errors appeared (as you may see in the make call that features some CONFIG_ settings for some of the errors) .. I had to modify code in scsi drivers (wondering if they are needed anyways..), bugs with non defined variables and all such things...

    * finally the make was over with those last lines:
      ...
      MKDIR   firmware/yam
      IHEX firmware/yam/1200.bin
      IHEX firmware/yam/9600.bin
    make: Leaving directory `/home/fakt/dev/GT-I9000/build'

    * a system wide search for gator.ko brought up no results..

    I'm pretty sure, I did something wrong here since I'm totally new to all this Kernel-Compiling.
    Can you help me to bring this to an positive end?

    Thanks in advance,
    Bodo
Children
No data