02-15-2016, 12:35 PM
(02-15-2016, 12:11 PM)umiddelb Wrote: Your u-boot version uses a file instead of a memory region to store the compiled environment. This file seems to be inaccessible to fw_printenv ("Bad CRC"). Is there another way to create/alter the compiled environment?
Yes - use mkenvimage (http://free-electrons.com/blog/mkenvimag...generator/) which is also a part of u-boot-tools (if at a reasonable version). Make sure to have correct settings for redundancy (-r) and size (-s) as defined in the U-Boot config file.
If you use my U-Boot tree (which has CONFIG_SYS_REDUNDAND_ENVIRONMENT and CONFIG_ENV_SIZE 128KB to be compatible with Ubuntu Snappy) use something like
Code:
mkenvimage -r -s 131072 -o /media/boot/uboot.env uboot.txt