Forum Discussion
Building uboot for cyclone V SoC
- 1 year ago
Hi Snehal
Just to update the forum case.
The missing steps from the RBO page are the steps below:
1.Step to convert the sof to rbf. You could use the command below to convert the sof.
quartus_cpf -c -o bitstream_compression=on soc_system.sof soc_system.rbf
2.Missing u-boot.scr could be gotten from the gsrd page.
https://releases.rocketboards.org/2025.03/gsrd/c5_gsrd/u-boot.scr
3.Place both rbf and the u-boot.scr in the sdcard partition 1 (sdfs)
Regards
Jingyang, Teh
Hi
Sorry for the late reply.
If you are using the latest in the repo, there might be some bugs that was recently uploaded.
In the uboot repository, could checkout the branch "git checkout -b test-bootloader -t origin/socfpga_v2024.04" .
Regards
Jingyang, Teh
- snehal_p1 year ago
Contributor
Hello JingyangTeh,
Thanks for the response.
Please check the steps below,
1) git clone https://github.com/altera-opensource/u-boot-socfpga
2) git checkout -b test-bootloader -t origin/socfpga_v2022.10
3) cd arch/arm/mach-socfpga/cv_bsp_generator/
4) python cv_bsp_generator.py -i path/hps_isw_handoff/soc_system_hps_0 -o ~/software/bootloader/u-boot-socfpga/board/altera/cyclone5-socdk/qts
5) cd arch/arm/mach-socfpga/cv_bsp_generator/
6) export CROSS_COMPILE=~/software/gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-
7) make socfpga_cyclone5_defconfig
make -j 48 Error message:
./tools/mkimage: unsupported type Altera SoCFPGA CV/AV preloader
make[1]: *** [scripts/Makefile.spl:426: spl/u-boot-spl.sfp] Error 1
make: *** [Makefile:2081: spl/u-boot-spl] Error 2
make: *** Deleting file 'spl/u-boot-spl'Thanks,
snehal_p
- snehal_p1 year ago
Contributor
Hello JingyangTeh,
Please PFA error message
this document is suggesting to use uboot branch 2022.04, but I'm getting below error.
Can you please help with the issue.
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make[1]: *** [scripts/Makefile.host:104: tools/dumpimage] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/Makefile.host:104: tools/mkimage] Error 1
make[1]: *** [scripts/Makefile.host:104: tools/fit_info] Error 1
make[1]: *** [scripts/Makefile.host:104: tools/fit_check_sign] Error 1
make: *** [Makefile:1900: tools] Error 2Thanks,
snehal_p