All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Conditional boot
@ 2014-10-23 13:44 Marco Pavanelli
  2014-10-26 15:54 ` Anatolij Gustschin
  0 siblings, 1 reply; 2+ messages in thread
From: Marco Pavanelli @ 2014-10-23 13:44 UTC (permalink / raw)
  To: u-boot

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.
In fact when I try to boot form tftp with a disconnected cable, the sysem
keeps retrying forever with TFTP.

Here is the printout of my boot to understand my version and platform.



U-Boot 1.3.3 (Nov 24 2011 - 13:08:57) MPC512X, Build:
u-boot_viper_1.3.3.42000.cots

CPU:   MPC5121e rev. 2.0, Core e300c4 at 399.999 MHz, CSB at 199 MHz
RCW:   0x05040000 0x84800080 SPMF[5] CPMF[4] SYSDIV[0] PCIHOST BMS SWEN
ROMLOC[0] LPC_DBW[0] NFC_PS LPC_AX[0]
RSR:   0x60001003 SWHR SRS HRS
Board: Viper
I2C:   ready
DRAM:  256 MB
FLASH: 16 MB
IoCfg: No GPTs, setup 23 I/O controls
SDHC:  1886 MB card found
FDT:   NOR at 0xFF020000             [valid]
FDT:   Setup CP6500.AAB-:Z           [ok]
LCD:   UMSH-8377MD-3T 5.7 WVGA [640x480 - 39700ps 16 144 10 35 1 1 INVERT
CLK] X/Y Swapped
IoCfg: GPTs = {0, 1, 2, 6, 7}, setup 93 I/O controls
Net:   FEC ETHERNET
Hit any key to stop autoboot:  0
Using FEC ETHERNET device
TFTP from server 192.168.0.100; our IP address is 192.168.0.3
Filename 'boot/uImage'.
Load address: 0x400000
Loading: T T T
Abort

The final abort was caused bu [ctrl - c}


Any suggestion how to make tftp stop retrying ?

Ciao

-- 

*Servizi s.t. srl, Corso Italia 13/N, I-39100 Bolzano *
CCIAA 1342368 Tribunale di Milano 302137 
REA: 1342368
capitale sociale versato 10.400,00 EUR 
CF: 01156500181 PI: IT09955600151 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] Conditional boot
  2014-10-23 13:44 [U-Boot] Conditional boot Marco Pavanelli
@ 2014-10-26 15:54 ` Anatolij Gustschin
  0 siblings, 0 replies; 2+ messages in thread
From: Anatolij Gustschin @ 2014-10-26 15:54 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-26 15:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-23 13:44 [U-Boot] Conditional boot Marco Pavanelli
2014-10-26 15:54 ` Anatolij Gustschin

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.