Proper setting for Uboot/SPL
Hi
I want to use FPGA Boot to run my baremetal system on CycloneVsoc board. But the AN709 needs to be updated, for preloader is no longer needed, all custom settings are made by Uboot/SPL settings.
Another issue is that arm-altera-eabi is no longer included in the SOC EDS. So the hex file needed for the OCRAM in FPGA booting can't get done.
I've tried to use the
arm-eabi-objcopy -O ihex --adjust-vma -0xC0000000 uboot-socfpga/spl/u-boot-spl preloader.hex
instead of arm-altera-eabi-objcopy, but the Quartus Warns me that the width and space of the ROM is not enough.
My question is:
1.How to set the Uboot/SPL in order to let the SPL/UBoot know it is boot from FPGA.
2.How to upload the Baremetal image other than SD/MMC? Is there a way to upload the image directly through FPGA?
3. What is the image form needed by this way? I assume it is the same as the SD/MMC Image, which have the following type:
1. P1 root flie (ext3)
2. P2 sys file(fat32)
3. P3 Uboot/SPL file (2A)
4. A new way to achieve hex file needed by the FPGA booting ROM.
Thank you
Alex