From: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] omap34xx: SPL: enable MMC raw boot with u-boot.img
Date: Sun, 10 Nov 2019 01:48:17 +0100 [thread overview]
Message-ID: <20191110004817.997-1-GNUtoo@cyberdimension.org> (raw)
The following commit enabled raw SPL booting:
22d90d560a omap3: Use raw SPL by default for mmc1
but it was reverted by the following commit:
821c89d38c Revert "omap3: Use raw SPL by default for mmc1"
because SPL is unable to distinguish between RAW images and
garbage.
However if CONFIG_SPL_RAW_IMAGE_SUPPORT is disabled, SPL does
identify if there is a valid image with spl_parse_image_header.
With this change, and CONFIG_SPL_RAW_IMAGE_SUPPORT disabled,
raw MMC boot will be tried first, and if it fails, it FS will
be tried.
The two scenarios have been tested on a BeagleBoard XM Revision C1.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
---
arch/arm/mach-omap2/boot-common.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-omap2/boot-common.c b/arch/arm/mach-omap2/boot-common.c
index 734fa9d9e6..a48244e1c5 100644
--- a/arch/arm/mach-omap2/boot-common.c
+++ b/arch/arm/mach-omap2/boot-common.c
@@ -132,8 +132,10 @@ void save_omap_boot_params(void)
(boot_device <= MMC_BOOT_DEVICES_END)) {
switch (boot_device) {
case BOOT_DEVICE_MMC1:
+#ifdef CONFIG_SPL_RAW_IMAGE_SUPPORT
boot_mode = MMCSD_MODE_FS;
break;
+#endif
case BOOT_DEVICE_MMC2:
boot_mode = MMCSD_MODE_RAW;
break;
--
2.24.0
next reply other threads:[~2019-11-10 0:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-10 0:48 Denis 'GNUtoo' Carikli [this message]
2020-01-07 16:56 ` [PATCH] omap34xx: SPL: enable MMC raw boot with u-boot.img Denis 'GNUtoo' Carikli
2020-01-20 7:47 ` [U-Boot] " Lokesh Vutla
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=20191110004817.997-1-GNUtoo@cyberdimension.org \
--to=gnutoo@cyberdimension.org \
--cc=u-boot@lists.denx.de \
/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.