PetaLinux通过fw_printenv访问u-boot中的环境变量

u-boot配置:

 petalinux-config -c u-boot

 在<plnx-proj-root>/project-spec/meta-user/conf/petalinuxbsp.conf中添加以下内容:

IMAGE_INSTALL_append += "u-boot-fw-utils"

 可以通过在u-boot中执行saveenv生成uboot.env文件

 修改配置文件/etc/fw_env.config,注意Env. size要与u-boot中的设置保持一致

 

猜你喜欢

转载自www.cnblogs.com/arci/p/12825743.html