From mboxrd@z Thu Jan 1 00:00:00 1970 From: Asif Sulikeri Date: Fri, 17 Feb 2012 16:52:21 +0530 Subject: [U-Boot] Unable to run scripts with autoscr command Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.