2008-06-09 06:28:31 multiple commands in bootcmd
Marco Rohleder (GERMANY)
I tried to set mutliple commands n the environment variable 'bootcmd'
I tried setenv bootcmd eeprom read 0x1000000 0x30000 0x3c0000; bootm 0x1000000
Instead of saving the complete string, uboot just saves until the ";" and than immedialely runs bootm 0x1000000
I tried also setenv bootcmd "eeprom read 0x1000000 0x30000 0x3c0000; bootm 0x1000000"
In this case "eeprom read 0x1000000 0x30000 0x3c0000 is stored and after that bootm 0x1000000 immediately executed
Whats wrong ?
Kind regards, Marco
2008-06-09 06:55:10 Re: multiple commands in bootcmd
Mike Frysinger (UNITED STATES)
if double quotes didnt work, then try single quotes
or just escape the ; with a backslash
2008-06-11 11:20:59 Re: multiple commands in bootcmd
Robin Getz (UNITED STATES)
As Mike said - you just need to excape things properly - I just put the whole things in single quotes:
setenv bootcmd 'eeprom read 0x1000000 0x30000 0x3c0000; bootm 0x1000000'