From: Chanho Park Date: Thu, 22 Jun 2017 07:16:54 +0000 (+0900) Subject: artik710: configs: clear local variable after load_fdt X-Git-Tag: submit/tizen/20171208.054649~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c11a13427ac6c571ffc76aa4a605090ca350d62;p=profile%2Fcommon%2Fplatform%2Fkernel%2Fu-boot-artik7.git artik710: configs: clear local variable after load_fdt 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: I1788167e087a00001785015a952743db8d502c79 Signed-off-by: Chanho Park --- diff --git a/include/configs/artik710_raptor.h b/include/configs/artik710_raptor.h index 823a50d671..0ca26f48b0 100644 --- a/include/configs/artik710_raptor.h +++ b/include/configs/artik710_raptor.h @@ -395,7 +395,7 @@ "ext4load mmc $rootdev:$bootpart $fdtaddr s5p6818-artik710-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 \