Build and Install Sampling Drivers for Android* Targets
On some versions of Android systems, including most of the Intel® supplied reference builds for SDVs, the
required drivers are pre-installed in
. If the drivers are not pre-installed in any of these directories, you need to build them manually from the command line. Optionally, you can get the drivers integrated into the Android build so that they are built and installed when the operating system is built.
Android requires signed drivers. Every time the Android kernel is built, a random private/public key is generated. Drivers must be signed with the random private key to be loaded. The drivers (
) must be signed with the same key and be compiled against the same kernel headers/sources as what is installed on the Android target system.
has options for building a new driver on the Linux host system and installing it on a target Android system. This is not the default and will only work if you provide the proper kernel headers/sources and a signing key. For example, the
option for building PMU drivers and
option for providing the configured kernel headers/sources tree path.
To build the sampling drivers on the host Linux system, enter: