Petalinux常用命令记录

xiaoxiao2021-02-28  55

Petalinux常用命令记录 2018年05月28日 15:52:24 阅读数:31 前提: petalinux开发环境安装好:

source命令加载成功,可利用echo $PETALINUX验证。检查统计信息是否关闭

petalinux-util --webtalk off INFO: Turn off webtalk feature! 1 2 3 一、建立工程

根据BSP包建立工程 在当前工程路径下有xilinx-zc706-v2016.4-final1.bsp,指定工程名为zc706

petalinux-create -t project -s xilinx-zc706-v2016.4-final1.bsp -n zc706 1 2 2) 自定义建立工程 此时需要考虑结合自己的hdf文件建立工程,有各种办法

petalinux-create -t project --template zynq -n zc706 cd petalinux-config --get-hw-desription= 1 2 3 二、工程内的各种配置操作 切换到Petalinux工程根目录。

cd 1 登录系统顶层配置菜单,设定你想要配置。

petalinux-config 1 登录Linux内核配置菜单并配置

petalinux-config -c kernel 1 登录根文件系统配置菜单并配置

petalinux-config -c rootfs 1 三、编译与仿真工程 具体编译

petalinux-build -c appname -x clean petalinux-build -c appname -x install petalinux-build -c appname -x build 1 2 3 4 整体编译

petalinux-build 1 2 制作Bin文件

petalinux-package --boot --fsbl ./images/linux/zynq_fsbl.elf --fpga ./images/linux/system_top.bit --u-boot --force 1 打包

petalinux-package --prebuilt --fpga ./images/linux/system_top.bit --force 1 仿真

QEMU中调试Linux内核

petalinux-boot --qemu --prebuilt 3 #模拟运行u-boot,kernel,看看是不是正确 petalinux-boot --qemu --u-boot petalinux-boot --qemu --kernel

转载请注明原文地址: https://www.6miu.com/read-2619952.html

最新回复(0)