The flash
command has three sub-commands
which are described in the following table.
The xbmgmt flash --scan
command will
report if a platform base is loaded. You will need to use xbmgmt
partition --scan
to see if the shell is loaded. Refer to Alveo Platform Loading Overview for more
information on the platform base and shell.
Sub-command | Description |
---|---|
--scan
|
Query the card's flashable partition running on FPGA and installed on the host system |
--update
|
Flash a target platform (flashable partition) to the card |
--factory_reset
|
Reset the card to factory condition |
Each of the sub-commands are detailed below.
--scan
The --scan
sub-command returns details
of the flashable partition installed on each card along with the flashable partitions
installed on the host system. In addition, it also returns additional information including
SC version, BDF, Serial number, and MAC addresses.
It has the following command line format.
xbmgmt flash --scan [--verbose | --json]
Option | Description | Required |
---|---|---|
--verbose
|
Returns verbose output which includes additional fields. The |
N |
--json
|
Returns all fields given with --verbose option in JSON format.The |
N |
Using the flash --scan
sub-command
without any options, as shown below, will return the fields listed in the following
table.
xbmgmt flash --scan
Field | Description |
---|---|
Card | Provides the enumerated card Bus Device Function (BDF) for the
card in the following format: [Bus : Device : Function] Tip: The
xbmgmt command
returns a BDF which includes the management function on the card. The xbutil scan command returns a BDF which includes the
user function on the card. |
Card type | Xilinx card type |
Flash type | Returns the flash type physically installed on the card. The
flash type can be:
|
Flashable partition running on FPGA | Returns details on the flashable partition installed on the
card:
Important: Flashable partition running on FPGA's ID must
match the flashable partitions installed in system or the stack will not operate
correctly.
|
Flashable partitions installed in system | Returns details on the flashable partition installed on the
host system:
|
xbmgmt flash
--scan
for a system with two different cards
installed:Card [0000:a6:00.0]
Card type: u280
Flash type: SPI
Flashable partition running on FPGA:
xilinx_u280_xdma_201920_1,[ID=0x5da8da6e],[SC=4.3.4]
Flashable partitions installed in system:
xilinx_u280_xdma_201920_1,[ID=0x5da8da6e],[SC=4.3.4]
Card [0000:73:00.0]
Card type: u250
Flash type: SPI
Flashable partition running on FPGA:
xilinx_u250_xdma_201830_2,[ID=0x5d14fbe6],[SC=4.3.7]
Flashable partitions installed in system:
xilinx_u250_xdma_201830_2,[ID=0x5d14fbe6],[SC=4.3.7]
If a card has been installed for the first time and not previously been flashed, or if the card has been factory reset the flashable partition running on FPGA will indicate this with the word GOLDEN within its name as shown in --factory_reset.
Using the --verbose
option, as shown in
the following example, returns additional fields specified in the following table.
xbmgmt flash --scan --verbose
Field | Description |
---|---|
Card Name | Xilinx provided card name |
Card serial number (S/N) | Unique card serial number |
Configuration mode | Returns the configuration mode in which FPGA boots up from a
cold reset. The configuration modes can be:
|
Fan presence | Represents the presence of a fan on the card. A – Active cooling. Fan is present on card. P – Passive cooling. Fan is not present on the card and must be cooled by host server. |
Max power level | Maximum available card power (Watts) supplied from PCIe and connected AUX power port. Not all cards have an AUX power port. |
MAC address | Returns a list of Xilinx
assigned MAC addresses for the card. You are free to use Xilinx assigned MAC address or provide your own. An address of FF:FF:FF:FF:FF:FF implies this MAC slot has not been assigned an address. |
An example of the xbmgmt flash --scan
--verbose
output for a system with one card is given below:
Card [0000:a6:00.0]
Card type: u280
Flash type: SPI
Flashable partition running on FPGA:
xilinx_u280_xdma_201920_1,[ID=0x5da8da6e],[SC=4.3.4]
Flashable partitions installed in system:
xilinx_u280_xdma_201920_1,[ID=0x5da8da6e],[SC=4.3.4]
Card name ALVEO U280 PQ
Card S/N: 21760394R01L
Config mode: 7
Fan presence: A
Max power level: 225W
MAC address0: 00:0A:35:06:00:0A
MAC address1: 00:0A:35:06:00:0B
MAC address2: FF:FF:FF:FF:FF:FF
MAC address3: FF:FF:FF:FF:FF:FF
Using the --json
sub-option returns
similar information as xbmgmt flash --scan
, but in JSON
format. The following shows an example of the generated JSON output for a system with one
card.
{
"card0": {
"shellpackage": "xilinx_u280_xdma_201920_1,[ID=0x5da8da6e],[SC=4.3.4]; ",
"name": "ALVEO U280 PQ",
"serial": "21760394R01L",
"config_mode": "7",
"fan_presence": "A",
"max_power": "225W",
"mac0": "00:0A:35:06:00:0A",
"mac1": "00:0A:35:06:00:0B",
"mac2": "FF:FF:FF:FF:FF:FF",
"mac3": "FF:FF:FF:FF:FF:FF"
}
}
--update
Use the flash --update
sub-command to
change the flashable partition (target platform) on the card. It does this by flashing the
specified target platform and associated satellite controller to the configurable ROM on the
card. It has the following command line format:
xbmgmt flash --update [--shell <target_platform_name>
[--id <target_platform_id>]] [--card <bdf] [–force]
The following table lists the available options.
Option | Description | Required |
---|---|---|
--shell
<target_platform_name>
|
Name of the target platform (flashable partition) to be
flashed on the card. The target platform must be installed on the host system prior
to specifying it via the target platform installation package. See the
Alveo™
card installation guide for details on
downloading and installing the deployment target platform. Use the xbmgmt flash --scan to list available target platforms
installed on the host system.
If neither the For instance, if your system has U200 and U250 cards installed and both U200 and U250 target platforms exist on the host system, then both cards will be flashed with their respective target platforms. If a card's target platform does not exist on the system, then the card will not be flashed. If the
If the
If both the If the flashable
partition on the card matches the flashable partition on the system, a similar
message as shown below will be displayed and the card will not be updated.
However, you can force the card to be flashed by using the
If the specified
target_platform_name is not installed on the host system, the card
will not be updated and you will receive the following
message:
This Use the If the |
N |
--card <bdf>
|
Specifies the accelerator card to be updated as identified by
its Bus:Device:Function (BDF) tag. Use the xbmgmt flash
--scan to obtain the card BDF.If If neither the
If the For instance, if your system has two U200 cards
installed, then both cards will be flashed with the specified If the If both the If the BDF is not found,
you will receive the following message where <bdf> is the BDF value entered.
Use the
|
N |
--force
|
The force option means "yes" to any prompt from For instance, when flashing the card through
The |
N |
--factory_reset
Use the flash --factory_reset
sub-command to restore the flashable partition running on the FPGA to the original golden
image. This command will not change the satellite controller version. It has the following
command line format:
xbmgmt flash --factory_reset [--card <bdf>]
There is only one option and is given in the following table.
Option | Description | Required |
---|---|---|
--card <bdf>
|
Specifies the accelerator card to be factory reset as
identified by its Bus:Device:Function (BDF) tag. Use the If |
N |
After running the xbmgmt flash
--factory_reset
command, it is necessary to cold-reboot the system to restore the
card to the original golden image.
After a factory reset and cold rebooting, use xbmgmt flash --scan
to confirm the flashable partition running on FPGA has been
reverted. The partition will include the word GOLDEN within its name as shown below:
Card [0000:a6:00.0]
Card type: u280
Flash type: SPI
Flashable partition running on FPGA:
xilinx_u280_GOLDEN_8,[SC=4.3]
Flashable partitions installed in system:
xilinx_u280_xdma_201920_1,[ID=0x5da8da6e],[SC=4.3.4]