Forum Discussion
Arria 10 SoC Dev Kit – Linux from SD Card Stops Booting After Erasing EPCQL1024
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
Hi Suresh,
Thanks for the reply.
1. What tells the HPS to boot from the SD card? Neither the .sof file nor the EPCQL1024 flash 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 .sof loaded via JTAG (or .jic in EPCQL1024) 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 .sof via 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 EPCQL1024 only affected the onboard QSPI/AS flash, your SD card contents are still intact. To boot right now, load your reference .sof over 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 .jic back into the EPCQL1024 or use the GSRD SD Card Image (with default MSEL/BSEL switch settings) where U-Boot SPL configures the FPGA directly from the .rbf on the SD card.
Regards,
Kian
- Suresh43029 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_altera14 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 - KianHinT_altera28 days ago
Frequent Contributor
Hi Suresh,
1. Yes, the EPCQL1024 contains the GHRD .sof converted to a .jic
An EPCQ device is used for FPGA configuration in Active Serial (AS) mode on power-up. Arria 10 SX SoC Development Kit User GuideTo program a .sof file into an EPCQ-L, you must convert it to a .jic file. AN 737: SEU Detection and Recovery in Arria 10 Devices So the factory flow is: GHRD .sof → Convert Programming Files → .jic → programmed into EPCQL1024. The .jic contains only the FPGA configuration bitstream.
2. What MSEL = 010 (AS-Active Serial x1 and x4, Fast) means
Yes, your understanding is correct. The AS configuration scheme supports AS x1 (1-bit data width) and AS x4 (4-bit data width) modes. Arria® 10 Core Fabric and General Purpose I/Os Handbook With MSEL[2:0] = 010, on every power-on reset the FPGA reads the bitstream stored in the EPCQL1024 and configures itself automatically thus no JTAG needed for the FPGA fabric. The AS x4 mode provides four times faster configuration time than the AS x1 mode. Arria® 10 Core Fabric and General Purpose I/Os Handbook
The EPCQL1024 / MSEL setting is concerned only with FPGA fabric configuration. It has nothing to do with HPS or SD card boot.
3. Where SD card boot comes which is from BSEL, not MSEL
These are two completely independent mechanisms:
- MSEL[2:0] — controls how the FPGA fabric is configured (source = EPCQL1024 via Active Serial)
- BSEL[2:0] — controls which flash device the HPS boot ROM uses to load the second-stage boot loader (U-Boot)
The boot select (BSEL) pins offer multiple methods to obtain the second-stage boot image. On a cold reset, the boot source is determined by a combination of secure boot fuses and BSEL pins. These fuse values and BSEL pin values are sent to the Security Manager module of the HPS when the cold reset occurs. When the HPS is released from reset, the boot ROM reads the bootinfo register of the System Manager to determine the source of the boot. Arria 10 SoC Boot User Guide
From the jumper table in your screenshot (J3=BSEL0=0, J4=BSEL1=0, J5=BSEL2=1), your BSEL[2:0] = 0x4. Looking up that encoding:
BSEL value 0x4 → Flash Device: 1.8 V SD/MMC flash memory with external transceiver. 4.3. Boot Select
So the HPS boot ROM is directed to load U-Boot from the SD card's custom partition (type 0xA2). The boot images are stored in a primary partition with custom partition type (0xA2). The SD/MMC flash driver does not support a file system, so the boot images are located in partition A2 at fixed locations. Arria 10 SoC Boot User Guide
Summary of the power-on sequence on your board:
- Power-on → FPGA reads bitstream from EPCQL1024 via Active Serial (MSEL=010) → FPGA enters user mode (GHRD running)
- Simultaneously, HPS boot ROM checks BSEL=0x4 → initializes SD/MMC controller → reads U-Boot from the SD card's 0xA2 partition → executes U-Boot → Linux boots
These two paths are parallel and independent. The EPCQL1024 holds only the FPGA bitstream; the Linux kernel, device tree, and U-Boot reside entirely on the SD card.
Thanks
Regards
Kian