I'm using Yocto Dunfell and attempting to make use of Mender (https://mender.io) for OTA updates. My problem is similar to the question posed in the Mender forum here.

However, my question is related to the technique for troubleshooting instead of Mender. The troubleshooting involves comparing the environment variables in U-Boot with those in /etc/fw_env.config.

I know how to boot to U-Boot and save the environment to MMC. Where is this saved so I can compare the results when booting normally?

Update 1

In the u-boot command line, saveenv will save the environment. My question is simply where is this saved so I can grab it later when I boot in normal mode?

  • If you know how to save the environment, why are you asking where it is saved? It should be saved where you saved it. Jan 4, 2021 at 10:43
  • Is it saved to a file?
    – sdbol
    Jan 4, 2021 at 11:32
  • No idea. I guess it depends on how you save it. Jan 4, 2021 at 11:55
  • The command is saveenv. I just need to know where this is saved?
    – sdbol
    Jan 5, 2021 at 0:40

1 Answer 1


saveenv command saves the environment to the location defined by u-boot configuration options. If you're saving it to a file (most likely scenario on the Pi), check the following options:


The default filename is uboot.env, so you may as well start by looking for that file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.