Utility Migration Guide¶
This document maps the legacy xbutil
/xbmgmt
commands to the new xbutil
/xbmgmt
commands. It lists out the new xbutil
/xbmgmt
calls that replace the existing calls. A few points:
The new utilities are complete redesign and architecture, hence there may not be exact 1-to-1 mapping.
The help menus (
--help
) of these new utilities have also been improved and are highly descriptive with regards to both the commands and options. Please refer to them as needed.The new command opions have both short and long format, for example
-d
or--device
. In the table below, only the longer option format is used.
You may refer the documentation of the new tools in the following links xbutil and xbmgmt .
xbutil¶
Subcommand Legacy |
Subcommand New |
Option Legacy |
Option New |
---|---|---|---|
|
|
||
|
|
||
|
|
|
|
|
|
|
|
|
|
||
|
|||
|
|||
|
|||
|
|
||
|
|
|
|
|
|||
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
|
n/a |
||
|
|
||
|
|
|
|
|
|
||
|
|
||
|
|
|
|
|
|
||
|
|
||
|
|||
|
|
Not Supported |
|
|
separate |
xbmgmt¶
Subcommand Legacy |
Subcommand New |
Option Legacy |
Option New |
---|---|---|---|
|
|
||
|
|
||
|
|
|
|
|
|
||
|
|
||
|
|
||
|
|
|
|
|
|
||
|
|
||
|
|
|
|
|
|
||
|
|||
|
|||
|
|||
|
|
|
|
|
|
To be implemented in next release |
Few examples of legacy vs new commands¶
Here are few example use-cases of legacy vs new commands
1. Getting all the information obtained from the userspace kernel driver
Legacy command
There were two variants of legacy commands
xbutil query
or
xbutil dump
New command
xbutil examine --device 0000:b3:00.1 --report all
2. Validate the card
Legacy command
xbutil validate
New command
xbutil validate --device 0000:b3:00.1
3. Obtaining platform information such as SC version, flashed partition(s) running on the card, etc.
Legacy command
xbmgmt flash --scan
New command
xbmgmt examine --device 0000:b3:00.0 --report platform
You need to use a combination of xball xbmgmt
command if you prefer to see information from all the cards attached to the host server. Please see xball
page for more details.
4. Programming the base partition
Legacy command
xbmgmt --update --shell <partition name>
New command
xbmgmt program --base --device 0000:d8:00.0 --base
or when a specific partition to choose
xbmgmt program --base --device 0000:d8:00.0 --base --image <partition name>
5. Resetting the device
Legacy command
xbutil --reset
New command
xbutil --reset --device 0000:d8:00.1