Building u-Boot and the SD Card Using tools post Quartus 20.4 pro

(!) This page is still under construction

The instructions for this are based off of the Site.

1. Build your standard bitstream / RBF

You can perform this step using standard windows or linux Quartus Prime Pro tools.

2. Prepare tools for building uBoot

For this portion, you will need a linux environment. The author of these instructions is using WSL2 under windows 10 with Ubuntu 18.04 LTS. Quartus tools > 20.4 no longer include ARM compiler chain, you need to download them and install them. All of the commands below assume a /bin/bash command line using Ubuntu 18.04 LTS.

You will need to first install some prerequisite tools.

sudo apt-get install build-essential bison flex
mikew@mikew-cyberpc:~$ mkdir tools
mikew@mikew-cyberpc:~$ cd tools
mikew@mikew-cyberpc:~$ wget
mikew@mikew-cyberpc:~/tools$ tar xf gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf.tar.xz

This will put a copy of the ARM compiler in $HOME/tools/gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf. To use the compiler, you need to add it to your path.

mikew@mikew-cyberpc:~/tools$ export PATH=`pwd`/gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf/bin:$PATH

3. Setup

Create the top level folder:

sudo rm -rf mitysom_a10s.sdmmc
mkdir mitysom_a10s.sdmmc
cd mitysom_a10s.sdmmc
export TOP_FOLDER=`pwd`

4. Generate the Handoff Files from the Quartus Project

mikew@mikew-cyberpc:~/projects/u-boot-socfpga$ ./arch/arm/mach-socfpga/ ../../../hps_isw_handoff/hps.xml arch/arm/dts/socfpga_mitysom_a10s_handoff.h

5. Build the uBoot images

mikew@mikew-cyberpc:~/projects/u-boot-socfpga$ export CROSS_COMPILE=arm-none-linux-gnueabihf-
mikew@mikew-cyberpc:~/projects/u-boot-socfpga$ make socfpga_mitysom_a10s_dsc_defconfig
mikew@mikew-cyberpc:~/projects/u-boot-socfpga$ make -j 24

Go to top
Add picture from clipboard (Maximum size: 600 MB)