Hi,
I try to upgrade firmware to emmc by using below command:
flex-installer -f firmware_lx2160ardb_rev2_uboot_emmcboot.img /dev/mmcblk1
Because we use dual image architecture, we install kernel and filesystem before and it's workable, but now we need add install firmware function, so we need to switch boot partition by devpart_boot and devpart_root env value after upgrading firmware. we use fw_setenv to write uboot env, but it will show below error:
Warning: Bad CRC, using default environment
All uboot env will restore to default, it will cause cannot boot into kernel normally, fw_setenv is workable if firmware not upgrade
Do you have any suggestion for us about our problem?
Thank you
Jack
Solved! Go to Solution.
In u-boot:
=> env default -a
## Resetting to default environment
=> saveenv
Saving Environment to MMC... Writing to MMC(0)... OK
In Linux, please configure /etc/fw_env.config as the following.
# device name Device offset Env. size Flash sector size
/dev/mmcblk0 0x500000 0x2000
In u-boot:
=> env default -a
## Resetting to default environment
=> saveenv
Saving Environment to MMC... Writing to MMC(0)... OK
In Linux, please configure /etc/fw_env.config as the following.
# device name Device offset Env. size Flash sector size
/dev/mmcblk0 0x500000 0x2000
Hi yipingwang,
Thanks for you reply,
Yes, my /etc/fw_env.config is correct
I can read uboot env by using fw_printenv correctly after I upgrading firmware, but it will show
Warning: Bad CRC, using default environment
The problem is my original uboot env variables are all reset to default, like Mac address, devpart_boot and devpart_boot.... , I think is CRC check failed problem, do you have any suggestion?
Jack