From 50ffd78fe379088744b8df538ed2f341913ac2e3 Mon Sep 17 00:00:00 2001 From: Hector Fernandez Date: Thu, 18 Jun 2020 14:47:19 +0200 Subject: IGEP0046: Adding additional parameters to bootargs with board model and variant. --- include/configs/igep0046.h | 15 ++++++++++++--- 1 file 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" -- cgit v1.1