lx2160ardb firmware install problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

lx2160ardb firmware install problem

Jump to solution
1,240 Views
jackho
Contributor III

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 Kudos
Reply
1 Solution
1,230 Views
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   

View solution in original post

0 Kudos
Reply
2 Replies
1,231 Views
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 Kudos
Reply
1,223 Views
jackho
Contributor III

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 Kudos
Reply