Skip to contentSkip to conversation

configs: socfpga_de10_standard: Fix raw partition booting from SDMMC

PATCH In review Nimesh Acharya 2 participants 3 messages Oct 20 – Oct 27

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 configs: socfpga_de10_standard: Fix raw partition booting from SDMMC

When using the default meta-intel-fpga configuration in Yocto 6.0 (Wrynose) for the Terasic DE10-Standard, SPL fails to load U-Boot from the raw a2 partition on the SDMMC device.

This change configures SPL to locate the raw U-Boot image using the partition type, rather than relying on the
default offset relative to the beginning of the SD card.

---
Changes in v3:
- Drop CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_DATA_PART_OFFSET; not used.
- Regenerate with savedefconfig.

Changes in v2:
- Remove CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE=0xa2 since its already the default.

 configs/socfpga_de10_standard_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/socfpga_de10_standard_defconfig +1 -0
index 04f9d6c8494..a588a5eac51 100644
@@ -27,6 +27,7 @@ CONFIG_DISPLAY_BOARDINFO_LATE=y
 CONFIG_CLOCKS=y
 CONFIG_SPL_PAD_TO=0x10000
 CONFIG_SPL_NO_BSS_LIMIT=y
+CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE=y
 CONFIG_SPL_SPI_LOAD=y
 CONFIG_SYS_SPI_U_BOOT_OFFS=0x40000
 CONFIG_SYS_MAXARGS=32
Signature · 1 line
2.56.0
#1 lore raw
Quoted 3 lines · Nimesh Acharya

When using the default meta-intel-fpga configuration in Yocto 6.0 (Wrynose) for the Terasic DE10-Standard, SPL fails to load U-Boot from the raw a2 partition on the SDMMC device.

This ^ is not relevant for upstream.

Please retest with build outside of OE and with plain

$ make socfpga_de10_standard_defconfig ; make

Does that also lead to the same issue , and does this patch fix it ?

[...]

#2 lore raw
Quoted 5 lines · Marek Vasut,
Quoted 3 lines · Nimesh Acharya

When using the default meta-intel-fpga configuration in Yocto 6.0 (Wrynose) for the Terasic DE10-Standard, SPL fails to load U-Boot from the raw a2 partition on the SDMMC device.

Quoted 9 lines

This ^ is not relevant for upstream.

Please retest with build outside of OE and with plain

$ make socfpga_de10_standard_defconfig ; make

Does that also lead to the same issue , and does this patch fix it ?

[...]

Im not exactly sure how I would go about testing this. The results depend on where the image is placed in the disk.

The default OE build places the .sfp file at the end of the disk (3rd Partition, a2 raw partition), however it only boots if this specific config option is enabled.

Could you explain what the default intended placement/behaviour is?

Quoted 1 line