Forum Discussion
Arria 10 SoC Dev Kit – Linux from SD Card Stops Booting After Erasing EPCQL1024
Hi Suresh,
May I know whether you have resolved this issue on your end?
Thanks
regards
Kian
Hi Kian,
Thanks for u r update. I wanted to know after loading the ref .sof file, how hps will boot with linux image from sd card. Where is the configuration stored th tell the HPS. This things are not clear to me, please clarify for Arria 10 SoC Development Kit.
Thanks in Advance
Regards
Suresh
- KianHinT_altera25 days ago
Frequent Contributor
Hi Suresh,
Thanks for the reply.
1. What tells the HPS to boot from the SD card? Neither the
.soffile nor theEPCQL1024flash tells the HPS where to boot from.- On a cold reset, the HPS boot source is determined in hardware by the BSEL (Boot Select) DIP switch (
SW4) on the development kit (along with internal fuses). - When the HPS is released from reset, its hardwired internal Boot ROM reads the
BSELpin values from the System Manager'sbootinforegister. WhenBSELis set for SD/MMC, the Boot ROM automatically knows to look at the SD card for the bootloader.
2. Where is the HPS boot software stored? The
.sofloaded via JTAG (or.jicinEPCQL1024) only configures the FPGA side—it carries no HPS boot code. Everything the HPS needs to boot Linux lives on the SD card across three partitions:- Partition
A2(Raw partition, no filesystem): Stores the second-stage bootloader—U-Boot SPL / U-Boot (u-boot-splx4.sfpandu-boot.imgin newer releases, oruboot_w_dtb-mkpimage.binin older SoC EDS releases). - FAT32 Partition: Holds the Linux kernel (
zImageorkernel.itb), device tree blob (.dtb), and FPGA.rbffiles (fit_spl_fpga.itb/periph.rbf/core.rbf) if U-Boot configures the fabric. - EXT3/EXT4 Partition: Holds the Linux root filesystem (
rootfs).
3. Why does the HPS need the FPGA configured (
.sof/.rbf) to boot Linux? On Arria 10 SoC, the HPS DDR4 memory controller I/O and shared I/O pins are physically located inside the FPGA I/O banks.- While the HPS Boot ROM and initial SPL can start running inside tiny On-Chip RAM (OCRAM), the HPS cannot release its shared I/Os or access DDR4 SDRAM until the FPGA I/O ring is configured.
- If your setup previously relied on the
EPCQL1024flash to configure the FPGA at power-up (and your SD card is not set up for SPL to load the.rbfautomatically, or theMSELswitches are set for Active Serial instead of FPP), erasing theEPCQL1024leaves the FPGA unconfigured on power-up. Without FPGA I/O configuration, DDR4 never initializes and the boot process halts before U-Boot/Linux can start.
4. Exact Boot Sequence When Using a
.sofvia JTAG + SD Card- Load the
.sofvia JTAG: Configures the FPGA fabric and releases the HPS shared and DDR4 memory I/O banks into user mode. (Note: Loading a.sofover JTAG does not automatically restart the HPS if it already hung at power-up.) - Trigger an HPS Reset (Warm/Cold Reset button on the board): Once the FPGA is configured, resetting the HPS causes the HPS Boot ROM to read the
BSELpins and access the SD card. - Boot ROM loads SPL: The Boot ROM loads the U-Boot SPL image from the SD card's
A2partition into On-Chip RAM and executes it. - U-Boot runs: SPL initializes the UART and DDR4 SDRAM, then runs full U-Boot, which loads the Linux kernel and device tree from the SD card's FAT partition into DDR4.
- Linux boots: The kernel starts and mounts the root filesystem from the SD card's EXT partition.
Next Steps: Since erasing the
EPCQL1024only affected the onboard QSPI/AS flash, your SD card contents are still intact. To boot right now, load your reference.sofover JTAG and then press the HPS Reset button so the HPS restarts its boot sequence from the SD card. To restore automatic power-up behavior, either flash the factory.jicback into theEPCQL1024or use the GSRD SD Card Image (with defaultMSEL/BSELswitch settings) where U-Boot SPL configures the FPGA directly from the.rbfon the SD card.Regards,
Kian
- Suresh43025 days ago
New Contributor
Hi Kian,
Thanks a lot.
Currently EPCQL1024 not affected with the erase operation which i shared previously. After power-on board , seeing that Linux image is booting from SDcard, Hope contents are available in EPCQL1024. I want to know that ref .sof file from factory converted into .jic was programmed in EPCQL1024 right ?
Current below is the BSEL value.AS-Active Serial(x1 and x4) means fpga configures from flash memory right ?
Where is the information about sdcard boot ?Regards
Suresh
- KianHinT_altera10 days ago
Frequent Contributor
Hi Suresh,
As there are no further inquiries, I will step back and allow the community to assist with any future follow-up questions.
Thank you for engaging with us!
Best regards,
Altera Technical Support
- On a cold reset, the HPS boot source is determined in hardware by the BSEL (Boot Select) DIP switch (