From: Nishanth Menon <nm@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ARM: OMAP5+: configs: Fix default boot command
Date: Thu, 13 Aug 2015 10:06:08 -0500 [thread overview]
Message-ID: <55CCB260.70409@ti.com> (raw)
In-Reply-To: <1439477798-21955-1-git-send-email-lokeshvutla@ti.com>
On 08/13/2015 09:56 AM, Lokesh Vutla wrote:
> The default boot command searches for dofastboot varaiable
> and does a fastboot if it is set to 1.
> But the condition "if test ${dofastboot} -eq 1" always
> returns true if dofastboot is not defined and breaking mmc boot.
> So make dofastboot as 0 by default and let the runtime
> environment set it if fastboot is required.
>
> Reported-by: Yan Liu <yan-liu@ti.com>
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
> ---
> include/configs/ti_omap5_common.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/configs/ti_omap5_common.h b/include/configs/ti_omap5_common.h
> index fe04692..1c1f8c0 100644
> --- a/include/configs/ti_omap5_common.h
> +++ b/include/configs/ti_omap5_common.h
> @@ -79,6 +79,7 @@
> "vram=16M\0" \
> "partitions=" PARTS_DEFAULT "\0" \
> "optargs=\0" \
> + "dofastboot=0\0" \
> "mmcdev=0\0" \
> "mmcroot=/dev/mmcblk0p2 rw\0" \
> "mmcrootfstype=ext4 rootwait\0" \
>
arch/arm/cpu/armv7/omap-common/boot-common.c sets it to one. so what is
the point of this? dra7_evm defines CONFIG_USB_FUNCTION_FASTBOOT -> so
it is setting up dofastboot blindly.
Is'nt fixing the source of the issue a better thing to do than depending
on env default -a hoping to save us (which btw will only help opentest
farm).
Looks like the code blindly assumes fastboot mode - which is weird!
--
Regards,
Nishanth Menon
next prev parent reply other threads:[~2015-08-13 15:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-13 14:56 [U-Boot] [PATCH] ARM: OMAP5+: configs: Fix default boot command Lokesh Vutla
2015-08-13 15:06 ` Nishanth Menon [this message]
2015-08-13 15:25 ` Tom Rini
2015-08-13 15:28 ` Nishanth Menon
2015-08-13 15:39 ` Tom Rini
2015-08-13 15:42 ` Nishanth Menon
2015-08-13 15:24 ` Tom Rini
2015-08-14 20:52 ` [U-Boot] " Tom Rini
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=55CCB260.70409@ti.com \
--to=nm@ti.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox