Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

Booting HPS from FPGA

Hello,

has anyone managed to boot the whole u-boot image (Bootloader) from FPGA? If so, how did you do this? There are tutorials for booting the HPS from FPGA with U-Boot SPL. The tutorials use the FPGA On-Chip Memory for just the Preloader and they load the actual Bootloader from SD-card or QSPI Flash. We have custom board with just blank eMMC-memory, EPCQ256 and Cyclone V SoC-device. I guess that it's possible to load the bootloader also from FPGA, but I haven't found any information about this. We would like to boot the U-Boot from the FPGA and then write the actual OS-image to eMMC-memory using Ethernet.

Thanks,

Joonas

12 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Thanks for your sharing :)

    --- Quote End ---

    I have exactly the same issue as this. I only have an eMMC memory on my board which is soldered down blank and I need to partition and program it with the full bootloader and Linux. This can be done from Linux but first I must boot into uboot so I can access my USB port and then boot into Linux.

    We have managed to do this from the DS5 debugger but it is not easy. I have also managed to boot the preloader from the FPGA but can't find the next step to boot preloader and uboot from the FPGA. It is possible to fit both preloader and uboot into the FPGA on chip memory but I need to know how to modify the preloader to make it point to the uboot image in the FPGA memory 0xC0040000 and how to convert the u-boot.bin to a ".hex" so I can add it to the FPGA on board memory initialisation file.

    We are using Cyclone V SOC and used AN709_SOC_boot_guide.

    Thanks

    Stuart