Forum Discussion
Hi Akash,
Step i post was working for us and we are using Cyclone5 SoC devkit.
Thank you,
Aliff
Hi,
I followed Building Bootloader CycloneV line by line and was able to generate the sdcard_cv.img without any error but it gives a blank screen on SoCkit i.e. u-boot doesn't boots up. I got a reference from cyclonev-programming-fpga-from-u-boot here and downloaded a prepared sdcard image which jackfrye11 has posted on google drive.
Replacing his u-boot-with-spl.sfp with mine made my sdcard work. This determines that I have a problem in generating the u-boot-with-spl.sfp for sure. Since the guide used a GHRD zip to generate everything using nios_embedded_shell.sh and generate_from_tcl for their dev board, I don't get to see the complete project. What I generated using their commands was targeting to their dev board. How to approach this step (where make generate_from_tcl and make sof were executed) when using a custom board and design? Particularly this part below:
==============================================
cd $TOP_FOLDER
rm -rf ghrd-socfpga-QPDS22.1STD_REL_GSRD_PR QPDS22.1STD_REL_GSRD_PR.zip cv_soc_devkit_ghrd
wget https://github.com/altera-opensource/ghrd-socfpga/archive/refs/tags/QPDS22.1STD_REL_GSRD_PR.zip
unzip QPDS22.1STD_REL_GSRD_PR.zip
mv ghrd-socfpga-QPDS22.1STD_REL_GSRD_PR/cv_soc_devkit_ghrd .
rm -rf ghrd-socfpga-QPDS22.1STD_REL_GSRD_PR QPDS22.1STD_REL_GSRD_PR.zip
cd cv_soc_devkit_ghrd
rm -rf software
~/intelFPGA/22.1std/nios2eds/nios2_command_shell.sh \
make generate_from_tcl
~/intelFPGA/22.1std/nios2eds/nios2_command_shell.sh \
make sof
=================================================
Also, for EmbeddedLinuxBeginnerSGuide , there is a preloader-mkpimage file as a preloader in a2 partition. Its u-boot.img was generated using "intelFPGA/18.1/embedded/host_tools/altera/preloader/uboot-socfpga.tar.gz" which is a 2013 version. This u-boot causes fatload command issue for me and I could see other people struggling with same issue for months. Otherwise this method seemed to have a better control over things.
Overall both the methods fail for me due to u-boot.
Thanks for your responses and support.
Akash.