AVED Updating Design PDI in Flash¶
The ami_tool cfgmem_info command will list the available partitions which have been defined in the FPT.
sudo ami_tool cfgmem_info -d 21:00.0
FPT
---------------------
Version | 1
Header Size | 128
Entry Size | 128
Entries | 2
Partition | Type | Address | Size
------------------------------------------------------
0 | PDI_BOOT | 0x00008000 | 0x07e00000
1 | PDI_BOOT | 0x07e08000 | 0x07e00000
The ami_tool cfgmem_program command can then be used to write a design pdi to a PDI_BOOT partition.
e.g.
sudo ami_tool cfgmem_program -d 21:00.0 -p 0 -i /opt/amd/aved/amd_v80_gen5x8_23.2_exdes_1_xbtest_stress/design.pdi
----------------------------------------------
Device | 21:00.0
----------------------------------------------
Current Configuration
----------------------------------------------
UUID | a962c3cba36a8630fe1df5e23e8d7065
----------------------------------------------
Incoming Configuration
----------------------------------------------
UUID | 8ab3e278483b699260b55e2e1a966559
Path | /opt/amd/aved/amd_v80_gen5x8_23.2_exdes_1_xbtest_stress/design.pdi
Partition | 0
----------------------------------------------
Are you sure you wish to proceed? [Y/n]: Y
Updating base flash image...
[####################################################################################################] 100% -
Image programming complete.
Will do a hot reset to boot into partition 0. This may take a minute...
OK. Image has been programmed successfully.
***********************************************
Hot reset has been performed into partition 0.
***********************************************
Note: This command takes > 10 mins to complete when programming the amd_v80_gen5x8_23.2_exdes_1_xbtest_stress/design.pdi file to flash. Once the flash programming starts, as indicated by the progress bar percentage, the flash may be unbootable until AMI reports “Image has been programmed successfully.”
Unless the -q option was specified, AMI will automatically instruct a boot occur from the newly updated partition upon the completion of the the cfgmem_program command.
Subsequent boots from any of the available PDI_BOOT partitions can be performed using the ami_tool device_boot command.
sudo ami_tool device_boot -d 21:00.0 -p 0
When using this approach it is important to make sure that the version of AMI is compatible with the version of AMC which is running on the card (compatibility is indicated by having the same Major & Minor version numbers in the AMI/AMC Major.Minor.Patch version number format.)
Further details on how to use the AMI tool to update the design PDI can be found here AVED Management Interface userguide (ami_tool)
Page Revision: v. 5