Setting Up Your Target
ARM DUI 0482K
Copyright © 2010-2012 ARM. All rights reserved.
2-3
ID120712
Non-Confidential
It is not possible to build the gator daemon on a Windows host.
2.1.3
Prepare and build your kernel
To prepare your kernel for use with Streamline, download one of the supported versions of the
Linux kernel, configure it to your target platform, customize it, and then build it. For instructions
on how to do this and the required kernel code, visit http://www.kernel.org
Add the following steps when compiling a kernel for use with Streamline:
•
Enter the following command in your shell to export the cross compiler:
export CROSS_COMPILE=${CROSS_TOOLS}/bin/arm-linux-gnueabihf-
•
To specify that this build is for an ARM architecture, enter the following command in your
shell:
export ARCH=arm
•
Enter the following to build the configuration file specific to your platform:
make
platform_defconfig
Replace
platform_defconfig
in the command with one of the configuration files located in
the
your_kernel
/arch/arm/configs
directory appropriate for your platform or with a
configuration file provided by a vendor.
•
To configure menus, enter the following in your shell:
make menuconfig
You must enable certain kernel configuration options to run Streamline. The location of
some of these options depends on your kernel version:
General Setup
Enable the
Profiling Support
option,
CONFIG_PROFILING
and the
Kernel
performance event and counters option
,
CONFIG_PERF_EVENTS
.
Kernel Hacking
Enable the
Tracers
option,
CONFIG_FTRACE
, and the
Tracers
→
Trace process
context switches and events
option,
CONFIG_ENABLE_DEFAULT_TRACERS
. You
must add the following options,
To populate the Mutex CPU Wait chart you must enable the
Kernel
hacking
→
Mutex debugging: basic checks
option,
CONFIG_DEBUG_MUTEXES
,
and.the
Kernel hacking
→
Compile the kernel with debug info
option,
CONFIG_DEBUG_KERNEL_INFO
. For more information on CPU wait time data and
charts in Streamline, see
Kernel Features
Enable the
High Resolution Timer Support
option,
CONFIG_HIGH_RES_TIMERS
and the
Enable hardware performance counter support
option,
CONFIG_HW_PERF_EVENTS
. Enable the
Use local timer interrupts
option,
CONFIG_LOCAL_TIMERS
, if you are using a
Symmetric MultiProcessing
(SMP)
target.
CPU Power Management
To enable the CPU Freq Timeline view chart,
gator
requires kernel version
2.6.38 or greater and that you define the
CPU Frequency scaling
→
CPU
Frequency scaling
option,
CONFIG_CPU_FREQ
.