From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 5/6] mx6qsabrelite: Add support to dynamically choose between ftd use or not
Date: Mon, 7 Jan 2013 07:04:51 -0700 [thread overview]
Message-ID: <20130107140451.GA3402@bill-the-cat> (raw)
In-Reply-To: <1356722226-23186-6-git-send-email-otavio@ossystems.com.br>
On Fri, Dec 28, 2012 at 05:17:05PM -0200, Otavio Salvador wrote:
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> ---
> Changes in v2:
> - Allow use of dynamic/static ip
> - Allow force use, or not, of fdt
> - Change 'auto' to 'try'
[snip]
> @@ -169,13 +173,43 @@
> "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \
> "mmcboot=echo Booting from mmc ...; " \
> "run mmcargs; " \
> - "bootm\0" \
> + "if test ${boot_fdt} = yes; then " \
> + "if fatload mmc ${mmcdev}:${mmcpart} ${ftd_addr} ${ftd_file}; then " \
How about adding loadfdtfile after 'loaduimage' above?
> + "bootm ${loadaddr} - ${ftd_addr}; " \
> + "else " \
> + "if test ${boot_fdt} = try; then " \
> + "bootm; " \
> + "else " \
> + "echo ERROR: Cannot load the DT, aborting...; " \
Strings must not be broken, so this is fine. But, you aren't really
aborting. If you had a loop of "try mmcboot. Fail? Try netboot" it
would continue. So the error message should perhaps just be about
cannot load DT from mmc?
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130107/3bbd8184/attachment.pgp>
next prev parent reply other threads:[~2013-01-07 14:04 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-28 19:17 [U-Boot] [PATCH v2 0/6] Improve default environment for easy use Otavio Salvador
2012-12-28 19:17 ` [U-Boot] [PATCH v2 1/6] mx6qsabrelite: Use tabs to environment setting Otavio Salvador
2012-12-28 19:17 ` [U-Boot] [PATCH v2 2/6] mx28evk: We shouldn't hardcode a rootfs filesystem type Otavio Salvador
2013-01-05 16:50 ` Stefano Babic
2013-01-07 12:05 ` Otavio Salvador
2013-01-07 14:07 ` Tom Rini
2012-12-28 19:17 ` [U-Boot] [PATCH v2 3/6] mx28evk: Add support to dynamically choose between ftd use or not Otavio Salvador
2012-12-28 19:17 ` [U-Boot] [PATCH v2 4/6] mx53loco: " Otavio Salvador
2012-12-28 19:17 ` [U-Boot] [PATCH v2 5/6] mx6qsabrelite: " Otavio Salvador
2013-01-07 14:04 ` Tom Rini [this message]
2013-01-07 14:17 ` Otavio Salvador
2013-01-07 14:20 ` Tom Rini
2013-01-07 14:06 ` Tom Rini
2013-01-07 14:18 ` Otavio Salvador
2012-12-28 19:17 ` [U-Boot] [PATCH v2 6/6] mx6qsabre{auto, sd}: " Otavio Salvador
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=20130107140451.GA3402@bill-the-cat \
--to=trini@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 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.