* [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
* Re: [PATCH] configs: socfpga_de10_standard: Fix raw partition booting from SDMMC
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
0 siblings, 1 reply; 6+ messages in thread
From: Marek Vasut @ 2026-10-19 21:54 UTC (permalink / raw)
To: Nimesh Acharya, u-boot
Cc: hsnaves, marek.vasut+socfpga, simon.k.r.goldschmidt,
tien.fong.chee, trini
On 10/19/26 10:59 PM, Nimesh Acharya wrote:
> 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
What does get configured in the .config during OE build without these
options ?
For example SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE is already set to
0xa2 in arch/arm/mach-socfpga/Kconfig , so that shouldn't be part of
this patch.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] configs: socfpga_de10_standard: Fix raw partition booting from SDMMC
2026-10-19 21:54 ` Marek Vasut
@ 2026-10-20 8:35 ` Nimesh Acharya
2026-10-20 10:28 ` Marek Vasut
0 siblings, 1 reply; 6+ messages in thread
From: Nimesh Acharya @ 2026-10-20 8:35 UTC (permalink / raw)
To: Marek Vasut
Cc: u-boot, hsnaves, marek.vasut+socfpga, simon.k.r.goldschmidt,
tien.fong.chee, trini
[-- Attachment #1: Type: text/plain, Size: 2493 bytes --]
Thanks for bringing that up. In fact, on running grep -E
'SPL_FS_LOAD_PAYLOAD_NAME|MMCSD_FS_BOOT_PARTITION|MMCSD_RAW_MODE|SPL_FS_FAT|SPL_FS_EXT4|SPL_LOAD_FIT|SPL_RAW_IMAGE'
$B/*/.config
I get this output for the default config:
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE=0xa2
# CONFIG_SPL_FS_FAT is not set
# CONFIG_SPL_LOAD_FIT is not set
CONFIG_SPL_RAW_IMAGE_SUPPORT=y
CONFIG_SPL_SYS_MMCSD_RAW_MODE=y
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
# CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION is not set
# CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE is not set
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x200
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_DATA_PART_OFFSET=0x0
# CONFIG_SPL_FS_EXT4 is not set
CONFIG_SYS_MMCSD_FS_BOOT_PARTITION=1
So, me adding CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE=0xa2 again is
indeed redundant. I'll fix this soon.
On Tue, 20 Oct, 2026, 7:08 am Marek Vasut, <marek.vasut@mailbox.org> wrote:
> On 10/19/26 10:59 PM, Nimesh Acharya wrote:
> > 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
>
> What does get configured in the .config during OE build without these
> options ?
>
> For example SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE is already set to
> 0xa2 in arch/arm/mach-socfpga/Kconfig , so that shouldn't be part of
> this patch.
>
[-- Attachment #2: Type: text/html, Size: 3408 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] configs: socfpga_de10_standard: Fix raw partition booting from SDMMC
2026-10-20 8:35 ` Nimesh Acharya
@ 2026-10-20 10:28 ` Marek Vasut
[not found] ` <CAMb=oEYbdBJbQ-sjZ5q5YDXSjgH3j5PdM11smGXxqgGw-e7QQw@mail.gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Marek Vasut @ 2026-10-20 10:28 UTC (permalink / raw)
To: Nimesh Acharya
Cc: u-boot, hsnaves, marek.vasut+socfpga, simon.k.r.goldschmidt,
tien.fong.chee, trini
On 10/20/26 10:35 AM, Nimesh Acharya wrote:
> Thanks for bringing that up. In fact, on running grep -E
> 'SPL_FS_LOAD_PAYLOAD_NAME|MMCSD_FS_BOOT_PARTITION|MMCSD_RAW_MODE|SPL_FS_FAT|SPL_FS_EXT4|SPL_LOAD_FIT|SPL_RAW_IMAGE'
> $B/*/.config
>
> I get this output for the default config:
>
> CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE=0xa2
> # CONFIG_SPL_FS_FAT is not set
> # CONFIG_SPL_LOAD_FIT is not set
> CONFIG_SPL_RAW_IMAGE_SUPPORT=y
> CONFIG_SPL_SYS_MMCSD_RAW_MODE=y
> CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
> # CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION is not set
> # CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE is not set
> CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x200
> CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_DATA_PART_OFFSET=0x0
> # CONFIG_SPL_FS_EXT4 is not set
> CONFIG_SYS_MMCSD_FS_BOOT_PARTITION=1
>
> So, me adding CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE=0xa2 again is
> indeed redundant. I'll fix this soon.
Please stop top-posting.
Is CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE=y the only option
you have to add ?
In any case, please do a V2 and make sure the
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE is in the right
place in the defconfig, not at the end.
^ permalink raw reply [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.