From 90c6d9064b0ce787f0f6f9ecd6f0dc6669eec5ef Mon Sep 17 00:00:00 2001 From: Takumi Sueda Date: Tue, 8 Nov 2022 04:43:21 +0900 Subject: [PATCH] sharp: quiet test command to suppress the error when eMMC has stock partition --- include/configs/brain_mx28_common.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/configs/brain_mx28_common.h b/include/configs/brain_mx28_common.h index 3bc2e80c72..2a7cd134dc 100644 --- a/include/configs/brain_mx28_common.h +++ b/include/configs/brain_mx28_common.h @@ -108,6 +108,10 @@ "run quiet; " \ "fatload mmc ${dev}:${part} ${fdt_addr} ${fdt_file}; " \ "run unquiet\0" \ + "checkenvexists=" \ + "run quiet; " \ + "test -e mmc ${dev}:${part} uEnv.txt; " \ + "run unquiet\0" \ "loadenv=" \ "run quiet; " \ "fatload mmc ${dev}:${part} ${loadaddr} uEnv.txt; " \ @@ -117,7 +121,7 @@ "env import -t ${loadaddr} ${filesize}; " \ "run unquiet\0" \ "loadandimportenv=" \ - "if test -e mmc ${dev}:${part} uEnv.txt; then " \ + "if run checkenvexists; then " \ "echo -n \"Loading environment from ${devname} ... \"; " \ "if setenv fail load && run loadenv && setenv fail parse && run importenv; then " \ "echo OK; " \