The steps below can be run inside a Docker container (e.g. the kas image) if
the Yocto host dependencies are not available on your system.
Steps¶
Initialise the Yocto source tree using
repoand the Xilinx manifest:BRANCH="rel-v2023.2" repo init -u https://github.com/Xilinx/yocto-manifests.git -b $BRANCH repo syncLoad the Yocto build environment, passing the build directory as argument:
. setupsdk buildAdd the
meta-pandalayer:git clone https://github.com/PandABlocks/meta-panda ../sources/meta-panda bitbake-layers add-layer ../sources/meta-pandaIn
conf/local.confset:MACHINE = "pandabox" # or e.g. "xu5 DISTRO = "panda-petalinux"Build the image:
bitbake panda-imageCollect the output files:
mkdir boot cp -Lf tmp/deploy/images/pandabox/fitImage-petalinux-initramfs-image-pandabox-pandabox \ boot/image.ub cp -f tmp/deploy/images/pandabox/{rootfs.squashfs,boot.bin,boot.scr,target-defs} boot/ zip boot-pandabox.zip boot/*
See How to build the PandA boot image for a description of each output file.