Using .tcl scripts, Preloader support package files and folders, Preloader support package files and folders -4 – Altera SoC Embedded Design Suite User Manual
Page 169

• On a Windows-based system, run the batch file
• On a Linux-based system, run the shell script
.
2. Run the bsp-editor command in the embedded command shell to launch the preloader support
package generator.
3. To open and modify an existing preloader support package (PSP) project in the preloader support
package generator, click File > Open and browse to an existing
.bsp
file.
4. To create a new PSP project, click File > New BSP to open the New BSP dialog box. The New BSP
dialog box includes the following settings and parameters:
• Preloader settings directory - the path to the hardware handoff files. The generator inspects the
handoff files to verify the validity of this path
• Operating system and Version - Not applicable to preloader generation.
• BSP target directory - the destination folder for new PSP files created by the generator. This
document refers to the preloader BSP directory as
. The default directory name is
spl_bsp. You can modify the directory name.
• BSP settings file name - the location and filename of the
.bsp
file
• Additional
.tcl
scripting - the location and filename of a .tcl script for overriding the default BSP
settings
5. You can customize the PSP. After creating or opening a
.bsp
file, access the Settings in the BSP Editor
dialogue box. The Settings are divided into Common and Advanced settings. When you select a
group of settings, the controls for the selected settings appear on the right side of the dialogue box.
When you select a single setting, the setting name, description and value are displayed. You can edit
these settings in the BSP Editor dialogue box.
6. Click Generate to generate the preloader support package.
7. Click Exit to exit the preloader support package generator.
Using .tcl Scripts
Instead of using the default settings, you can create a tcl script file (.tcl) to define custom settings during
BSP creation.
set_setting
is the only available
.tcl
command. Refer to BSP Settings for a list of available settings.
Example 7-1: Valid .tcl Scripting Commands for Changing BSP Settings
The following commands are used to set parameters n the BSP setings file:
set_setting spl.boot.BOOT_FROM_QSPI true
set_setting spl.boot.QSPI_NEXT_BOOT_IMAGE 0x50000
Related Information
on page 7-9
Preloader Support Package Files and Folders
The files and folders created with the preloader support package are stored in the location you specified in
BSP target directory in the New BSP dialog box.
7-4
Using .tcl Scripts
ug-1137
2013.05.03
Altera Corporation
HPS Preloader User Guide