Forum Discussion
Arria 10 SoC Dev Kit – Linux from SD Card Stops Booting After Erasing EPCQL1024
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
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