From: Markus =?utf-8?Q?Klotzb=C3=BCcher?= Date: Fri, 28 Mar 2008 12:07:22 +0100 Subject: [U-Boot-Users] how to enable if, then command support in uboot In-Reply-To: <5BF78BCE8D9BF14A83F836BD9E3916BA0DDA9D@blrms.slti.sanyo.co.in> (Gururaja Hebbar K. R.'s message of "Fri\, 28 Mar 2008 16\:07\:55 +0530") References: <5BF78BCE8D9BF14A83F836BD9E3916BA0DDA9B@blrms.slti.sanyo.co.in> <87k5jnf9fw.fsf@denx.de> <5BF78BCE8D9BF14A83F836BD9E3916BA0DDA9D@blrms.slti.sanyo.co.in> Message-ID: <877ifnf6ol.fsf@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de "Gururaja Hebbar K R" writes: > > #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" \ I think you forgot a semicolon before the "fi" or respectively after the "bootm ${loadaddr}" Please also check out the excellent documentation: http://www.denx.de/wiki/view/DULG/CommandLineParsing#Section_14.2.11.2. 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: office at denx.de