Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Xilinx tools (Petalinux, Yocto) provide an option with the name FPGA Manager which if enabled builds the device tree overlay fragments automatically and copies the Bitstream and DTBO files into root file system. 

...

PetaLinux Flow

 Petalinux  PetaLinux setup and build:  PetalinuxPetaLinux

  1. Enable FPGA Manager in the top level Petalinux menuconfig 

...

  1. PetaLinux menuconfig options.
Code Block
themeMidnight
$ petalinux-config ---> FPGA Manager

(OR)

Edit file buildEdit <plnx-proj-root>/project-spec/meta-user/conf/plnxtool.conf 

Add below line 

petalinuxbsp.conf file and add FPGA Manager package to EXTRA_IMAGE_FEATURES variable.

Code Block
themeMidnight
EXTRA_IMAGE_FEATURES += " fpga-manager"


      2. Select FPGA Manager user 

Preview

      3. Select the Specify hw directory path, in the prompt provide HDF path

...

      4. Use petalinux-build command to build the required images# petalinux

Code Block
themeMidnight
$ petalinux-build

...

Once build is complete, binaries are available at images/linux directory            

...

Once Yocto environment is set 

  1. Edit confEdit <yocto-proj-root>/build/conf/local.conf add below lines of code
Code Block
themeMidnight
EXTRA_IMAGE_FEATURES += " fpga-manager"

...


EXTRA_HDF =

...

 "<PATH_TO_HDF_or_XSA>"

Note: 

  •   By default it will pack base hdf Bitstream and dtbo to the /lib/firmware/base in the rootfs
  •   Extra hdf path can contain multiple HDF's 

      2. Build the required images (run below command)# bitbake core

Code Block
themeMidnight
$ bitbake petalinux-image-

...

minimal

Once build is complete, binaries are available at ${DEPLOY_DIR_IMAGE} (${TMPDIR}/deploy/images/linux directory/${MACHINE}/) directory            

      3. Boot the hardware with newly built images

...