Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Manually build the PandA image

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

  1. Initialise the Yocto source tree using repo and the Xilinx manifest:

    BRANCH="rel-v2023.2"
    repo init -u https://github.com/Xilinx/yocto-manifests.git -b $BRANCH
    repo sync
  2. Load the Yocto build environment, passing the build directory as argument:

    . setupsdk build
  3. Add the meta-panda layer:

    git clone https://github.com/PandABlocks/meta-panda ../sources/meta-panda
    bitbake-layers add-layer ../sources/meta-panda
  4. In conf/local.conf set:

    MACHINE = "pandabox"   # or e.g. "xu5
    DISTRO  = "panda-petalinux"
  5. Build the image:

    bitbake panda-image
  6. Collect 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.