Tutorial
Step 2: Prepare a Yocto Project*-Based Image
In this step, you will build a Yocto Project*-based image containing VTune™ Profiler drivers.
Intel® Xeon® W-11000E Series Processors PV release
11th Generation Intel® Core™ Processors MR2 release
Intel Atom® x6000E Series Processors PR1 release
Driverless mode will be automatically used by VTune™ Profiler to collect data for analysis.
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.
Set these environment variables with the location of the BSP:
export BSP_FOLDER=<BSP_directory> export VTUNE_PROFILER_DIR=/opt/intel/oneapi/vtune/<vtune_version>/ export VTUNE_TARGET_PACKAGE_DIR=${BSP_FOLDER}/proprietary
Copy the VTune™ Profiler layer to the proprietary folder:
tar -xf ${VTUNE_PROFILER_DIR}/target/linux/vtune_profiler_target_x86_64.tgz -C ${BSP_FOLDER}/proprietary/
Add the vtune-layer 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
Add the VTune™ Profiler driver to install:
echo 'IMAGE_INSTALL_append = " intel-vtune-sep-driver"' >> ${BSP_FOLDER}/build/conf/local.conf
Add the VTune™ Profiler driver to autoload:
echo 'KERNEL_MODULE_AUTOLOAD += " sep5"' >> ${BSP_FOLDER}/build/conf/local.conf
Go back to the BSP Get Started Guide and finish building and flashing the image.