ZYNQ平台UBOOT环境变量

配置UBOOT选项

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

增加外部UBOOT环境变量

在\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" \

""

编译UBOOT

petalinux-build -c u-boot -x cleanall

petalinux-build -c u-boot

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值