openwrt设置uboot环境变量在flash上的存储地址
时间:2018-11-29 01:08:44
收藏:0
阅读:584
ubootenv_add_app_config
ubootenv_add_uci_config "/dev/mtd1" "0x40000" "0x2000" "0x20000"
这两个函数定义在文件uboot-envtools.sh中,先来解析以上语句:
/dev/mtd1 : 指定boot_env所在flash上的分区
0x40000 : 指定boot_env所在flash上的偏移量
0x2000 :指定uboot的环境变量存储空间大小
0x20000 :指定flash的sector大小
ubootenv_add_app_config这个函数就是将"/dev/mtd1" "0x40000" "0x2000" "0x20000" 这些内容追加到/etc/fw_env.config
原文:https://www.cnblogs.com/dakewei/p/10035770.html
评论(0)