Depending on a few configurations I tried in /etc/fw_env.config
such as one or two entries, I got the following errors when trying to read the U-boot environment variables:
root@varsomam33:~# fw_printenv serverip
Warning: Bad CRC, using default environment
or
root@varsomam33:~# fw_printenv serverip
Cannot read bad block mark: Invalid argument
According to this tutorial (https://developer.ridgerun.com/wiki/index.php/Setting_up_fw_printenv_to_modify_u-boot_environment_variables), I constructed my /etc/fw_env.config
to look like this:
# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd6 0x1C0000 0x20000 0x20000 1
/dev/mtd7 0x1E0000 0x20000 0x20000 1
FYI I'm using a TI Omap ARM chip (var-som-am33) with Yocto Fido default out-of-box from Variscite with these software versions:
U-boot version:
u-boot-var-som-am33 2014-+gitrAUTOINC+adf9a14020
U-boot-fw-utils version:
u-boot-fw-utils v2014.07+gitAUTOINC+524123a707-r0-arago0-var