petalinux常用命令整理「建议收藏」

petalinux常用命令整理「建议收藏」#sourcesettings.sh#sourcecomponents/yocto/source/aarch64/environment-setup-aarch64-xilinx-linux#sourcecomponents/yocto/source/aarch64/layers/core/oe-init-build-env#exportPATH=/home/work/pet…

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺

#source settings.sh

#source components/yocto/source/aarch64/environment-setup-aarch64-xilinx-linux

#source components/yocto/source/aarch64/layers/core/oe-init-build-env

#export PATH=/home/work/petalinux/tools/hsm/bin:$PATH

#bitbake fsbl -c cleansstate

#bitbake fsbl


ZYNQMP_CONSOLE=cadence1



$cat QSPI_R5_0.bif
the_ROM_image:
{
[fsbl_config] r5_single
[bootloader] R5_FSBL.elf
[destination_cpu=r5-0] R5_core0_hello_world.elf
}

$ bootgen -r -w –image ./QSPI_R5_0.bif -o Boot.bin


$ cat SD.bif
the_ROM_image:
{
[fsbl_config] a5x_x64
[bootloader] ron_a53_fsbl.elf
[destination_cpu=a5x-0] A53_core0_hello_world.elf
}

$ bootgen -r -w -image SD.bif -o Boot.bin

UltraZed IO Carrier Card

#/etc/init.d/openbsd-inetd restart

petalinux的一些命令:

消除编译时的警告信息:
# petalinux-util --webtalk off

创建新工程:
#petalinux-create --type project --template zynqMP --name /home/work/tp0805
bsp创建工程
#petalinux-create -t project -s <path-to-bsp>

配置命令:
#petalinux-config --get-hw-description=/home/work/tp0805/hdf
#petalinux-config --get-hw-description=/home/ucas/yinhonggen/hdf

清理:
#petalinux-build -x distclean

#petalinux-build -x mrproper  /*清理的最彻底,包括build, image文件夹都将被清理掉*/

打包BOOT的命令:
#petalinux-package --force --boot --fsbl zynqmp_fsbl.elf --fpga design_1_wrapper.bit --pmufw pmufw.elf --atf bl31.elf --uboot

#petalinux-package --boot --fpga system.bit --u-boot --kernel

#petalinux-package --boot --fpga system.bit --u-boot

#petalinux-package --boot --fpga system.bit --u-boot --add system.dtb --offset 0x01440000 --kernel --add rootfs.jffs2 --offset 0x02460000  --force

#petalinux-build -s
#petalinux-package --sysroot


petalinux-build -x package  //To regenerate the image.ub, Image and rootfs.cpio.gz

petalinux-build -c device-tree -x mrproper

petalinux-build -c device-tree

petalinux-build -c arm-trusted-firmware

petalinux-build -c bootloader

petalinux-build -c kernel


petalinux-build -c u-boot
 
petalinux-build -c device-tree -x mrproper

First create the application
$ petalinux-create -t apps -n myapp --enable
petalinux-build -c rootfs

petalinux-create -t apps --template install --name myapp --enable


Rebuild PetaLinux project for the Linux application
You can rebuild the whole project,rootfs or just the application
$ petalinux-build
$ petalinux-build -c rootfs
$ petalinux-build -c rootfs/myapp

To add Linux user libraries to your rootfs.
$ petalinux-create -t libs -n mylib --enable
The above command will create a Linux user library "mylib" in "components/libs/mylib"


$ petalinux-build -c rootfs/mylib


PetaLinux uses library priorities to decide the compilation sequence of the user libraries.
To specify the priority of you library
$ petalinux-create -t libs -n mylib --enable --priority X
X is the priority of your library."1" has the highest priority which will be built first.
Please find the available priorities from with the "--help" of "petalinux-create -t libs".





#zcat rootfs.cpio.gz | cpio -idmv 

