title: Unable to set environment variable in compile time of uBoot
body: <p>I am trying to bring net-console in uboot. For that, I first added 'ncip' in &quot;uboot-imx/include/configs/imx8mm_evk.h&quot; as following. Later, <strong>DFMC_SWUG</strong> is called at the end of <strong>CONFIG_EXTRA_ENV_SETTINGS</strong>.</p>
  <pre><code>#define DFMC_SWUG \
  &quot;setenv ncip 192.168.100.98 \0&quot; \
  &quot;ethaddr=00:80:A3:CA:B5:77 \0&quot; \
  &quot;swugip=192.168.100.16 \0&quot; \
  &quot;ipaddr=192.168.100.2 \0&quot; \
  &quot;serverip=192.168.100.16 \0&quot; \
  &quot;bootdelay=3\0&quot; \
  
  #define CONFIG_EXTRA_ENV_SETTINGS       \
  CONFIG_MFG_ENV_SETTINGS \
  JAILHOUSE_ENV \
  &quot;script=boot.scr\0&quot; \
  --
      --
      --
      &quot;fi;\0&quot; \
      DFMC_SWUG
  </code></pre>
  <p>Interestingly, I was able to set 'ethaddr', &quot;swugip&quot; and other variables except &quot;ncip&quot;. I guess, I am doing some formatting mistakes in line --&gt; &quot;setenv ncip 192.168.100.98 \0&quot; \</p>
  <p>Later I tried setting some dummy variables named dummy_var_1, dummy_var_2, dummy_var_3. Even they are not getting set.</p>
  <p><a href="https://i.stack.imgur.com/HnUiU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HnUiU.png" alt="Trying to set some dummy_variables" /></a></p>
  <p>Can some one please guide me here?</p>