赞
踩
petalinux-config -c u-boot
linux下UBOOT环境变量配置文件fw_env.config
以NAND flash为例,和petalinux配置相对应
# NAND example
# MTD device name | Device offset | Env. Size | Flash sector size | Number of sectors |
/dev/mtd1 | 0x0 | 0x100000 | 0x20000 | 8 |
在\z7020\project-spec\meta-user\recipes-bsp\u-boot\files\platform-top.h中添加自定义环境变量
#include <configs/zynq-common.h>
#define CONFIG_EXTRA_ENV_SETTINGS \
"boot_image0=nand read 0x10000000 0x3c00000 0x6400000 && bootm 0x10000000 0x10a00000 0x10900000\0" \
""
petalinux-build -c u-boot -x cleanall
petalinux-build -c u-boot
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。