Petalinux入门教程一、使用.xsa文件新建petaLinux工程

1、配置环境变量

source /opt/petalinux/setting.sh

其中/opt/petalinux/setting.sh 为petalinux的安装路径

2、新建工程

对于Zynq UltraScale+MPSoc 系列,命令如下

petalinux-creat  -t project -n <PROJECT_NAME> --template zynqMP

3、导入硬件描述文件

首先cd <PROJECT_NAME> 

然后执行(其中path-to-dirextory 为.xsa 文件所在的路径)

petalinux-config --get-hw-description=<path-to-dirextory>

4、进行内核配置

petalinux-config -c kernel 

在内核配置中基本保持默认配置,重点关注自己需要的驱动

5、配置跟文件系统

配置完成后记得保存退出

petalinux-config -c rootfs

6、编译系统镜像

petalinux-build 

7、生成uImag

petalinux-package --image -c kernel --format uImage

8、生成启动镜像

petalinux-package --boot --format BIN --fsbl image/linux/zynqmp_fsb1.elf --u-boot images/linux/u-boot.elf --pmufw image/linux/pmufw.elf --fpga image /linux/*.bit

 

  • 1
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值