Steps to Access the BitBake Utility - 2023.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2023-10-18
Version
2023.2 English
To access the BitBake utility:
  1. Source the PetaLinux tools script:
    source /opt/pkg/petalinux/settings.sh
  2. Run petalinux-create command to create project
    petalinux-create -t project -s <PATH_TO_PETALINUX_PROJECT_BSP>
  3. Run petalinux-config or petalinux-config --silentconfig at least once after creating the project to setup the required environment.
  4. Run unset LD_LIBRARY_PATH by using below command
    unset LD_LIBRARY_PATH
  5. Source the Yocto e-SDK:
    source <plnx-proj-root>/components/yocto/environment-setup-cortexa72-cortexa53-xilinx-linux
  6. Source the environment setup script to be redirected to the build directory:
    source <plnx-proj-root>/components/yocto/layers/poky/oe-init-build-env

    Stay in the build directory to run BitBake

  7. Export PROOT:
    Note: PROOT PATH should not end with "/" .
    export PROOT="<path of your petalinux project directory>"
  8. Parse the PetaLinux variable to recipes:
    export BB_ENV_PASSTHROUGH_ADDITIONS="$BB_ENV_PASSTHROUGH_ADDITIONS PETALINUX PROOT"
  9. 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