Vitis is a new FPGA development tool provided by Xilinx.As if you are creating software, you can now speed up the benefits of FPGAs.An introduction to Vitis can be found at the following homepage.
https://www.xilinx.com/products/design-tools/vitis.html
Creation of Wifi compatible Vitis platform for Ultra96V2Wifi compatible Vitis platform for Ultra96 has been created.
Xilinx announces Vitis software.
However, the popular Ultra96 boards do not have a Vitis platform and need to be created. Created Vitis platform for Ultra96V2.
How to create files required for the platformVitis 20199.2, PetaLinux2019.2 Please use it on the PC which has installed XRT. You also need to set up the tool environment.
Make a script by copying the script file of the code(ultra96v2_oob.sh).
Execute the script file.
source ultra96v2_oob.shIt takes about 2-3 hours to compile. After that, the necessary files for the Vitis platform are created.
Creating a Vitis platform for Ultra96 V2.The files required for platform creation are created in ultra96v2_oob / platform_repo.
Start Vitis. Create a workspace.
Select Create Platfrom to create a platform.
Decide on a platform name. This time, I chose Ultra96v2_oob.Click Next.
Create a new platform or select the platform folder you have created. This time, we will create from XSA, so select XSA. XSA files are created by export from Vivado.Click Next.
Select the XSA file you have already created. Select the script file that has created pltaform_repo / ultra96v2_oob / hw / ultra96v2_oob.xsa.
Select OS as Linux and Prosesse as psu \ cortexa53.
A note appears, but the items to be set later are negatively set. Click Finish.
Fill in the Linux items. The files required for configuration are contained in ultra96v2_oob / platform_repo.
After filling in the items and building, the platform is complete. The build starts when you click this icon.
I created and ran a HelloWorld kernel application on Vitis.Vitis can create applications that run programs using only the CPU, and accelerator applications that can be accelerated using the FPGA part.
From the Vitis menu, select File → New → Application Project.
Enter a project name appropriately. This time, Hello World. Click Next
It asks for sysroot, but this time is Next.
Try Templates. This time trys Hello World.
If you have not imported the Example yet, you can download it by importing "Vitis IDE Examples"
If you have not imported the Example yet, you can download it by importing "Vitis IDE Examples"
After that, the necessary files are created in the SDcard folder.
Prepare an SD card for Linux. For SD card for Linux, one SD card is divided into two partitions and formatted into FAT and EXT4 respectively.
It was done. The file made with Vitis is copied to the FAT area of the SD card. (Please change the folder name appropriately)
cp ./Hardware/sdcard/* /media/$USER/bootUnzip ultra96v2_obb/platfomr_repo / sdcard / rootfs.tar.gz and put it in the EXT folder of the SD card. (Please change the folder name appropriately)
sudo tar xzvf ./ultra96_oob/platform_repo/sdcard/rootfs.tar.gz -C /media/$USER/rootfsPerform a real machine test with ultra96. Connect USB-UART.
Once started, test the acceleration application.
It can be executed with the following command on Ultra96v2.
cd /mnt
export XILINX_XRT=/usr
./Hello_world.exe vadd.xclbinIf the operation is successful, TEST PASS is displayed.
You can now check the operation of the acceleration.
Connect to Wifi.Turn on the Ultra96. PCMake Wifi settings on the side. Look for Ultra96v2-SSID and connect.
After that, you can connect to the Ultra96 screen by accessing 192.168.2.1.
You can then connect to Ultra96 by accessing http://192.168.2.1 with a web browser.
In this state, it becomes peer-to-peer, but connection with Ultra96 is possible. SSH and FTP can also be connected.
Configure Wifi settings. If you want to connect to the outside, I think this is better. If it is set, basically it will be reflected immediately.
Sometimes it doesn't work, but when Ultra96 restarts, it connects automatically










Comments