question fw_printenv in Yocto

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

question fw_printenv in Yocto

791 Views
wang12zhe
Contributor III

HW:IMX8QM EVK 

We need read/set uboot env in system,so try to genera fw_printenv ,

 

I add IMAGE_INSTALL_append += " u-boot-fw-utils" to conf/local.conf

then bitbake imx-image-full after finish and download to IMX8qm EVK

root@imx8qmmek:~# ls -l /usr/bin/fw_printenv
-rwxr-xr-x 1 root root 14448 Mar 9 2018 /usr/bin/fw_printenv
root@imx8qmmek:~# ls -l /usr/bin/fw_setenv
-rwxr-xr-x 1 root root 14448 Mar 9 2018 /usr/bin/fw_setenv

root@imx8qmmek:~# fw_printenv
Cannot read environment, using default
Cannot read default environment from file

efer Linux fw_printenv fw_setenv to access U-Boot's env... - NXP Community

build in path: Yocto/L5.10.52_2.1.0/build-xwayland_imx8qmmek/tmp/work/imx8qmmek-poky-linux/u-boot-imx/2021.04-r0/git, generate the fw_printenv,this one is ok

root@imx8qmmek:~# ls -l
total 40
-rwxr-xr-x 1 root root 39968 Mar 24 10:28 fw_printenv

 

My question how to build this tools in Yocto?

Tags (1)
0 Kudos
1 Reply

763 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 Kudos