Visible to Intel only — GUID: GUID-727A80BF-D588-4F96-8CE4-6B8CADEA7813
Preparing a Target Android* System for Energy Analysis
When collecting energy data on a target Android device, make sure to:
Build the Device Drivers
Complete the following steps if the Intel® SoC Watch device drivers are not already installed on the OS image:
Extract the system_studio_target.tgz package to the host system used to build the target system's Android kernel.
By default, the package can be found in the following location:
On a Windows host: C:\Program Files (x86)\IntelSWTools\system_studio_<version>\Targets\system_studio_target.tgz
On a Linux host: /opt/intel/system_studio_<version>/targets/system_studio_target.tgz
- Navigate to the following location: <extract_dir>/system_studio_target/socwatch_android_<version>
Run the build driver script with the following command:
For target systems with an Intel Atom® processor:
> sh ./build-drivers.sh -k <kernel-build-dir> -s <full-path-to-sign-file>
For target systems with an Intel® Core™ processor:
> sh ./build-drivers.sh -k <kernel-build-dir> -n -s <full-path-to-sign-file>
Where the <kernel_build_dir> is the local Android lib/modules directory produced while building the Android kernel. The -k option is not required if the DEFAULT_KERNEL_BUILD_DIR is properly set in the build_driver script.
Install the Intel® SoC Watch Collector
Complete the following steps to install the Intel SoC Watch collector:
- Connect the host system to the target system via adb.
- Navigate to the following location on the host system: <exract_dir>/system_studio_target/socwatch_android_<version>
Run the following file to install the Intel SoC Watch executables in the /data/socwatch directory on the target Android system.
On Linux: socwatch_android_install.sh
On Windows: socwatch_android_install.bat
Load the Device Drivers
Complete the following steps to load the device drivers on the target Android system:
- Connect the host system to the target system via adb.
Run the following adb commands to start a shell with root privileges:
> adb root
> adb shell
Navigate to the /lib/modules directory, which contains the drivers you installed.
Load the latest version of the socperf driver using the following command:
> insmod socperf<version>.koLoad the socwatch driver using the following command, replacing the 2_x with the appropriate Intel SoC Watch version:
insmod socwatch2_x.koRun the following command to confirm that the drivers loaded successfully:
> lsmod