Use the following steps to set up the host for Edge:
- Install the cross-compilation system
cd Vitis-AI/setup/mpsoc ./host_cross_compiler_setup.shNote: The ~/petalinux_sdk_2022.1 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.1
- When the installation is complete, follow the prompts and enter the following
source ~/petalinux_sdk_2022.1/environment-setup-cortexa72-cortexa53-xilinx-linuxNote: 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
cd Vitis-AI/examples/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.