Xilinx / video-sdk

https://xilinx.github.io/video-sdk
Other
31 stars 14 forks source link

Error trying to flash golden image: "Factory reset not supported. No Golden image found on flash". #16

Closed ThomasXilinx closed 2 years ago

ThomasXilinx commented 2 years ago

Getting an error message when trying to revert the card to golden image with the following command:

The error message: Factory reset not supported. No Golden image found on flash The command: sudo /opt/xilinx/xrt/bin/xbmgmt program --revert-to-golden --device <BDF>

ThomasXilinx commented 2 years ago

The xbmgmt program --revert-to-golden and xbmgmt flash --factory_reset commands expect the golden image of the card to be flashed at a particular memory location. If this is not the case, the command will not work.

Solution: relocate the golden image by following the instructions below.

  1. Set up your environment:
    source /opt/xilinx/xrt/setup.sh
  2. List the Management BDF of your devices:
    sudo /opt/xilinx/xrt/bin/xbmgmt examine
  3. For each device, run the following command to flash the golden image to the expected memory location:
    sudo /opt/xilinx/xrt/bin/xbflash.qspi --qspips-flash --input /opt/xilinx/firmware/u30/gen3x4/base/data/BOOT_golden.BIN --offset 0x6000000 --bar-offset 0x10000 --card <BDF>

Once the golden image has been properly relocated, you can revert the card to the golden image by following the standard card recovery instructions.