From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Conditional boot
Date: Sun, 26 Oct 2014 16:54:50 +0100 [thread overview]
Message-ID: <20141026165450.558a17df@crub> (raw)
In-Reply-To: <CAC+4F3WTm3n9aKzFMoHcqgZ1CUsbkcXoaBEuiRB2EN--OwV0RA@mail.gmail.com>
Hi Marco,
On Thu, 23 Oct 2014 15:44:12 +0200
Marco Pavanelli <marco.pavanelli@servizist.it> wrote:
> I have learnt that with u-boot you can boot from different sources and in
> fact that works, but what I would like to achieve is to TRY FIRST booting
> from a network (tftp+nfs) and if it fails carry on to FLASH+SD.
> I have managed to boot both from tftp+nfs and from FLASH+SD but so far I
> have not been able to do it conditionally.
try with a custom bootscript, for more info please see
http://www.denx.de/wiki/view/DULG/CommandLineParsing
> In fact when I try to boot form tftp with a disconnected cable, the sysem
> keeps retrying forever with TFTP.
set the "netretry" variable to "no":
setenv netretry no
saveenv
and try again.
HTH,
Anatolij
prev parent reply other threads:[~2014-10-26 15:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-23 13:44 [U-Boot] Conditional boot Marco Pavanelli
2014-10-26 15:54 ` Anatolij Gustschin [this message]
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=20141026165450.558a17df@crub \
--to=agust@denx.de \
--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