AVED Updating Design PDI in Flash


  1. The ami_tool cfgmem_info command will list the available partitions which have been defined in the FPT.

# Usage: ami_tool cfgmem_info -d <bdf> -t <type> [options...]
$ sudo ami_tool cfgmem_info -d 21:00.0 -t primary

Primary FPT:

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

  1. The ami_tool cfgmem_program command can then be used to write a design pdi to a PDI_BOOT partition.

e.g.

# usage: sudo ami_tool cfgmem_program -d <bdf> -t <type> -i <pdi path> -p <flash partition number>

$ sudo ami_tool cfgmem_program -d 21:00.0 -t primary -i /opt/amd/aved/amd_v80_gen5x8_23.2_exdes_2_xbtest_stress/design.pdi -p 0

----------------------------------------------
Device | 21:00.0
----------------------------------------------
Current Configuration
----------------------------------------------
UUID   | 4b85bf2b90fbe3b9ed912f24e2c3ede6
----------------------------------------------
Incoming Configuration
----------------------------------------------
UUID      | 25506205d5ed38b930db62470bc7cce3
Path      | /opt/amd/aved/amd_v80_gen5x8_23.2_exdes_2_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_2_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.”


  1. 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. 8