Site Search

How to configure FPGA from Hard Processor System (HPS) using u-boot on Altera SoC?

SoC FPGAs

Target version: Quartus II v13.1

【 Advance preparation 】
(1) Creating an SD card
SD card image stored in Altera SoC EDS with Win32DiskImager
Write to SD card.

Destination folder : \embedded\embeddedsw\socfpga\prebuilt_images
Example) C:\altera\13.1\embedded\embeddedsw\socfpga\prebuilt_images
SD card image: sd_card_linux_boot_image.tar.gz

(2) Copy RBF file
Copy the example design RBF file that comes with the Altera SoC EDS to your SD card. Destination folder: C:\altera\13.1\embedded\examples\hardware\cv_soc_devkit_ghrd\output_files
RBF file: soc_system.rbf

Copy to a FAT partition.


[Actual machine operation]
(3) MSEL settings
Since the RBF files shipped with Altera SoC EDS are compressed, the mode of MSEL is
Set as follows.

0: ON
1 : OFF
2 : ON
3 : ON
4 : ON

(4) Start u-boot console
Connect the UART cable to the board. (Baud rate is 115200)
Insert the SD card into the board and turn on the power.
Enter the key when u-boot is started and stop the console once.

(5) Perform FPGA configuration
Execute the following command.

fatload mmc 0:1 $fpgadata soc_system.rbf
fpga load 0 $fpgadata $filesize

You can check the details of the variable definition with the printenv command. (excerpt of relevant variables below)
fpgadata=0x2000000
filesize=0x22ba82


[ Reference link ]
  http://www.rocketboards.org/foswiki/Documentation/GSRDProgrammingFPGA

Experienced FAE
Free consultation is available.

From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.