From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Sun, 26 Oct 2014 16:54:50 +0100 Subject: [U-Boot] Conditional boot In-Reply-To: References: Message-ID: <20141026165450.558a17df@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Marco, On Thu, 23 Oct 2014 15:44:12 +0200 Marco Pavanelli 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