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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • HTML和JSP区别

    HTML和JSP区别1 HTML HypertextMar 文本标记语言 它是静态页面 浏览器可以直接打开 JSP JavaServerPa 看这个意思就知道是 Java 服务端的页面 所以它是动态的 它是需要经过 JDK 编译后把内容发给客户端去显示 2 他们的表头不同 这个是 JSP 的头 lt pagelanguage java import java util

    2025年6月3日
    3
  • java编写一个学生类和教师类_JAVA:1、编写一个学生类,类名为Student,包含如下成员:…

    java编写一个学生类和教师类_JAVA:1、编写一个学生类,类名为Student,包含如下成员:…1、编写一个学生类,类名为Student,包含如下成员:成员变量:1)变量名:name;类型:String;访问权限:private2)变量名:ID;类型:String;访问权限:private3)变量名:…1、编写一个学生类,类名为Student,包含如下成员:成员变量:1)变量名:name;类型:String;访问权限:private2)变量名:ID;类型:String;访问权限:pr…

    2022年7月8日
    162
  • Java开发人员必须掌握的两个Linux魔法工具(四)

    子曰:“工欲善其事,必先利其器。“做一个积极的人 编码、改bug、提升自己 我有一个乐园,面向编程,春暖花开!学习应该是快乐的,在这个乐园中我努力让自己能用简洁易懂(搞笑有趣)的表达来讲解知识或者技术,让学习之旅充满乐趣,这就是写博文的初心。故事旁白:在哈利波特的电影中,每个巫师都有一根自己的魔法棒,魔法棒是用来施展魔法的。而今天我们也要学会使用魔法棒(工具)来施展我们的魔法。魔法地…

    2022年2月28日
    38
  • 前端常见算法JS实现「建议收藏」

    前端常见算法JS实现「建议收藏」算法是程序的灵魂,一个优秀的前端工程师对算法也是要有所了解的。1.冒泡排序2.快速排序3.二路归并将两个按值有序序列合并成一个按值有序序列,则称之为二路归并排序字符串操作1.判断回

    2022年8月5日
    4
  • Pytest(11)allure报告[通俗易懂]

    Pytest(11)allure报告[通俗易懂]前言allure是一个report框架,支持java的Junit/testng等框架,当然也可以支持python的pytest框架,也可以集成到Jenkins上展示高大上的报告界面。mac环境:

    2022年7月31日
    6
  • java 服务器程序部署环境搭建

    java 服务器程序部署环境搭建1、安装JDK 右击我的电脑-属性-高级系统设置-高级-环境变量:系统变量:新建:CLASSPATH 变量值为.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;新建:JAVA_HOME 变量值为D:\Java\jdk1.8.0_40(就是你安装的JDK路径)找到Path,点击编辑,在变量值最前端添加;%JA

    2022年5月27日
    56

发表回复

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

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