fw_printenv/fw_setenv can't work in my arm-linux board's userspace?

@author : Mingling.lu
@date   : 20151123日 08:53:22
@e-mail : mingllu@163.com

How to get fw_printenv/fw_setenv?


cd $(U_BOOTDIR)
make env
ls tools/env/
Then you will find fw_printenv . 

rename $(U-BOOTDIR)/tools/env/fw_printenv.c     $(U_BOOTDIR)/tools/env/fw_setenv.c
make env
ls tools/env/
Then you will find fw_setenv. 

How to use fw_printenv/fw_setenv in my arm-linux board’s userspace?


fw_printenv usage example:
[root@demobaord] fw_printenv

fw_setenv usage example:
[root@demobaord] fw_setenv bootdelay 1 

*note : fw_printenv will change env’s value in SDRAM, not write into nandflash/norflash/eeprom., but, fw_setenv will write env’s value into nandflash/norflash/eeprom.

Why am I can’t run fw_printenv/fw_setenv in my arm-linux board’s userspace?


  • Maybe your u-boot and your linux kernel use different ECC mode,You must ensure your u-boot and your kernel use same ECC mode if you use NandFlash to store ENV.
  • Your u-boot’s CROSS_COMPILE must be same as your kernel’s CROSS_COMPILE.

Last but not least

To sump up, if you want to use fw_printenv/fw_setenv in Userspace, I think you should be clear ECC mode if you use NandFlash to store your ENV parameter.U-boot’s nand Ecc mode must be same as your linux kernel’s ECC mode.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值