2008-06-09 06:28:31     multiple commands in bootcmd

Document created by Aaronwu Employee on Sep 18, 2013
Version 1Show Document
  • View in full screen mode

2008-06-09 06:28:31     multiple commands in bootcmd

Marco Rohleder (GERMANY)

Message: 56862   

 

Hello !

 

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

 

 

QuoteReplyEditDelete

 

 

2008-06-09 06:55:10     Re: multiple commands in bootcmd

Mike Frysinger (UNITED STATES)

Message: 56863   

 

if double quotes didnt work, then try single quotes

 

or just escape the ; with a backslash

QuoteReplyEditDelete

 

 

2008-06-11 11:20:59     Re: multiple commands in bootcmd

Robin Getz (UNITED STATES)

Message: 57007   

 

Marco:

 

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'

 

-Robin

Attachments

    Outcomes