Versions Compared

Key

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

...

  • To Create SD Card with two partitions: Boot(FAT32+Bootable) and Root(EXT4) Refer this Link.

  • Copy boot content fromrdf0617-zcu106_vcu_hdmi_roi_2020_2/image/sd_card/boot to Boot partition in SD Card

  • Extract rootfs.ext4 from rdf0617-zcu106_vcu_hdmi_roi_2020_2/image/sd_card/rootto Root partition in SD Card using

  • Boot the board with Flashed SD Card

...

  • To Create SD Card with two partitions: Boot(FAT32+Bootable) and Root(EXT4) Refer this Link.

  • For Build Flow refer this steps and copy mentioned generated dpu build images bd.hwh BOOT.BIN boot.scr dpu.xclbin Image system.dtb into BOOT partition of the SD card and extract generated rootfs.ext4 into ROOT partition of SD Card

  • Copy the mentioned boot content config, vitis, autostart.sh, setup.sh from rdf0617-zcu106_vcu_hdmi_roi_2020_2/image/sd_card/boot/ directory to Boot partition in SD Card

  • Boot the board with Flashed SD Card

  • All the required Vitis AI packages are already available in rdf0617-zcu106_vcu_hdmi_roi_2020_2/image/sd_card/boot/vitis directory which are installed automatically during 1st time boot. Please wait till target setup complete and Vitis AI packages are installed.

...

  • Open a Linux terminal. Set the Linux as Bash mode.

    Code Block
    source <vitis install path>/Vitis/2020.2/settings64.sh
    source <xrt install path>/xilinx/xrt/setup.sh
  • The default setting of DPU is B4096 with RAM_USAGE_LOW, CHANNEL_AUGMENTATION_ENABLE, DWCV_ENABLE, POOL_AVG_ENABLE, RELU_LEAKYRELU_RELU6, Softmax. Read the DPU_TRD_HOME/prj/Vitis/dpu_conf.vh file to get the details of DPU. You can get all the configurations form PG338. Modify the DPU_TRD_HOME/prj/Vitis/dpu_conf.vh file can change the default settings.

    • Copy dpu_conf.vh file to enable the URAM for ZCU106/ZCU104 DPU Build, The DPU will replace the bram to the uram.

      Code Block
      cp TRD_HOME/dpu/dpu_conf.vh DPU_TRD_HOME/prj/Vitis/dpu_conf.vh
  • Build the hardware design

    Code Block
    cd $DPU_TRD_HOME/prj/Vitis
    export EDGE_COMMON_SW=<Path to Petalinux Project>/xilinx-vcu-roi-zcu106-v2020.2-final/images/linux/
    export SDX_PLATFORM=<Path to Vitis Workspace>/zcu106_dpu/export/zcu106_dpu/zcu106_dpu.xpfm
    make KERNEL=DPU DEVICE=zcu106_dpu
  • Generated SD card files are in DPU_TRD_HOME/prj/Vitis/binary_container_1/sd_card(SD card Format)

  • Copy generated dpu build images from DPU_TRD_HOME directory to TRD_HOME directory

    Code Block
    cd DPU_TRD_HOME/prj/Vitis/binary_container_1/sd_card
    cp bd.hwh BOOT.BIN boot.scr dpu.xclbin Image system.dtb TRD_HOME/image/sd_card/boot
    cp TRD_HOME/apu/vcu_petalinux_bsp/xilinx-vcu-roi-zcu106-v2020.2-final/images/linux/rootfs.ext4 TRD_HOME/image/sd_card/root

...