Setting Up Your Target
ARM DUI 0482K
Copyright © 2010-2012 ARM. All rights reserved.
2-2
ID120712
Non-Confidential
2.1
Setting up an ARM Linux target
These instructions are specific to targets running ARM Linux.
Note
You can locate all of the files provided by DS-5 by selecting
Help
→
ARM Extras...
from the
main menu.
2.1.1
Prerequisites
You must have the following tools on your host to build the Linux kernel and the gator driver:
•
Linux kernel source code for the target platform. Streamline supports only Linux kernel
versions 2.6.32 and above.
•
Either the cross compiler for building the Linux kernel or the ARM Linux GCC that
comes with DS-5.
Note
Streamline only supports hardware targets, not
Real Time System Models
(RTSMs). Streamline
can run on an RTSM, but an RTSM does not provide the cycle and timing information to make
the samples-generated data in the reports meaningful.
2.1.2
Load the gator daemon
The gator daemon and driver collect target metrics and then send them to your host machine.
To enable profiling, you must build and load the gator daemon on your target. Follow these steps
to build the gator daemon from the source archive:
1.
Move to the directory that contains the gator daemon source:
cd .../gator/daemon-src
2.
Enter the following commands to unzip the archive:
tar -xzf gator-daemon.tar.gz
Note
Make sure to untar this file in a directory in which you have write privileges.
3.
Change directories to the newly created
gator-daemon
:
cd gator-daemon
4.
Issue the make command to build
gatord
:
make
5.
Move the newly created
gatord
to your host.
Note
You must build the gator daemon on your g++-enabled target or a Linux host. On a Linaro
Ubuntu target you must enter the following command to install g++:
apt-get install g++