Steps to Access the BitBake Utility - 2020.2 English

PetaLinux Tools Documentation Reference Guide (UG1144)

Document ID
UG1144
Release Date
2020-11-24
Version
2020.2 English
  1. Run petalinux-config or petalinux-config --silentconfig at least once after creating the project, so that the required environment is setup.
  2. Source the PetaLinux tools script:
    source /opt/pkg/petalinux/settings.sh
  3. Source the Yocto e-SDK:
    source <plnx-proj-root>/components/yocto/environment-setup-aarch64-xilinx-linux
  4. Source the environment setup script to be redirected to the build directory:
    source <plnx-proj-root>/components/yocto/layers/core/oe-init-build-env

    Stay in the build directory to run BitBake.

  5. Export XSCT:
    export PATH=/opt/pkg/petalinux/tools/xsct/bin:$PATH
  6. Parse the PetaLinux variable to recipes:
    export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE PETALINUX"
  7. To test if the BitBake is available, run:
    bitbake strace

    The generated images are placed in the deploy directory. You have to copy the generated images into <plnx-proj-root>/images/linux directory to work with the other commands.