Building the FPGA project and Bootloader with Quartus Pro 24.1¶
1. Prerequisites 2. Building the FPGA and Bootloader 3. Building the Filesystem 4. Building the SD Card
Introduction¶
The reference project for the MitySBC-Agilex5 requires the Quartus Pro 24.1 tools installed and in your path.
Please review the Prequisites for software tool dependencies before attempting to build the projects.
Description | Repository | Branch |
Quartus Example Projects | git://support.criticallink.com/home/git/mitysbc-a5-ref.git | pro_24.1_stable |
Quick steps to build¶
Clone the repository¶
git clone -b pro_24.1_stable git://support.criticallink.com/home/git/mitysbc-a5-ref.git
Navigate into the root of the Quartus project¶
cd mitysbc-a5-ref/base_project
Generate the project¶
The project is set up to be customizable from TCL. To generate the default configuration run the following:
make generate_from_tcl
Build the FPGA project and Bootloader¶
make jic
This will result in output_files/base_project_hps.jic. The JIC file contains the FPGA design and the preloader which is programming into the QSPI NOR.
Program the QSPI NOR with the FPGA design / Preloader¶
The JIC can be programmed using the Altera USB-II Blaster with the following command:
quartus_pgm -m jtag -o "ip;output_files/base_project_hps.jic@2"
Bootloader¶
The preloader is part of the JIC file previously programmed. U-boot (second stage bootloader) is output in software/bootloader/u-boot-socfpga/u-boot.itb after running the make jic command above.
Bootloader Environment¶
The bootloader environment script can be found in software/boot.cmd. This is bootloader script that is ran as part of the boot process. The script can be compiled by running the following:
make uboot_script
The compiled output script will be in software/boot.scr
1. Prerequisites 2. Building the FPGA and Bootloader 3. Building the Filesystem 4. Building the SD Card
Go to top