This patch clears local variables such as success, number and loop of
load_fdt command to avoid invalid environment corruption. After
execution "run load_fdt" command on the u-boot shell, it will keep the
local variables. When a user run "saveenv" command in the situation,
it will cause invalid fdt load due to dirty local variables.
Change-Id: I3ac80a85101c1de7babbe43c0c1fa8ff5ede804a
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
"ext4load mmc $rootdev:$bootpart $fdtaddr s5p4418-artik${model_id}-raptor-rev${number}.dtb; " \
"fi; " \
"else ext4load mmc $rootdev:$bootpart $fdtaddr $fdtfile; " \
- "fi; \0" \
+ "fi; setenv success; setenv number; setenv loop;\0" \
"bootdelay=" __stringify(CONFIG_BOOTDELAY) "\0" \
"console=" CONFIG_DEFAULT_CONSOLE \
"consoleon=setenv console=" CONFIG_DEFAULT_CONSOLE \