[U-Boot] hush while confusion

David Collier from_denx_uboot at dexdyne.com
Thu Oct 22 10:38:00 CEST 2009


thanks to everyone I have a working bootcmd which stops if the mmc card
is extracted.

what I'd like to do is put it in a while loop - this is an embedded
system and it has nothing better to do than to try again.

but if I set up 

bootcmd=while [ .... ]; do ; mmcinit && ext2load mmc 0:1 0x10400000
/boot/uImage && bootm 0x10400000 ; done

no matter what I have put in or around the [..] area, it barfs.

Could anyone show me a working example of a hush while loop please? Or
tell me what I'm doing wrong :-)


David Collier

www.dexdyne.com


More information about the U-Boot mailing list