summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHector Fernandez <hector@iatec.biz>2020-06-18 14:47:19 +0200
committeracarrizosa <acarrizosa@iatec.biz>2020-07-07 13:59:50 +0200
commit50ffd78fe379088744b8df538ed2f341913ac2e3 (patch)
treeee1050cca75f69fe2d82bd549cf332aeb8de35c7
parenta9b4686e391edfcc4d33c0a51bf149bec32648b9 (diff)
downloadu-boot-imx-50ffd78fe379088744b8df538ed2f341913ac2e3.zip
u-boot-imx-50ffd78fe379088744b8df538ed2f341913ac2e3.tar.gz
u-boot-imx-50ffd78fe379088744b8df538ed2f341913ac2e3.tar.bz2
IGEP0046: Adding additional parameters to bootargs with board model and variant.
-rw-r--r--include/configs/igep0046.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/include/configs/igep0046.h b/include/configs/igep0046.h
index 9d28418..7077838 100644
--- a/include/configs/igep0046.h
+++ b/include/configs/igep0046.h
@@ -529,6 +529,13 @@ else
/* ------------------ Hardware Test Environment ------------------ */
+#define ENV_SET_MODELANDVARIANT \
+ "setmodelandvariant=if printenv bmodel; then " \
+ "if printenv bvariant; then " \
+ "setenv kparams ${kparams} bmodel=${bmodel} bvariant=${bvariant};" \
+ "fi;" \
+ "fi\0 "
+
#define ENV_NFS_ROOTFS \
"netmask=255.255.255.0\0" \
"dnsserver=8.8.8.8\0" \
@@ -562,7 +569,7 @@ else
"errorstate=led 0 off; " \
"led 1 on; " \
"sleep 60; " \
- "reset;"
+ "reset \0"
#define ENV_LOAD_UENV_SD_TEST \
@@ -578,7 +585,7 @@ else
"else " \
"echo No USB device found; " \
"run errorstate; " \
- "fi;\0 "
+ "fi\0 "
#define CONFIG_EXTRA_ENV_SETTINGS \
"console=" CONSOLE_DEV "\0" \
@@ -606,11 +613,13 @@ else
"done\0" \
ENV_NFS_ROOTFS \
ENV_LOAD_UENV_SD_TEST \
- ENV_ERRORSTATE
+ ENV_ERRORSTATE \
+ ENV_SET_MODELANDVARIANT
#define CONFIG_BOOTCOMMAND \
"led 0 on;" \
"run sduenvboot;" \
+ "run setmodelandvariant;" \
VIDEO_ARGS_SCRIPT \
"run netboot"