• 2021.2
  • 10/26/2021
  • Public

Step 2: Prepare a Yocto Project*-Based Image

In this step, you will build a Yocto Project*-based image containing VTune™ Profiler drivers.
To build this image, your system will take anywhere from one half-hour (assuming your system is a large server) to several hours (assuming your system is a typical laptop).
  1. Finish all steps in the appropriate board support package (BSP) Get Started Guide up to
    Build the Yocto Project-based Image
    . Make sure to complete all steps that are marked as required for Intel® TCC Tools.
  2. Set these environment variables with the location of the BSP:
    export BSP_FOLDER=<BSP_directory> export VTUNE_PROFILER_2021_DIR=/opt/intel/oneapi/vtune/<vtune_version>/ export VTUNE_TARGET_PACKAGE_DIR=${BSP_FOLDER}/proprietary
  3. Copy the VTune™ layer to the proprietary folder:
    tar -xf ${VTUNE_PROFILER_2021_DIR}/target/linux/vtune_profiler_target_x86_64.tgz -C ${BSP_FOLDER}/proprietary/
  4. Add the
    to the BBLAYERS variable in bblayers.conf:
    line_number=$(grep -n '"' ${BSP_FOLDER}/build/conf/bblayers.conf | sed -n -e '/BBLAYERS /,$p' | awk '/"/{i++}i==2' | cut -f 1 -d ':') sed -i ''"$line_number"'i \ \ ${TOPDIR}/../proprietary/vtune_profiler_target/sepdk/vtune-layer/ \\ ' ${BSP_FOLDER}/build/conf/bblayers.conf
  5. Add the VTune™ driver to install:
    echo 'IMAGE_INSTALL_append = " intel-vtune-sep-driver"' >> ${BSP_FOLDER}/build/conf/local.conf
  6. Add the VTune™ driver to autoload:
    echo 'KERNEL_MODULE_AUTOLOAD += " sep5"' >> ${BSP_FOLDER}/build/conf/local.conf
  7. Go back to the BSP Get Started Guide and finish building and flashing the image.

Product and Performance Information


Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.