- Run
petalinux-configorpetalinux-config --silentconfigat least once after creating the project, so that the required environment is setup. - Source the PetaLinux tools
script:
source /opt/pkg/petalinux/settings.sh - Source the Yocto e-SDK:
source <plnx-proj-root>/components/yocto/environment-setup-aarch64-xilinx-linux - Source the environment setup script to be redirected to the
build directory:
source <plnx-proj-root>/components/yocto/layers/core/oe-init-build-envStay in the build directory to run BitBake.
- Export XSCT:
export PATH=/opt/pkg/petalinux/tools/xsct/bin:$PATH - Parse the PetaLinux variable to recipes:
export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE PETALINUX" - To test if the BitBake is available, run:
bitbake straceThe 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.