All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] configs: socfpga_de10_standard: Fix raw partition booting from SDMMC
@ 2026-10-19 20:59 Nimesh Acharya
  2026-10-19 21:54 ` Marek Vasut
  0 siblings, 1 reply; 6+ messages in thread
From: Nimesh Acharya @ 2026-10-19 20:59 UTC (permalink / raw)
  To: u-boot
  Cc: hsnaves, marek.vasut+socfpga, simon.k.r.goldschmidt,
	tien.fong.chee, trini, 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 change configures SPL to locate the raw U-Boot image using the
partition type and data offset, rather than relying on the
default offset relative to the beginning of the SD card.

Signed-off-by: Nimesh Acharya <nimeshacharya197@gmail.com>
---
 configs/socfpga_de10_standard_defconfig | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configs/socfpga_de10_standard_defconfig b/configs/socfpga_de10_standard_defconfig
index 04f9d6c8494..f170778c322 100644
--- a/configs/socfpga_de10_standard_defconfig
+++ b/configs/socfpga_de10_standard_defconfig
@@ -70,3 +70,8 @@ CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 # CONFIG_SPL_WDT is not set
 CONFIG_SYS_TIMER_COUNTS_DOWN=y
+
+# SPL Fails to load UBOOT without these!
+CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE=y
+CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE=0xa2
+CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_DATA_PART_OFFSET=0x200
-- 
2.56.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-10-21  2:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-19 20:59 [PATCH] configs: socfpga_de10_standard: Fix raw partition booting from SDMMC Nimesh Acharya
2026-10-19 21:54 ` Marek Vasut
2026-10-20  8:35   ` Nimesh Acharya
2026-10-20 10:28     ` Marek Vasut
     [not found]       ` <CAMb=oEYbdBJbQ-sjZ5q5YDXSjgH3j5PdM11smGXxqgGw-e7QQw@mail.gmail.com>
2026-10-20 11:50         ` Nimesh Acharya
2026-10-20 12:45         ` Marek Vasut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.