[Xilinx] Development environment (2) - Petalinux environment installation

This series of blogs only introduces the development of the PS side (ARM part) of the Xilinx platform, and does not introduce too much about PL (FPGA).

Table of contents

1. Petalinux environment introduction

Two. Petalinux installation

2.1 Install required packages

2.3 Download petalinux installation package

2.2 Install petalinux


1. Petalinux environment introduction

Build a PetalLinux development environment in the Ubuntu environment to prepare for the subsequent Linux system development.

Petalinux is built based on the open source automated build tool Yoctor. Yocto can build a complete Linux distribution, and can use QEMU for emulation and debugging.

Yocto workflow:

bitbake: Executor, similar to the Make function

layer: can be composed of multiple recipes

recipes: describe how to build the system, consisting of multiple .bb or .bbapend files

.bb/.bbappend files: Specific recipe files 

Petalinux directory structure:

 

Build: The directory where the main work is done when compiling

Compnents: Some component directories required

Images: Compile and generate image files

Pre-built: compiled and packaged image file directory, available when QEMU or JTAG starts

Project-spec: project configuration directory

Two. Petalinux installation

2.1 Install required packages

1.gawk

2.xterm

3.texinfo

3.gcc-multilib

5.zlib1g-dev

6.zlib1g

7. zlib1g:i386

       Note: When some software packages cannot be installed, switch to Tsinghua source and try

2.3 Download petalinux installation package

Petalinux download address: Download Vivado, Vitis, Vitis Embedded Platform, PetaLinux, Device models https://china.xilinx.com/support/download/index.html/content/xilinx/zh/downloadNav/embedded-design-tools.html

You can choose different versions to download according to the left side of the figure below

 

2.2 Install petalinux

       1. PetalLinux needs to use bash instead of dash

              Switch to bash: sudo dpkg-reconfigure dash

       2. Install petalinux

       ./petalinux-v<petalinux-version>-final-installer.run --dir <installation directory> --platform "arm aarch64"

       After the installation is complete, the directory is as shown in the figure:

 

Note: Do not use the root user for installation here, otherwise there will be problems in subsequent use.

       Configure the petalinux environment to take effect: source settings.sh

       No error is reported, and petalinux- is entered in teminal, and there is a prompt of the corresponding command, indicating that the installation is successful

 setting.sh source code:

 

Guess you like

Origin blog.csdn.net/qq_37755518/article/details/129831297