All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@mailbox.org>
To: Nimesh Acharya <nimeshacharya197@gmail.com>,
	u-boot@lists.u-boot-project.org
Cc: hsnaves@gmail.com, marek.vasut+socfpga@mailbox.org,
	simon.k.r.goldschmidt@gmail.com, tien.fong.chee@altera.com,
	trini@konsulko.com
Subject: Re: [PATCH] configs: socfpga_de10_standard: Fix raw partition booting from SDMMC
Date: Mon, 19 Oct 2026 23:54:37 +0200	[thread overview]
Message-ID: <097d4df2-1142-4eaf-b23d-60f2f4e291cf@mailbox.org> (raw)
In-Reply-To: <20261019205932.28038-1-nimeshacharya197@gmail.com>

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.

  reply	other threads:[~2026-10-20  1:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=097d4df2-1142-4eaf-b23d-60f2f4e291cf@mailbox.org \
    --to=marek.vasut@mailbox.org \
    --cc=hsnaves@gmail.com \
    --cc=marek.vasut+socfpga@mailbox.org \
    --cc=nimeshacharya197@gmail.com \
    --cc=simon.k.r.goldschmidt@gmail.com \
    --cc=tien.fong.chee@altera.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.u-boot-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.