AnsweredAssumed Answered

How can I use fw_setenv on SABRE-AI board ?

Question asked by Jason Tseng on Jan 7, 2015
Latest reply on Oct 21, 2015 by Benoit Moffet

Dear all,

 

 

Now I use SABRE-AI board.

The u-boot store in NAND flash (MT29F64G08AFAAAWP).

u-boot version is u-boot-2009.08 that get from LTIB.

 

 

<<build fw_printenv, fw_setenv>>

# cd u-boot-2009.08

u-boot-2009.08# make mx6dl_sabreauto_nand_config

u-boot-2009.08# make env

u-boot-2009.08# cp tools/env/fw_printenv  tools/env/fw_setenv

 

 

copy fw_printenv and fw_setenv to SABRE-AI board (/home/linaro/ directory).

 

 

<<following is my /etc/fw_env.config on SABRE-AI>>

root@linaro-ubuntu-desktop:/home/linaro# cat /etc/fw_env.config

# MTD device name Device offset Env. size Flash sector size Number of sectors

/dev/mtd0                0x100000      0x2000     0x2000                1

 

 

<<fw_printenv, fw_setenv test on SABRE-AI board>>

root@linaro-ubuntu-desktop:/home/linaro#./fw_printenv bootdelay

bootdelay=3

root@linaro-ubuntu-desktop:/home/linaro# ./fw_setenv bootdelay 5

MTD erase error on /dev/mtd0: Invalid argument

Error: can't write fw_env to flash

root@linaro-ubuntu-desktop:/home/linaro#

 

<<Question>>

The fw_printenv command is OK.

The fw_setenv command fail.

Could you help me to fix fw_setenv fail ?

 

 

Thank you very much

 

 

-Jason

Outcomes