we try to grnerate uboot file,
in the process we run the make file and we received (althogh we can run the archive stand alone in the same file):
$ make
tar zxf /cygdrive/c/intelFPGA_lite/18.1/embedded/host_tools/altera/preloader/uboot-socfpga.tar.gz
tar: Error opening archive: Failed to open ‘/cygdrive/c/intelFPGA_lite/18.1/embedded/host_tools/altera/preloader/uboot-socfpga.tar.gz’
make: *** [uboot-socfpga/.untar] Error 1
cd u-boot-socfpga
*** Steps 7 through 8 help you find the latest tag: it is not necessary, the latest code usually works ***
git checkout -t -b feature (notice the name of the feature it selects: for me it was: ‘feature’ set up to track local branch ‘socfpga_v2020.07’)
git checkout -b test -t origin/socfpga_v2020.07
patch -p1 < /[path]/[to]/[your].patch (if any)
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
export PATH=/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin:$PATH (or where ever you installed linaro gcc)
This is all one command:
./arch/arm/mach-socfpga/qts-filter.sh cyclone5 …/…/…/ …/ ./board/altera/[your board file]/qts/
make [your]_defconfig
make -j (where is the number of threads on your PC)
The file named, “u-boot-with-spl.sfp” is the binary image for the spi flash. Offset is 0. There are four copies of the init code each 64KB long and then all of u-boot.