
OK - I'll throw myself on the mercy of the community :-)
I have installed hush in my u-boot.
I want to fix the following command sequence so that the board only boots if an image was actually loaded from the mmc card
bootcmd="mmcinit ; ext2load mmc 0:1 0x10400000 /boot/uImage ; bootm 0x10400000"
I've tried using && but that doesn't seem to work as expected... for instance if I use
bootcmd="mmcinit && ext2load mmc 0:1 0x10400000 /boot/uImage && bootm 0x10400000"
the sequence stops if the mmc isn't found, but always stops after the ext2load, even if it's successful.
I have tried
bootcmd="mmcinit ; mw 0x10400000 66 12345 ; ext2load mmc 0:1 0x10400000 /boot/uImage ; bootm 0x10400000"
but the bootm still runs even if no card is inserted and I turn the power off for 1 second. So I'm missing something there!!!
Can anyone help?
TVM
David
In article <memo.20091021172317.4412B@postmaster+dexdyne.com.cix.co.uk>, from_denx_uboot@dexdyne.com (David Collier) wrote:
*From:* "David Collier" from_denx_uboot@dexdyne.com *To:* u-boot@lists.denx.de *Date:* Wed, 21 Oct 2009 17:23 +0100 (BST)
the do_ext2load procedure returns the file length if it succeeds... which means you can't do
#define CONFIG_BOOTCOMMAND "mmcinit && ext2load mmc 0:1 0x10400000 /boot/uImage && bootm 0x10400000"
Is this part of some vast eternal plan and/or can anyone see a way to make it function as desired anyway?
David Collier
www.dexdyne.com _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
David Collier
www.dexdyne.com