[U-Boot] Unable to run scripts with autoscr command

Asif Sulikeri asifiqbal.rs at gmail.com
Fri Feb 17 12:22:21 CET 2012


Hi,

Im using u-boot version U-Boot 1.3.4 (Dec  9 2010 - 17:45:52)
DM365-IPNC-1.0.14 on a davinci_dm365 board,

I'm trying to run script under U-boot using "autoscr" command, since I
don't see any "source" command ported into this version of U-boot yet,

but autoscr isn't executing commands like -if -then -while in the script,
gives the following error: *Unknown command 'if' - try 'help'*


*After this I tried enabling the hush shell by setting the following in the
config file for respective board,*

#define CFG_HUSH_PARSER
#define CFG_PROMPT_HUSH_PS2     "=> "
#undef CONFIG_BOOT_RETRY_TIME
#undef CONFIG_RESET_TO_RETRY
#define CONFIG_AUTOSCRIPT               1
#define CONFIG_CMD_AUTOSCRIPT

*but after this when I reboot the board, I get indefinite repetative
display of the u-boot prompt as below:*

Jumping to entry point at 0x81080000
DM36x initialization passed!
TI UBL Base Version: 1.50
Boot Loader BootMode = NAND
Starting NAND Copy...
Valid magicnum, 0xA1ACED66, found in block 0x00000008.
Boot Mode Task Completed

IPNC UBL Version: 1.1.0
Platform: DM365

Jumping to entry point at 0x81080000
DM36x initialization passed!
TI UBL Base Version: 1.50
Boot Loader BootMode = NAND
Starting NAND Copy...
Valid magicnum, 0xA1ACED66, found in block 0x00000008.
Boot Mode Task Completed

IPNC UBL Version: 1.1.0
Platform: DM365

Jumping to entry point at 0x81080000
DM36x initialization passed!
TI UBL Base Version: 1.50
Boot Loader BootMode = NAND
Starting NAND Copy...
Valid magicnum, 0xA1ACED66, found in block 0x00000008.
Boot Mode Task Completed

IPNC UBL Version: 1.1.0
Platform: DM365

Jumping to entry point at 0x81080000
DM36x initialization passed!
TI UBL Base Version: 1.50
Boot Loader BootMode = NAND
Starting NAND Copy...
Valid magicnum, 0xA1ACED66, found in block 0x00000008.
Boot Mode Task Completed

IPNC UBL Version: 1.1.0
Platform: DM365

Jumping to entry point at 0x81080000
DM36x initialization passed!
TI UBL Base Version: 1.50
Boot Loader BootMode = NAND
Starting NAND Copy...
Valid magicnum, 0xA1ACED66, found in block 0x00000008.
Boot Mode Task Completed

IPNC UBL Version: 1.1.0
Platform: DM365

.......

what might be the problem, early help would be much appreciated.


More information about the U-Boot mailing list