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:
- 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.
- Open a terminal on Linux or command prompt on Windows.
- 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.shWindows: Run the settings batch file from your Vivado or Vitis installation directory:
> <Vivado_install_path>\settings64.bat or > <Vitis_install_path>\settings64.batNote: 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. - Change the directory into the directory where the XSA file is located.
- Call
xsctfrom the Vitis tool install area.% xsct xsct_create_fsbl.tcl - The location of the generated ELF File prints out when the script completes.