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文件夹。

 

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

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

【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛

【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...

(0)


相关推荐

  • <HTML5和CSS3响应式WEB设计指南>译者序

    <HTML5和CSS3响应式WEB设计指南>译者序

  • 硬核!高频Linux命令大总结,建议收藏~

    硬核!高频Linux命令大总结,建议收藏~前言记得不久前跟大家大分享了一波个人在平时日常工作、学习、开发、写文字、做视频等过程中,一些好用高效的在线工具和网站,并且把自己的浏览器收藏夹书签离线文件都导出给大家了。很多小伙伴后台反馈还不错,说书签一导入后,很多工具确实挺好用,主要省了很多找资源和整理的时间。今天继续分享,最近花了不少时间把平时开发过程中常用的一些Linux系统命令给做了一个大整理,形成一个常用高频Linux速查备忘录。有了它,还怕Linux操作系统常用操作和命令记不住么?接下来直接上菜吧。注:本文GitHubhtt

  • DNS服务器设置正确,DNS服务器配置(DNS各属性详细介绍)[通俗易懂]

    DNS服务器设置正确,DNS服务器配置(DNS各属性详细介绍)[通俗易懂]建立好DNS服务器后,用户可以在菜单中选择【属性】选项修改其配置。下面介绍如何配置DNS服务器的选项卡。具体的步骤如下。1.【接口】选项卡的配置图15-21所示为DNS服务器属性的【接口】选项卡,默认情况下,DNS服务器将侦听所有向该DNS服务器发出的域名解析请求和转发解析的DNS消息。如果要限制DNS服务器只负责侦听特定的IP地址发出的域名解析请求,可以在该选项卡中进行设置。选中【只在下列IP地…

  • Android蓝牙开发(二)之蓝牙配对和蓝牙连接

    Android蓝牙开发(二)之蓝牙配对和蓝牙连接上篇文章:https://blog.csdn.net/huangliniqng/article/details/82185983讲解了打开蓝牙设备和搜索蓝牙设备,这篇文章来讲解蓝牙配对和蓝牙连接1.蓝牙配对搜索到蓝牙设备后,将设备信息填充到listview中,点击listiew则请求配对蓝牙配对有点击配对和自动配对,点击配对就是我们选择设备两个手机弹出配对确认框,点击确认…

  • 电脑爱好者GHOSTWIN7纯净版v2.0

    电脑爱好者GHOSTWIN7纯净版v2.0系统特点:全自动无人值守安装,采用万能GHOST技术,安装系统过程只需5-8分钟,适合新旧各种机型。集成常见硬件驱动,智能识别+预解压技术,绝大多数硬件可以快速自动安装相应的驱动。VC++2005|2008|2010|2012|2013系统使用系统总裁论坛最新封装工具和IT天空论坛(稳定版)最新驱动包制作而成。我的文档收藏夹虚拟内存智能转移精简列表:示例文件Wi…

  • java 刷屏器「建议收藏」

    java 刷屏器「建议收藏」本想做个聊天机器人,最终还是获取不了聊天信息,只能写了个刷屏器,仅供娱乐。importjava.awt.AWTException;importjava.awt.Robot;importjava.awt.Toolkit;importjava.awt.datatransfer.StringSelection;importjava.awt.event.KeyEvent;imp

发表回复

您的电子邮箱地址不会被公开。

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