#zcat rootfs.cpio.gz | fakeroot cpio -idmv 


#cpio -idmv < rootfs.cpio 


#find ./* | cpio -H newc -o > rootfs.cpio (或者 find ./* | cpio -H tar -o > rootfs.cpio)

#gzip rootfs.cpio

System Configuration/Yocto Settings中,Add pre-mirror url、Local sstate feeds settings设置为本地地址,格式如下:
Add pre-mirror url:
file:///petalinux/sstate-rel-v2018.2/downloads
Local sstate feeds settings:
/petalinux/sstate-rel-v2018.2/aarch64
本地资源为sstate-rel-v2018.2文件夹。

 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/194718.html原文链接:https://javaforall.net

(0)
上一篇 2025年10月31日 下午1:15
下一篇 2025年10月31日 下午1:43


相关推荐

  • 俞敏洪是新东方_新东方创始人是谁

    俞敏洪是新东方_新东方创始人是谁一年前,不用考虑省略号后的故事,那是个不可能的假设。作为教育培训机构,新东方带有比一般企业更为浓烈的创始人气质。俞敏洪就是新东方,他的儒雅风度、人文情怀、幽默口才,卡内基式奋斗经历,都成为公司的标签。特别是另外两位同样富有个性魅力的创始人徐小平和王强离开后,俞更没有理由拒绝扮演这

    2025年11月2日
    9
  • opencv-阈值处理

    opencv-阈值处理

    2022年1月8日
    42
  • 【Fungus笔记】No.13:Variable(变量) 处理、数据存储以及读取文本信息

    【Fungus笔记】No.13:Variable(变量) 处理、数据存储以及读取文本信息点击 键可以创建多种类型的变量 每种变量都有三种访问类型 Private 私有 Public 公有 Global 全局 nbsp nbsp nbsp nbsp Private 访问类型的变量仅能被其所在的 Flowchart 使用 而 Public 访问类型的变量可以被其他 Flowchart 使用 Global 访问类型的变量也可以被其他 Flowchart 使用 只是需要增加一个步骤 在另一个 F

    2026年3月18日
    4
  • python编程(Kivy 安装及使用教程)

    python编程(Kivy 安装及使用教程)Kivy 是一个很优秀的 基于 Python 的 GUI 库 可以利用 Python 快速编程的特点 快速的编写 windows linux mac android ios 等主流平台的应用程序 同 wxPython PyQt 相比 最大的优点是可以快速地编写移动应用程序 一 kivy 安装在 windows 命令行中 执行以下命令 python mpipinstalld

    2026年3月19日
    2
  • arm linux启动过程_项目冷启动和热启动的区别

    arm linux启动过程_项目冷启动和热启动的区别微处理器:LPC2114编译环境:KeilMDKV4.10思路:常把单片机系统的复位分为冷启动和热启动。所谓冷启动,也就是一般所说的上电复位,冷启动后片内外RAM的内容是随机的,通常是0x00或0xFF;单片机的热启动是通过外部电路给运行中的单片机的复位端一复位电平而实现的,也就是所说的按键复位或看门狗复位。复位后,RAM的内容都没有改变。在某些场合,必须区分出设备的重启是热重启还是冷重启。常…

    2025年6月27日
    5
  • Python开发工具PyCharm介绍

    Python开发工具PyCharm介绍PyCharm 是一种 PythonIDE 带有一整套可以帮助用户在使用 Python 语言开发时提高其效率的工具 比如调试 语法高亮 Project 管理 代码跳转 智能提示 自动完成 单元测试 版本控制 此外 该 IDE 提供了一些高级功能 以用于支持 Django 框架下的专业 Web 开发 特点首先 PyCharm 拥有一般 IDE 具备的功能 比如 调试 语法高亮 Project 管理 代码跳转 智能提示 自动完成 单元测试 版本控制另外 PyCharm 还提供了一些很好的功

    2025年12月8日
    12

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号