1、u-boot配置:

 petalinux-config -c u-boot

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

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

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

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

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

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

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

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

5、测试fw_printenv,fw_setenv

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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
  • 2021-12-08
猜你喜欢
  • 2022-12-23
  • 2021-12-23
  • 2021-06-07
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案