Rbf file stored in qspi flash memory, Rbf file stored on sd/mmc card, Preloader image tool – Altera SoC Embedded Design Suite User Manual
Page 181: Rbf file stored in qspi flash memory -16, Rbf file stored on sd/mmc card -16, Preloader image tool -16

Note: The options for generating the RBF file need to match the MSEL settings on the board.
RBF File Stored in QSPI Flash Memory
The following steps are required to enable the Preloader to configure the FPGA from an RBF file stored in
QSPI Flash memory:
1. Configure the Preloader load the next boot stage from QSPI (Check BOOT_FROM_QSPI and
uncheck the other BOOT_FROM options).
2. Generate Preloader.
3. Compile Preloader, to make sure all the source code is available.
4. Modify file
to have the macro
CONFIG_SPL_FPGA_LOAD
defined. It is undefined by default.
5. If needed, edit the file
to modify the
CONFIG_SPL_FPGA_QSPI_ADDR
macro to select a different location for the RBF data in flash.
6. Re-compile the Preloader and flash it to QSPI.
7. Wrap the RBF file with the
mkimage
header.
This is used by the Preloader to determine the RBF file size. This can be achieved by using a command
similar with the following:
mkimage -A arm -T standalone -C none -a 0 -e 0 -n
"fpga image" -d
8. Program the wrapped RBF file to QSPI at the address CONFIG_SPL_FPGA_QSPI_ADDR.
9. Set up MSEL accordingly and boot board.
RBF File Stored on SD/MMC Card
The following steps are required to enable the Preloader to configure the FPGA from an RBF file stored
on SD/MMC card: 1
1. Configure the Preloader load the next boot stage from SD/MMC (check
BOOT_FROM_SDMMC
and
uncheck the other
BOOT_FROM
options).
2. Enable Preloader FAT Support (check
FAT_SUPPORT
).
3. Edit
FAT_BOOT_PARTITION
if necessary (default is "1").
4. Edit the
FAT_LOAD_PAYLOAD_NAME
if necessary (default is "u-boot.img").
5. Compile Preloader to make sure all the source code is available.
6. Modify file
to have the macro
CONFIG_SPL_FPGA_LOAD
defined. It is undefined by default.
7. If needed, modify file
to change the
macro
CONFIG_SPL_FPGA_FAT_NAME
(the default is "fpga.rbf").
8. Re-compile the Preloader and write it to the SD card.
9. Write the RBF file to the selected FAT partition on the SD Card and using the selected file name.
10.Set up MSEL accordingly and boot board.
Preloader Image Tool
The preloader image tool creates an Altera boot-ROM compatible image of the preloader. The tool can
also decode the header of previously generated images.
7-16
RBF File Stored in QSPI Flash Memory
ug-1137
2013.05.03
Altera Corporation
HPS Preloader User Guide