AnsweredAssumed Answered

U-Boot 2013.07  - Command Line Length Limit?

Question asked by Jack Blather on Dec 19, 2014
Latest reply on Jan 7, 2015 by Jack Blather

I'm using U-Boot 2013.07. It seems to work except.....there seems to be a command line length limit of maybe 80 characters.


I cannot set long environment variable names. For instance, the default bootcmd env that comes out of the box (Vybrid Tower) is:


bootcmd=mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if run loaduimage; then run mmcboot; else run netboot; fi; fi; else run netboot; fi


This is entered into the U-Boot environment by entering:


setenv bootcmd mmc dev ${mmcdev}\; if mmc rescan\; then if run loadbootscript\; then run bootscript\; else if run loaduimage\; then run mmcboot\; else run netboot\; fi\; fi\; else run netboot\; fi


However, this is ABSOLUTELY NO WAY to enter this on the command line. Beyond a certain length (maybe about 80 characters), trying to enter this env var results in this error message:



setenv [-f] name value ...

    - [forcibly] set environment variable 'name' to 'value ...'

setenv [-f] name

    - [forcibly] delete environment variable 'name'



I can sucessfully enter env vars that are shorter.


How did Freescale install the 'bootcmd' env var?


How to fix?