iMX 8M Nano - U-Boot configuration / setting up env

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

iMX 8M Nano - U-Boot configuration / setting up env

1,024 Views
HankyBan
Contributor I

Hello everyone,

what's the right way to set up the environment for U-Boot in Yocto with the imx-yocto-bsp? I'm trying to set up U-Boot to use a file called uboot.env in the first vFAT partition "boot". When I try to change the settings via "make menuconfig", "bitbake u-boot-imx" complains with weird error messages like "make[1]: *** [prepare3] Error 1" and that u-boot-imx " is not clean ".

What I've done so far:

  • created the environment via mkenvimage -> uboot.env with a custom "A B" bootscript for later use with RAUC
  • copied the uboot.env to the vFAT partition
  • set the /etc/fw_env.config to /boot/uboot.env offset 0x0 size 0x2000

What I'm missing now is the ability to tell U-Boot to use this file instead of some internal environment. How can that be done considering a proper way to do it via recipes and bitbaking it.

 

Many thanks in advance.

Labels (1)
0 Kudos
1 Reply

968 Views
jimmychan
NXP TechSupport
NXP TechSupport

In the u-boot source code, there is a <board>.h file in /include/configs/

for example:

https://source.codeaurora.org/external/imx/uboot-imx/tree/include/configs/imx8mn_evk.h?h=imx_v2019.0...

0 Kudos