.. _xbmgmt.rst: .. comment:: SPDX-License-Identifier: Apache-2.0 comment:: Copyright (C) 2019-2022 Xilinx, Inc. All rights reserved. xbmgmt ====== This document describes the latest ``xbmgmt`` commands. These latest commands are default from 21.1 release. For an instructive video on xbmgmt commands listed below click `here `_. **Global options**: These are the global options can be used with any command. - ``--verbose``: Turn on verbosity and shows more outputs whenever applicable - ``--batch``: Enable batch mode - ``--force``: When possible, force an operation - ``--help`` : Get help message - ``--version`` : Report the version of XRT and its drivers Currently supported ``xbmgmt`` commands are - ``xbmgmt configure`` - ``xbmgmt dump`` - ``xbmgmt examine`` - ``xbmgmt program`` - ``xbmgmt reset`` xbmgmt configure ~~~~~~~~~~~ The ``xbmgmt configure`` command provides advanced options for configuring a device **The supported options** Configuring a device's memory settings with a premade image .. code-block:: shell xbmgmt configure [--device| -d] [--input] Enabling/Disabling DDR memory retention on a device .. code-block:: shell xbmgmt configure [--device| -d] --retention [ENABLE|DISABLE] **The details of the supported options** - The ``--device`` (or ``-d``) specifies the target device - : The Bus:Device.Function of the device of interest - The ``--input`` specifies an INI file with the memory configuration. - The ``--retention`` option enables / disables DDR memory retention. **Example commands** .. code-block:: shell #Configure a device's memory settings using an image xbmgmt configure --device 0000:b3:00.0 --input /tmp/memory_config.ini #Enable a device's DDR memory retention xbmgmt configure --device 0000:b3:00.0 --retention ENABLE xbmgmt dump ~~~~~~~~~~~ The ``xbmgmt dump`` command dump out content of the specified option **The supported options** Dumping the output of system configuration. .. code-block:: shell xbmgmt dump [--device| -d] [--config| -c] [--output| -o] Dumping the output of programmed system image .. code-block:: shell xbmgmt dump [--device| -d] [--flash| -f] [--output| -o] **The details of the supported options** - The ``--device`` (or ``-d``) specifies the target device - : The Bus:Device.Function of the device of interest - The ``--flash`` (or ``-f``) option dumps the output of programmed system image. - The ``--config`` (or ``-c``) option dumps the output of system configuration. - The ``--output`` (or ``-o``) specifies the output file to direct the dumped output. For ``--config`` the output file must have extension .ini **Example commands** .. code-block:: shell #Dump programmed system image data xbmgmt dump --device 0000:b3:00.0 --flash -o /tmp/flash_dump.txt #Dump system configaration xbmgmt dump --device 0000:b3:00.0 --config -o /tmp/config_dump.ini xbmgmt examine ~~~~~~~~~~~~~~ The ``xbmgmt examine`` command reports detail status information of the specified device `