For Edge - 3.0 English

Vitis AI User Guide (UG1414)

Document ID
Release Date
3.0 English

Use the following steps to set up the host for Edge:

  1. Install the cross-compilation system environment.
    cd Vitis-AI/board_setup/mpsoc
    Note: The ~/petalinux_sdk_2022.2 path is recommended for the installation. Regardless of the path you choose for the installation, make sure the path has read-write permissions. In this section, it is installed in ~/petalinux_sdk_2022.2
  2. When the installation is complete, follow the prompts and enter the following command.
    source ~/petalinux_sdk_2022.2/environment-setup-cortexa72-cortexa53-xilinx-linux
    Note: If you close the current terminal, you need to re-execute the above instructions in the new terminal to set up the environment.
  3. Cross compile the sample taking resnet50 as an example.
    cd Vitis-AI/examples/vai_runtime/resnet50
    bash –x

    If the compilation process does not report any error and the executable file resnet50 is generated, then the host environment is installed correctly.