U-Boot Environment Changes - 2020.2 English

PetaLinux Tools Documentation Reference Guide (UG1144)

Document ID
UG1144
Release Date
2020-11-24
Version
2020.2 English
The saveenv command does not work in the U-Boot prompt as the U-Boot default configuration is CONFIG_ENV_IS_NOWHERE. This is to give a preferred environment storage device option to save environment variables.

To change the U-Boot configuration according to persistent storage devices on your target, follow these steps:

  1. Run the following command:
    petalinux-config -c u-boot -> UBOOT_ENV_IS_IN_EEPROM/SPI/FAT
  2. Deselect the Environment is not stored menu option.
  3. Build the U-Boot image with petalinux-build -c u-boot.
  4. Boot with newly build images and try run the saveenv command.