AnsweredAssumed Answered

How to generate fw_printenv and fw_setenv

Question asked by Lalabhai Desai on Oct 16, 2018
Latest reply on Nov 13, 2018 by Lalabhai Desai

Hello,

I am using i.MX6UL processor, I want to read and set the u-boot variables from the user space, so by exploring this I came to know that it is possible using fw_printenv and fw_setenv. But I don't know how to generate it. I have gone through query posted at https://community.nxp.com/thread/331484 and followed the steps but facing some compilation error as shown below,

"In file included from tools/env/fw_env.h:13:0,
|                  from tools/env/fw_env_main.c:37:
| include/config.h:7:22: fatal error: configs/.h: No such file or directory
| compilation terminated.
| make[1]: *** [tools/env/fw_env_main.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| In file included from tools/env/fw_env.h:13:0,
|                  from tools/env/fw_env.c:34:
| include/config.h:7:22: fatal error: configs/.h: No such file or directory
| compilation terminated.
| make[1]: *** [tools/env/fw_env.o] Error 1
| make: *** [env] Error 2
| WARNING: exit code 1 from a shell command.
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /home/cpu49/argon/fsl-release-bsp1/X11/tmp/work/imx6ulnxpuiopb-poky-linux-gnueabi/u-boot-fw-utils/v2015.07+gitAUTOINC+33711bdd4a-r0/temp/log.do_compile.22596)
ERROR: Task 308 (/home/cpu49/argon/fsl-release-bsp1/sources/poky/meta/recipes-bsp/u-boot/u-boot-fw-utils_2015.07.bb, do_compile) failed with exit code '1'

 

So please help me how I can access the boot loader environment variables to user space.

 

Thanks in advance.

 

Regards,

Lalabhai

Outcomes