This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Optimize Linux Boot Time for AM335x evm-sk

Hi,

I met  a issue with your document( http://processors.wiki.ti.com/index.php/Optimize_Linux_Boot_Time  )

U-Boot SPL 2013.01.01-00123-g2830d15-dirty (Feb 04 2015 - 03:24:56)
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img


U-Boot 2013.01.01-00123-g2830d15-dirty (Feb 04 2015 - 03:24:56)

I2C: ready
DRAM: 256 MiB
WARNING: Caches not enabled
NAND: No NAND device found!!!
0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - readenv() failed, using default environment

Hit any key to stop autoboot: 0
mmc0 is current device
Unknown command 'if' - try 'help'
Unknown command 'then' - try 'help'
Unknown command 'if' - try 'help'
Unknown command 'then' - try 'help'
Importing environment from mmc ...
Unknown command 'fi' - try 'help'
Unknown command 'if' - try 'help'
Unknown command 'then' - try 'help'
## Error: "uenvcmd" not defined
Unknown command 'fi' - try 'help'
Unknown command 'if' - try 'help'
Unknown command 'then' - try 'help'
Unknown command 'elif' - try 'help'
Unknown command 'then' - try 'help'
Unknown command 'else' - try 'help'
Unknown command 'fi' - try 'help'
Unknown command 'else' - try 'help'
Unknown command 'fi' - try 'help'
U-Boot#

Could you please give any solution for me ?

Thanks,

Carl

  • Hi ,

    Development environment:
    ---Platform:TI_Android_JB_4.2.2_DevKit_4.1.1
    ---CPU: XAM3359ZCZ
    ---Ubuntu:14.04
  • Hi,

    I guess you followed the recommendation in the optimize boot time document and disabled the hush parser  CONFIG_SYS_HUSH_PARSER in order to use the simple one.

    The simple parser doesn't support if / then / else / fi statements. You will need to rework the whole environment to use only the available commands.

    Anyhow, before optimizing those things, you should probably start by customizing the u-boot environment to run only your scenario:
    => bootcmd to load the kernel from storage, setup bootargs, and bootm.
    doing anything else will add some time to the boot process, and will likely void all the effort you did to reduce the u-boot total size.