Hi Markus Klotzbuecher, i did and enabled,
/* * Miscellaneous configurable options */ #define CFG_HUSH_PARSER 1 #define CFG_PROMPT_HUSH_PS2 "> " #ifdef CFG_HUSH_PARSER #define CFG_PROMPT "uboot$ " /* Monitor Command Prompt */ #else #define CFG_PROMPT "#> " /* Monitor Command Prompt */ #endif #define CFG_LONGHELP 1 /* undef to save memory */ <snip> <snip> <snip> #define CONFIG_EXTRA_ENV_SETTINGS \ "boot_mmc=" \ "if mmcinit && " \ "fatload mmc 0 ${ramfs_addr} ${ramfs_file} && " \ "fatload mmc 0 ${loadaddr} ${bootfile}; " \ "then " \ "run ramargs fixedip addtty set_ramfs;" \ "setenv bootargs ${bootargs} ${othbootargs};" \ "bootm ${loadaddr}" \ "fi\0" \ <snip> <snip> <snip> <snip> and now when i execute the command as uboot$ run boot_mmc syntax error uboot$ printenv <snip> <snip> <snip> boot_mmc=if mmcinit && fatload mmc 0 ${ramfs_addr} ${ramfs_file} && fatload mmc 0 ${loadaddr} ${bootfile }; then run ramargs fixedip addtty set_ramfs;setenv bootargs ${bootargs} ${othbootargs};bootm ${loadaddr}fi stdin=serial <snip> <snip> <snip> even from command line if i give uboot$ if mmcinit then echo fi > i get above option now i hvae to press ctrl+c to interrupt and come back to prompt > <INTERRUPT> uboot$ if mmcinit then echo fi > <INTERRUPT> uboot$ kindly let me know how to solve this. thanks in advance Regards Gururaja -----Original Message----- From: Markus Klotzbücher [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2008 3:08 AM To: Gururaja Hebbar K R Cc: u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] how to enable if, then command support in uboot "Gururaja Hebbar K R" <[EMAIL PROTECTED]> writes: > I am trying to execute some commands stored in environment as below > > #define CONFIG_EXTRA_ENV_SETTINGS \ > "boot_mmc=" > \ > "if mmcinit && " \ ... > Kindly let me know what i need to enable for this to work. Search the README for CFG_HUSH_PARSER Best regards Markus Klotzbuecher -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: [EMAIL PROTECTED] ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users