没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
PetaLinux is an embedded Linux software development kit (SDK) targeting Xilinx® FPGA-based System-on-Chip designs. This guide helps the reader to familiarize with the tool enabling overall usage of PetaLinux. You are assumed to have basic Linux knowledge, such as how to run Linux commands. You should be aware of OS and host system features, such as OS version, Linux distribution, security privileges, and basic Yocto concepts. The PetaLinux tool contains: • Yocto Extensible SDK (eSDK) • Minimal downloads • XSCT and toolchains • PetaLinux CLI tools
资源推荐
资源详情
资源评论
Revision History
The following table shows the revision history for this document.
Section Revision Summary
05/22/2019 Version 2019.1
Chapter 6: Upgrading the Workspace Added new section for petalinux-upgrade command.
Chapter 12: Technical FAQs Added new section Package Management.
Chapter 10: Advanced Configurations Updated FPGA Manager Configuration and Usage for Zynq
®
UltraScale+™ MPSoC and Zynq-7000 devices.
Revision History
UG1144 (v2019.1) May 22, 2019 www.xilinx.com
PetaLinux Tools Documentation Reference Guide 2
Send Feedback
Table of Contents
Revision History...............................................................................................................2
Chapter 1: Overview.................................................................................................... 7
Introduction................................................................................................................................. 7
Chapter 2: Setting Up Your Environment........................................................ 9
Installation Requirements..........................................................................................................9
Installation Steps.......................................................................................................................11
PetaLinux Working Environment Setup................................................................................. 13
Design Flow Overview...............................................................................................................15
Chapter 3: Creating a Project................................................................................16
PetaLinux BSP Installation....................................................................................................... 16
Configuring Hardware Platform with Vivado Design Suite..................................................17
Exporting Hardware Platform to PetaLinux Project............................................................. 19
Creating a New PetaLinux Project...........................................................................................20
Chapter 4: Configuring and Building................................................................22
Version Control..........................................................................................................................22
Importing Hardware Configuration........................................................................................23
Build System Image.................................................................................................................. 25
Generate Boot Image for Zynq UltraScale+ MPSoC..............................................................27
Generate Boot Image for Zynq-7000 Devices........................................................................28
Generate Boot Image for MicroBlaze Processors................................................................. 29
Generate Bitstream File for MicroBlaze..................................................................................30
Build Optimizations...................................................................................................................30
Chapter 5: Booting and Packaging.................................................................... 35
Packaging Prebuilt Images...................................................................................................... 35
Using petalinux-boot Command with Prebuilt Images........................................................36
Booting a PetaLinux Image on QEMU.................................................................................... 37
Boot a PetaLinux Image on Hardware with SD Card............................................................40
Boot a PetaLinux Image on Hardware with JTAG..................................................................43
UG1144 (v2019.1) May 22, 2019 www.xilinx.com
PetaLinux Tools Documentation Reference Guide 3
Send Feedback
Boot a PetaLinux Image on Hardware with TFTP..................................................................47
BSP Packaging........................................................................................................................... 49
Chapter 6: Upgrading the Workspace...............................................................51
petalinux-upgrade Options......................................................................................................51
Upgrade PetaLinux Tool........................................................................................................... 52
Upgrade PetaLinux Project...................................................................................................... 53
Chapter 7: Customizing the Project.................................................................. 54
Firmware Version Configuration............................................................................................. 54
Root File System Type Configuration......................................................................................54
Boot Images Storage Configuration.......................................................................................55
Primary Flash Partition Configuration....................................................................................56
Managing Image Size............................................................................................................... 57
Configuring INITRD BOOT....................................................................................................... 58
Configuring INITRAMFS Boot.................................................................................................. 59
Configure TFTP Boot................................................................................................................. 60
Configuring NFS Boot............................................................................................................... 61
Configuring JFFS2 Boot.............................................................................................................63
Configuring SD Card ext File System Boot.............................................................................64
Chapter 8: Customizing the Rootfs....................................................................67
Including Prebuilt Libraries......................................................................................................67
Including Prebuilt Applications............................................................................................... 68
Creating and Adding Custom Libraries.................................................................................. 69
Testing User Libraries...............................................................................................................71
Creating and Adding Custom Applications............................................................................73
Creating and Adding Custom Modules.................................................................................. 74
Building User Applications.......................................................................................................76
Testing User Applications.........................................................................................................77
Building User Modules............................................................................................................. 78
PetaLinux Auto Login................................................................................................................79
Application Auto Run at Startup..............................................................................................80
Adding Layers............................................................................................................................ 81
Adding an Existing Recipe into RootFS...................................................................................82
Adding a Package Group..........................................................................................................83
Chapter 9: Debugging............................................................................................... 85
Debugging the Linux Kernel in QEMU....................................................................................85
UG1144 (v2019.1) May 22, 2019 www.xilinx.com
PetaLinux Tools Documentation Reference Guide 4
Send Feedback
Debugging Applications with TCF Agent................................................................................87
Debugging Zynq UltraScale+ MPSoC Applications with GDB.............................................. 91
Debugging Individual PetaLinux Components..................................................................... 95
Chapter 10: Advanced Configurations.............................................................97
Menuconfig Usage.................................................................................................................... 97
PetaLinux Menuconfig System................................................................................................ 97
Configuring Out-of-tree Build................................................................................................105
Configuring Project Components......................................................................................... 108
Chapter 11: Yocto Features................................................................................... 113
SDK Generation (Target Sysroot Generation)......................................................................113
Accessing BitBake in a Project...............................................................................................114
Shared sstate-cache................................................................................................................115
Downloading Mirrors..............................................................................................................116
Machine Support.....................................................................................................................116
SoC Variant Support................................................................................................................117
Image Features........................................................................................................................118
Chapter 12: Technical FAQs..................................................................................119
Troubleshooting ..................................................................................................................... 119
Appendix A: Migration.............................................................................................124
Tool Directory Structure......................................................................................................... 124
DT Overlay Support.................................................................................................................124
Build Changes..........................................................................................................................124
Appendix B: PetaLinux Project Structure..................................................... 125
Project Layers.......................................................................................................................... 128
Appendix C: Generating Boot Components................................................. 130
First Stage Boot Loader.......................................................................................................... 130
Arm Trusted Firmware (ATF)..................................................................................................131
PMU Firmware......................................................................................................................... 131
FS-Boot for MicroBlaze Platform Only..................................................................................132
Appendix D: QEMU Virtual Networking Modes......................................... 134
Redirecting Ports in Non-root Mode.....................................................................................134
Specifying the QEMU Virtual Subnet.................................................................................... 135
UG1144 (v2019.1) May 22, 2019 www.xilinx.com
PetaLinux Tools Documentation Reference Guide 5
Send Feedback
剩余143页未读,继续阅读
资源评论
红色闪电007
- 粉丝: 72
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 没用333333333333333333333333333333
- 基于Vue和SpringBoot的企业员工管理系统2.0版本设计源码
- 【C++初级程序设计·配套源码】第2期-基本数据类型
- 基于Java和Vue的kopsoftKANBAN车间电子看板设计源码
- 影驰战将PS3111 东芝芯片TT18G23AIN开卡成功分享,图片里面画线的选项很重要
- 【C++初级程序设计·配套源码】第1期-语法基础
- 基于JavaScript、CSS、HTML的简易DOM版飞机游戏设计源码
- 基于Java开发的日程管理FlexTime应用设计源码
- SM2258XT-BGA144-4BGA180-6L-R1019 三星KLUCG4J1CB B0B1颗粒开盘工具 , EC, 3A, 94, 43, A4, CA 七彩虹SL300这个固件有用
- GJB 5236-2004 军用软件质量度量
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功