Knowledge Base Article

Why does Agilex® 5 FPGA fail to boot Linux* from NAND when using the ATF-to-Linux direct boot flow in the 26.1 release?

Description

Due to an issue with the SDRAM memory configuration in the Linux* device tree, the Agilex® 5 FPGA HPS fails to boot Linux from NAND when using the ATF-to-Linux direct boot flow in the 26.1 release (Linux branch socfpga-6.18.2-lts). This issue does not occur in the U-Boot–to-Linux boot flow, as U-Boot patches the Linux device tree with the correct memory configuration. In the ATF-to-Linux direct boot flow, ATF does not perform this patching; therefore, the memory configuration must be correctly defined in the device tree.

Resolution

To work around this issue, the Linux device tree used for booting from NAND in the ATF-to-Linux direct boot flow must be updated with the correct memory configuration. For the Premium Development Kit Production (065B and 065A), apply the following fix to arch/arm64/boot/dts/intel/socfpga_agilex5_socdk_nand_atfboot.dts:

memory {
device_type = "memory";
reg = <0 0x80000000 0 0x80000000>;
};

Refer to the following build instructions for the workaround implementation:

PDK 065B

PDK 065A

This problem is scheduled to be fixed in a future release of the Quartus® Prime Pro Edition Software. 

Updated 6 months ago
Version 2.0
No CommentsBe the first to comment