Step 2: Using AMD Software Command-line Tool Flow to Generate a First Stage Boot Loader - Step 2: Using AMD Software Command-line Tool Flow to Generate a First Stage Boot Loader - 2026.1 English - UG936

Vivado Design Suite Tutorial: Programming and Debugging (UG936)

Document ID
UG936
Release Date
2026-07-08
Version
2026.1 English
XSCT is an interactive and scriptable command-line interface to the Vitis tool. The XSCT flow requires running a Tcl script.

Generating Using the AMD Software Command-line Tool Automated Flow

To create an FSBL for the Cortex-A53 #0 (64-bit) automatically (and modify the xfsbl_main.c/h files if a USB is present) using the provided script, use the following steps:

  1. Copy the src/lab10/xsct_create_fsbl.tcl script to the directory where the XSA file is located. You can modify the Tcl script if you change the default name of the XSA file in the Vivado tool. You can also change the script if the compiler options are different.
  2. Open a terminal on Linux or command prompt on Windows.
  3. Set up the tool environment before proceeding:

    Linux: Source the settings script from your Vivado or Vitis installation directory:

    % source <Vivado_install_path>/settings64.sh
    or
    
    % source <Vitis_install_path>/settings64.sh
    

    Windows: Run the settings batch file from your Vivado or Vitis installation directory:

    > <Vivado_install_path>\settings64.bat
    or
    
    > <Vitis_install_path>\settings64.bat
    Note: This step is required only when using the command line flow. If you are using the Vivado or Vitis IDE directly, the environment is configured automatically.
  4. Change the directory into the directory where the XSA file is located.
  5. Call xsct from the Vitis tool install area.
    % xsct xsct_create_fsbl.tcl
  6. The location of the generated ELF File prints out when the script completes.