AVED Updating FPT Image in Flash¶
After running the aved_install.sh script, the files required to update the OSPI flash image can be found in the /opt/amd/aved/<VBNV>*/flash_setup/ directory.
An update of the FPT table requires that the fpt_setup_<VBNV>_<Release>.pdi be written to flash via JTAG using the AMD Vivado™ hardware manager using the following steps.
1) Stop the AMI application using the following command.
Note: Before updating the FPGA image over JTAG, it is important to stop any communication between AMI (on the Host) and AMC (on the Card).
$ sudo rmmod ami
Only after stopping AMI is it safe to change the device image over JTAG.
2) Load Vivado
Select Open Hardware Manager
Note: V80 support was introduced to HW manager in 2023.2
3) Select Open Target to connect to the AMD Alveo™ card you want to target.
4) A list of available devices will be displayed in the hardware window. Right click on the device you wish to target (e.g. xcv80_1 when using the V80 card).
Select Add Configuration Memory Device
5) Select the appropriate Configuration Memory Part. Reference the following table to determine the applicable Memory part for the target Alveo card.
Alveo Card | Configuration Memory Part | Type | Density (Mb) |
---|---|---|---|
V80/V80P | cfgmem-ospi-x8-single | ospi | 2048 |
Select OK when asked if you want to program the configuration memory device now.
6) Select the the fpt_setup pdi from the /opt/amd/aved/<VBNV>*/flash_setup/ directory as the configuration PDI and select the the initialization pdi from the same /opt/amd/aved/<VBNV>*/flash_setup/ directory as the Initialization PDI.
It is recommended that the Entire Configuration Memory Device option is selected from the Program Operations → Address Range Drop down menu, so that the flash memory is in a known state after FPT setup PDI update.
Upon clicking OK, the initialization PDI is downloaded to the FPGA and used to transfer the Configuration PDI into the OSPI Flash Memory.
7) When Finished, Hardware Manager will report that Flash Programming has completed successfully.
8) It is now necessary to perform a cold restart of the Host server in order to boot the new design from flash.
9) When the restart has completed, verification that the update has completed correctly can be done by running the ami_tool overview command.
The updated card should display a UUID which matches the logic_uuid value in the /opt/amd/aved/<VBNV>*/version.json file.
ami_tool overview
AMI
-------------------------------------------------------------
Version | 1.8.0 (0)
Branch
Hash | e223bc725a7fe2282dcacaa6f7befdd152dbb714
Hash Date | Thu Nov 30 12:12:38 2023 +0000
Driver Version | 1.8.0 (0)
BDF | Device | UUID | AMC | State
-----------------------------------------------------------------------------------------
21:00.0 | Alveo V80 ES3 | f92f252f3a8a1fbd62569c4a4b46b141 | 1.8.0 (0) | READY
cat /opt/amd/aved/amd_v80_gen5x8_23.2_exdes_1_xbtest_stress/version.json {
"design": {
"name": "amd_v80_gen5x8_23.2_exdes_1",
"release": "20231205",
"logic_uuid": "f92f252f3a8a1fbd62569c4a4b46b141",
"application": "xbtest_stress"
},
Page Revision: v. 14