To access the BitBake
utility:
- Source the PetaLinux tools
script:
source /opt/pkg/petalinux/settings.sh
- Run
petalinux-create
command to create projectpetalinux-create project -s <PATH_TO_PETALINUX_PROJECT_BSP>
- Run
petalinux-config
orpetalinux-config --silentconfig
at least once after creating the project to setup the required environment. - Run unset LD_LIBRARY_PATH by using below
command
unset LD_LIBRARY_PATH
- Source the Yocto e-SDK:
source <plnx-proj-root>/components/yocto/environment-setup-cortexa72-cortexa53-xilinx-linux
- 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
- Export PROOT:Note: PROOT PATH should not end with "/".
export PROOT="<path of your petalinux project directory>"
- Parse the PetaLinux variable to recipes:
export BB_ENV_PASSTHROUGH_ADDITIONS="$BB_ENV_PASSTHROUGH_ADDITIONS PETALINUX PROOT"
- 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