lx2160ardb firmware install problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

lx2160ardb firmware install problem

跳至解决方案
2,102 次查看
jackho
Contributor IV

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

 

0 项奖励
回复
1 解答
2,092 次查看
yipingwang
NXP TechSupport
NXP TechSupport

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   

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,093 次查看
yipingwang
NXP TechSupport
NXP TechSupport

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   
0 项奖励
回复
2,085 次查看
jackho
Contributor IV

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

0 项奖励
回复