[U-Boot-Users] how to enable if, then command support in uboot

Markus Klotzbücher mk at denx.de
Fri Mar 28 12:07:22 CET 2008


"Gururaja Hebbar K R" <gururajakr at sanyo.co.in> 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




More information about the U-Boot mailing list