Use the following steps to set up the host for Edge:
- Install the cross-compilation system
environment.
cd Vitis-AI/setup/mpsoc/VART ./host_cross_compiler_setup.sh
Note: The ~/petalinux_sdk_2021.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_2021.2 - When the installation is complete, follow the prompts and enter the following
command.
source ~/petalinux_sdk_2021.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. - Cross compile the sample taking resnet50 as an
example.
cd Vitis-AI/demo/VART/resnet50 bash –x build.sh
If the compilation process does not report any error and the executable file resnet50 is generated, then the host environment is installed correctly.