Petalinux 常用命令

基本设置

# 设置 bash 为默认 sh
# 打开终端
# 输入命令,Configuring dash 选择“No”,回车确认
sudo dpkg-reconfigure dash
# 加载petalinux环境
source /opt/pkg/petalinux/settings.sh
# 向终端中加入启动自动执行
echo "source /opt/pkg/petalinux/settings.sh" >> ~/.bashrc

常用命令

# 创建工程
petalinux-create -t project --template zynqMP -n 工程名

# 配置工程硬件信息
petalinux-config --get-hw-description 硬件信息目录(忽略则为工程目录)

# 配置
petalinux-config
# 工程文件系统(环境)配置
petalinux-config -c rootfs

# 工程编译
petalinux-build
# 工程编译过程清理
petalinux-build -x distclean
# 工程编译彻底清理
petalinux-build -x mrproper -f

# 打包BOOT.BIN (没有PL端可省略--fpga)
petalinux-package --boot --u-boot --fpga --force



posted @ 2022-08-31 10:46  太晓  阅读(253)  评论(0编辑  收藏  举报